<!--
var ie4=document.all;
var dom=document.getElementById;
var tabs = new Array();
tabs[0] = 'tabone';
tabs[1] = 'tabtwo';
tabs[2] = 'tabthree';
tabs[3] = 'tabfour';
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function entity_compare(){
	window.open("/products/flash/compare/index.html","entities", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=720,height=580");
	
}

function guidetoinc(){
	window.open("/products/flash/guide2inc/popup.html","ubp_demo","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=500");
}


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 bizcomply_demo(){
	window.open("/products/flash/bizcomply_demo/index.html","bizcomply_demo","toolbar=no,location=no,directories=yes,menubar=no,scrollbars=yes,width=740,height=402,left=100,top=25");
}

function trademark_tutorial(){
	window.open("/products/flash/trademark/default.html","trademark_tutorial","toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width=520,height=350,left=100,top=25");
}

function loretta(){
mylocation=document.referrer;
window.location=mylocation;
}



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 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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function switchtab(tab){
	turnofftabs();
	tabobject=ie4? eval('document.all.'+tab) : document.getElementById(tab);
	textobject=ie4? eval('document.all.'+tab+'txt') : document.getElementById(tab+'txt');
	tabobject.className = "current";
	textobject.style.display='block';
}
function turnofftabs(){
	for(i=0;i<tabs.length;i++){
		tabobject=ie4? eval('document.all.'+tabs[i]) : document.getElementById(tabs[i]);
		textobject=ie4? eval('document.all.'+tabs[i]+'txt') : document.getElementById(tabs[i]+'txt');
		if(tabobject != '' && tabobject != null){
			tabobject.className = "";
		}
		if(textobject != '' && textobject != null){
			textobject.style.display='none';
		}
	}
}

function jumper(x){

if (document.jm.jumpmenu.value != "null") {
	document.location.href = x
	}
}



function printPage(){
	var sOption="toolbar=yes,location=no,directories=yes,menubar=no,scrollbars=yes,width=750,height=600,left=100,top=25";
	var sTitle=document.title;
	var sUrl=document.location;
	
	var winprint=window.open("","",sOption);
	var sTabs='';
	winprint.document.open(); 
	
	for(i=0;i<tabs.length;i++){
		textobject=ie4? eval('document.all.'+tabs[i]+'txt') : document.getElementById(tabs[i]+'txt');
		if(textobject != '' && textobject != null){
			sTabs+=textobject.innerHTML;
		}
	}
	objLogo=ie4? document.all.logo : document.getElementById('logo');
	objTestimonial=ie4? document.all.testimonial : document.getElementById('testimonial');
	objFooterPromo=ie4? document.all.footerpromo : document.getElementById('footerpromo');
	objInfoFooter=ie4? document.all.infofooter : document.getElementById('infofooter');
	sLogo=objLogo.innerHTML;
	sTestimonial=objTestimonial.innerHTML;
	sFooterPromo=objFooterPromo.innerHTML;
	sInfoFooter=objInfoFooter.innerHTML;
	
	winprint.document.write("<html>\n<head>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../css/print.css\" >\n<title>"+sTitle+"</title>\n</head>\n<body>\n"); 
	winprint.document.write("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n");
	winprint.document.write("<tr><td align=\"left\">"+sLogo+"</td>");
	winprint.document.write("<td align=\"left\">&nbsp;&nbsp;&nbsp;<strong>"+sTitle+"</strong></td></tr>");
	winprint.document.write("<tr><td align=\"right\" colspan=\"2\" id=\"strongprint\"><strong><strong><a href=\"javascript:window.print();\">Print</a>&nbsp;|&nbsp;<a href=\"javascript:window.close();\">Close</a></strong></td></tr></table>");
	winprint.document.write("\n<div><br /><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" ><tr><td height=\"2\" align=\"left\" valign=\"top\" bgcolor=\"000000\"></td></tr>\n</table>\n</div><br />\n");
	winprint.document.write(sTabs);
	winprint.document.write("\n<div><br /><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" ><tr><td height=\"2\" align=\"left\" valign=\"top\" bgcolor=\"000000\"></td></tr>\n</table>\n</div><br />\n");
	winprint.document.write(sTestimonial);
	winprint.document.write("\n<div><br /><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" ><tr><td height=\"2\" align=\"left\" valign=\"top\" bgcolor=\"000000\"></td></tr>\n</table>\n</div><br />\n");
	winprint.document.write(sFooterPromo);
	winprint.document.write("\n<div><br /><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" ><tr><td height=\"2\" align=\"left\" valign=\"top\" bgcolor=\"000000\"></td></tr>\n</table>\n</div><br />\n");
	winprint.document.write(sInfoFooter);
	winprint.document.write("<br /><br /><br />\n");
	winprint.document.write("&copy; 2009 BizFilings<br /><br />");
	winprint.document.write("\n</body>\n</html>");
	
	
	winprint.document.close(); 
	winprint.focus();
	//window.print()
	return false;
}

function printBasic(){
	
	objLogo=ie4? document.all.logo : document.getElementById('logo');
	sLogo=objLogo.innerHTML;
	var sOption="toolbar=yes,location=no,directories=yes,menubar=no,scrollbars=yes,width=750,height=600,left=100,top=25";
	var sTitle=document.title;
	var sUrl=document.location;
	
	var winprint=window.open("","",sOption);
	var sTabs='';
	winprint.document.open(); 
	
	for(i=0;i<tabs.length;i++){
		textobject=ie4? eval('document.all.'+tabs[i]+'txt') : document.getElementById(tabs[i]+'txt');
		if(textobject != '' && textobject != null){
			sTabs+=textobject.innerHTML;
		}
	}


	
	winprint.document.write("<html>\n<head>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../css/print.css\" >\n<title>"+sTitle+"</title>\n</head>\n<body>\n"); 
	winprint.document.write("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n");
	winprint.document.write("<tr><td align=\"left\">"+sLogo+"</td>");
	winprint.document.write("<td align=\"left\">&nbsp;&nbsp;&nbsp;<strong>"+sTitle+"</strong></td></tr>");
	winprint.document.write("<tr><td align=\"right\" colspan=\"2\" id=\"strongprint\"><strong><strong><a href=\"javascript:window.print();\">Print</a>&nbsp;|&nbsp;<a href=\"javascript:window.close();\">Close</a></strong></td></tr></table>");
	winprint.document.write("\n<div><br /><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" ><tr><td height=\"2\" align=\"left\" valign=\"top\" bgcolor=\"000000\"></td></tr>\n</table>\n</div><br />\n");
	winprint.document.write(sTabs);
	winprint.document.write("\n<div><br /><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" ><tr><td height=\"2\" align=\"left\" valign=\"top\" bgcolor=\"000000\"></td></tr>\n</table>\n</div><br />\n");
	
	winprint.document.write("<br /><br /><br />\n");
	winprint.document.write("&copy; 2009 BizFilings<br /><br />");
	winprint.document.write("\n</body>\n</html>");
	
	
	winprint.document.close(); 
	winprint.focus();
	//window.print()
	return false;
}

function printAjaxPage(url){
	var sOption="toolbar=yes,location=no,directories=yes,menubar=no,scrollbars=yes,width=750,height=600,left=100,top=25";
	var sTitle=document.title;
	var sUrl=url;
	
	var winprint=window.open(sUrl,sTitle,sOption);
	var sTabs='';
	winprint.document.open(); 
	
	for(i=0;i<tabs.length;i++){
		textobject=ie4? eval('document.all.'+tabs[i]+'txt') : document.getElementById(tabs[i]+'txt');
		if(textobject != '' && textobject != null){
			sTabs+=textobject.innerHTML;
		}
	}
	objLogo=ie4? document.all.logo : document.getElementById('logo');
	objTestimonial=ie4? document.all.testimonial : document.getElementById('testimonial');
	objFooterPromo=ie4? document.all.footerpromo : document.getElementById('footerpromo');
	objInfoFooter=ie4? document.all.infofooter : document.getElementById('infofooter');
	sLogo=objLogo.innerHTML;
	sTestimonial=objTestimonial.innerHTML;
	sFooterPromo=objFooterPromo.innerHTML;
	sInfoFooter=objInfoFooter.innerHTML;
	
	winprint.document.write("<html>\n<head>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../css/print.css\" >\n<title>"+sTitle+"</title>\n</head>\n<body>\n"); 
	winprint.document.write("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n");
	winprint.document.write("<tr><td align=\"left\">"+sLogo+"</td>");
	winprint.document.write("<td align=\"left\">&nbsp;&nbsp;&nbsp;<strong>"+sTitle+"</strong></td></tr>");
	winprint.document.write("<tr><td align=\"right\" colspan=\"2\" id=\"strongprint\"><strong><strong><a href=\"javascript:window.print();\">Print</a>&nbsp;|&nbsp;<a href=\"javascript:window.close();\">Close</a></strong></td></tr></table>");
	winprint.document.write("\n<div><br /><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" ><tr><td height=\"2\" align=\"left\" valign=\"top\" bgcolor=\"000000\"></td></tr>\n</table>\n</div><br />\n");
	winprint.document.write(sTabs);
	winprint.document.write("\n<div><br /><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" ><tr><td height=\"2\" align=\"left\" valign=\"top\" bgcolor=\"000000\"></td></tr>\n</table>\n</div><br />\n");
	winprint.document.write(sTestimonial);
	winprint.document.write("\n<div><br /><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" ><tr><td height=\"2\" align=\"left\" valign=\"top\" bgcolor=\"000000\"></td></tr>\n</table>\n</div><br />\n");
	winprint.document.write(sFooterPromo);
	winprint.document.write("\n<div><br /><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" ><tr><td height=\"2\" align=\"left\" valign=\"top\" bgcolor=\"000000\"></td></tr>\n</table>\n</div><br />\n");
	winprint.document.write(sInfoFooter);
	winprint.document.write("<br /><br /><br />\n");
	winprint.document.write("&copy; 2009 BizFilings<br /><br />");
	winprint.document.write("\n</body>\n</html>");
	
	
	winprint.document.close(); 
	winprint.focus();
	//window.print()
	return false;
}

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 lcacStateChanged(){
	if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete"){
		var lcacResponse = xmlHttp.responseText;
		document.getElementById("lcBodyEle-1").innerHTML = lcacResponse;
		document.getElementById("lcArticleEle-1").innerHTML = "<h1 class='H1LCA'>Welcome to the BizFilings Learning Center</h1><br />You can read an article by clicking the links above.&nbsp; You can also choose a different Learning Center library topic from the list to your right.<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />";
		document.getElementById("lcFontEle").style.display = 'none';
	}
}

