function popContent(desturl, wintitle, w, h) {
	var newWind = window.open(desturl, wintitle, 'width=' + w + ',height=' + h + ',left=0,top=0,toolbar=no,status=yes,location=no,menubar=no,directories=no,scrollbars=yes,resizable=yes');
	if (newWind == null) {
		showBlocked();
	} else {
		newWind.opener = self;
	}
}
function signup() {
	var exturl = "login/checkbrowser.aspx?caller=9&coursetype=online&coursestate=tx";
	try {
		popContent(popurl + exturl, "TxLeadFoot", 700, 500);
	} catch(ex) {
		//alert(ex.description);
	}
}
function login() {
	var exturl = "login/login.aspx?caller=9&coursetype=online&coursestate=tx";
	popContent(popurl + exturl, "TxLeadFoot", 700, 500);
}
function showBlocked() {
	var docWidth;
	var msg = document.getElementById("blockedmsg");
	if (self.innerWidth) {
		docWidth = self.innerWidth;
	} else if (document.body) {
		docWidth = document.body.clientWidth;
	}
	
	var msgPos = Math.floor(docWidth/2) - Math.floor(350/2);
	msg.style.left = msgPos;
	msg.style.top = 50;
	msg.style.visibility = "visible";
}
function showdemo() {
	var newWind = window.open("/demo.asp", "Demo", 'width=600,height=400,left=0,top=0,toolbar=no,status=no,location=no,menubar=no,directories=no,scrollbars=no,resizable=no');
}
