<!--
var ie4=document.all;
var dom=document.getElementById;
function Rcertify() {
	popupWin = window.open
	('http://www.bbbonline.org/cks.asp?id=694000124', 'Participant', 'location=yes,scrollbars=yes,width=800,height=600')
	window.name = 'opener';
}

function LaunchWebinar(bChromeless, bResize)
{
	var nWidth = screen.availWidth;
	var nHeight = screen.availHeight;

	// Get the width
	if (nWidth > 820)
	{
		nWidth = 980;
		nHeight = 640;
	}

	// Build the options string
	var strOptions = "width=" + nWidth +",height=" + nHeight;
	if (bResize)
	{
		strOptions += ",resizable=yes"
	}

	if (bChromeless)
	{
		strOptions += ", status=0, toolbar=0, location=0, menubar=0, scrollbars=0";
	}
	else
	{
		strOptions += ", status=1, toolbar=1, location=1, menubar=1, scrollbars=1";
	}

	// Launch the URL
	window.open("/products/Webinar/Choosing a Legal Structure/player.html" , "Webinar", strOptions);

}

function ubp_demo(){
	window.open("/products/flash/ubp.html","ubp_demo","toolbar=no,location=no,directories=yes,menubar=no,scrollbars=yes,width=800,height=600,left=100,top=25");
}

function scStateChanged(){
	if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete"){
		var acResponse = xmlHttp.responseText;
		if(acResponse.substring(0,3) == "ERR"){
			alert(acResponse.substring(3,400));
			
			//reshow buttons (if from rawatch login)
			if (document.getElementById('btnBC') && document.getElementById('btnSC') && document.getElementById('divWait')) {
				//document.getElementById('btnBC').style.display = 'block';
				//document.getElementById('btnSC').style.display = 'block';
				document.getElementById('divWait').style.display = 'none';
			} else {
				document.getElementById('scLoginImg').src = '/images/btn-login.gif';
			}
		}
		else{
			document.getElementById("accountID").value = acResponse;
			document.getElementById("loginFrm").submit();
		}
	}
}

function GetXmlHttpObject(handler){
	var objXMLHttp = null;
	if (window.XMLHttpRequest){
		objXMLHttp = new XMLHttpRequest();
	}
	else if (window.ActiveXObject){
		objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	return objXMLHttp;
}

function checkSCAccount(){
	if(document.getElementById('un').value != ""){
		xmlHttp = GetXmlHttpObject();
		if (xmlHttp!=null){
			var url="/stat/user.asp?action(1)=AC&un=" + escape(document.getElementById('un').value) + "&pw=" + escape(document.getElementById('pw').value);
			xmlHttp.onreadystatechange = scStateChanged;
			xmlHttp.open("GET",url,true);
			xmlHttp.send(null);
		}
	}
}

function changeBCDirect(sValue){
	document.getElementById('stbc').value = sValue;
}

function fPasswordRequest() {
	var xmlHttp = GetXmlHttpObject(null);
	xmlHttp.onreadystatechange = function() {
		if (xmlHttp.readyState == 4 || xmlHttp.readyState == 'complete') {
			//show alert saying that the info will be mailed
			alert('Any account information associated with ' + document.getElementById('forgotpassword_email').value + ' will be emailed to that address.');
			document.location.href = "/login.html";
		}
	}
	
	//hide buttons
	document.getElementById('forgotpassword_submit').style.display = 'none';
	//show swirly
//	document.getElementById('btnLayer').innerHTML = '<img src=./images/swirly.gif />';
//	document.getElementById('btnLayer').style.display = 'block';
	
	//setup the request url and parameters
	var url = "/stat/user.asp?";
	var parms = "Page=message&Action(1)=GetPW&(1)email=" + encodeURI(document.getElementById('forgotpassword_email').value);

	xmlHttp.open("POST", url, true);
	//set request headers
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp.setRequestHeader("Content-length", parms.length);
	xmlHttp.setRequestHeader("Connection", "close");
	//send request with parms from form (must use for xmlHttp POST)
	xmlHttp.send(parms);
}
		
function hide() {
	//hide buttons
	document.getElementById('btnBC').style.display = 'none';
	document.getElementById('btnSC').style.display = 'none';
	//show swirly
	document.getElementById('divWait').innerHTML = '<img src=./images/swirly.gif />';
	document.getElementById('divWait').style.display = 'block';
}

function getFees(x){
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp!=null){
		xmlHttp.onreadystatechange=feesStateChanged
		xmlHttp.open("GET","/partials/state_fees_partial.asp?f=" + x,true)
		xmlHttp.send(null)
	}
}

function feesStateChanged(){
	if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete"){
		document.getElementById('feeTab').innerHTML = xmlHttp.responseText
	}
}

function $_(id){
	return document.getElementById(id);
}

function show_it(id){
	$_(id).style.display = '';
}

function hide_it(id){
	$_(id).style.display = 'none';
}

function showHide_it(id){
	thisElement = $(id);
	if(thisElement.style.display=='none'){
		show_it(id);
	}
	else{
		hide_it(id);
	}
}

//-->