function lcacStateChanged_PRELOAD(){
	if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete"){
		var lcacResponse = xmlHttp.responseText;
		document.getElementById("lcBodyEle-1").innerHTML = lcacResponse;
		if (document.getElementById('artID').value != ""){
			document.getElementById('artID').value = "";
		} else {
			document.getElementById("lcArticleEle-1").innerHTML = "<h1 class='H1LCA'>Welcome to the BizFilings Learning Center</h1><br />You can read an article by clicking the links above.&nbsp; You can also choose a different Learning Center library topic from the list to your right.<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />";
		}
	}
}

function lcabStateChanged(){
	if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete"){
		var lcacResponse = xmlHttp.responseText;
		document.getElementById("lcArticleEle").scrollTop = 999999999999;
		document.getElementById("lcArticleEle-1").innerHTML = lcacResponse;
		document.getElementById("lcFontEle").style.display = 'block';
	}
}

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="http://www.bizfilings.com/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 selectCategory(cid){
	if(cid != ""){
		xmlHttp = GetXmlHttpObject();
		if (xmlHttp!=null){
			var url="http://www.bizfilings.com/products/articles/articleList.asp?cid=" + cid;
			xmlHttp.onreadystatechange = lcacStateChanged;
			xmlHttp.open("GET",url,true);
			xmlHttp.send(null);
		}
	}
}

function loadArticle(path){
	if(path != ""){
		xmlHttp = GetXmlHttpObject();
		if (xmlHttp!=null){
			var url="http://www.bizfilings.com/products/articles/bodyonly/" + path;
			xmlHttp.onreadystatechange = lcabStateChanged;
			xmlHttp.open("GET",url,true);
			xmlHttp.send(null);
			document.getElementById('ca').value = path;
		}
	}
}

function preloadLCDynamic(){
	xmlHttp = GetXmlHttpObject();
	
	if(document.getElementById('pllcCAT').value != ""){
		if (xmlHttp!=null){
			var url="http://www.bizfilings.com/products/articles/articleList.asp?cid=" + document.getElementById('pllcCAT').value;
			xmlHttp.onreadystatechange = lcacStateChanged_PRELOAD;
			xmlHttp.open("GET",url,true);
			xmlHttp.send(null);
		}	
	} else {
		if (xmlHttp!=null){
			var url="http://www.bizfilings.com/products/articles/articleList.asp?cid=1";
			xmlHttp.onreadystatechange = lcacStateChanged_PRELOAD;
			xmlHttp.open("GET",url,true);
			xmlHttp.send(null);
		}	
	}
}

function changeBCDirect(sValue){
	document.getElementById('stbc').value = sValue;
}

function changeBCDirect(sValue){
	document.getElementById('stbc').value = sValue;
}

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 goToQuote(entityID, stateID, btn, src){
	var sState="";
	var sEntity="";
	var sBtn="";
	var sSrc="";
	var sBaseURL="https://www.bizfilings.com/BOS/Order.aspx?";
	if (typeof src == 'undefined' ) src = '';
	if (typeof tab == 'undefined' ) tab = '';	
	if (stateID != ""){sState="&stateID="+stateID;};
	if (entityID != ""){sEntity="&entitytypeID="+entityID;};
	if (btn != ""){sBtn="&btn="+btn;};
	if (src != ""){sSrc="&src="+src;};

	document.location.href=sBaseURL+sSrc+sEntity+sState+sBtn;
}





function goToQuoteHeader(entityID, stateID, btn, src, tab){
	var sState="";
	var sEntity="";
	var sBtn="";
	var sSrc="";
	var sTab="";
	var sBaseURL="https://www.bizfilings.com/BOS/Order.aspx?";

	if (stateID != ""){sState="&stateID="+stateID;};
	if (entityID != ""){sEntity="&entitytypeID="+entityID;};
	if (btn != ""){sBtn="&btn="+btn;};
	if (src != ""){sSrc="&src="+src;};
	if (tab != ""){sTab="&tab="+tab;};	
	
	//redirect to order page
	//alert(sBaseURL+sSrc+sEntity+sState+sBtn);

	document.location.href=sBaseURL+sSrc+sEntity+sState+sBtn+sTab;
}



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);
	}
}

//-->