function showDisclaimer()
{
	var windo = window.open("http://www.g7ps.com/scripts/disclaimer.asp", "disclaimerWindow", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=370,height=435");
	windo.focus();
}
function showPrivacyPolicy()
{ 
	var windo = window.open ( "http://www.g7ps.com/scripts/privacypolicy.asp", "privacypolicyWindow", "top=20,left=20,scrollbars=1,title=0,address=0,status=0,toolbar=0,resizable=1,width=370,height=435" );
	windo.focus();
}

// due to bug in IE (direct call to fld.focus fails)...
// cannot call this method directly.
// MUST use setTimeout() to cal it like:  setTimeout("setFocus('form1','FirstName')", 0);
function setFocus(formName, elementName)
{
	var fld = document.forms[formName].elements[elementName];
	if (fld)
		fld.focus();
	else
		alert("setFocus(" + formName + ", " + elementName + ") could not find specified element");
}

function replaceAll(strng, find, replac)
{
	var ndx = 0;
	while (true)
	{
		var ndx = strng.indexOf(find, ndx);
		if (ndx < 0)
			break;
		strng = strng.substr(0,ndx) + replac + strng.substr(ndx + find.length);		// replace an instance of the "find" string
		ndx += replac.length - find.length;		// skip next search ahead to begin just after where "replac" string just inserted
	}
	return strng;
}

// function below will adjust height of content of shorter side to same height as content of longer side
//	must be invoked via:  <body onload="syncHeights();">
function syncHeights()
{
	//alert("@syncHeights");
	var fld = document.getElementById("contentleft");
	if (!fld)
	{
		//alert("div#contentleft not found -- please contact us so we can fix it");
		return;
	}
	var heightLeft = fld.offsetHeight;
	var pageName = location.href;
	//alert("@syncHeights, page=[" + pageName + "]");
	var ndx = pageName.lastIndexOf("/");
	if (ndx >= 0)
		pageName = pageName.substr(ndx + 1);
	//alert("page=[" + pageName + "]");
	var rightsideid = "contentright";
	if (pageName == "" || pageName == "default.asp")
		rightsideid = "contentcenter";
	fld = document.getElementById(rightsideid);
	if (!fld)
	{
		//alert("div#" + rightsideid + " not found -- please contact us so we can fix it");
		return;
	}
	var heightRight = fld.offsetHeight; 	//fld.style.height;
	//alert(" hiteL=" + heightLeft + ", hiteR=" + heightRight);
	if (heightLeft < heightRight)
	{
		fld = document.getElementById("bottomsection");		// expand the "bottomsection" of the LS menu
		if (!fld)
		{
			alert("div#bottomsection not found -- please contact us so we can fix it");
			return;
		}
		var height = fld.offsetHeight;
		//alert(" hiteLCC=" + height);
		height += heightRight - heightLeft;		//- 20;
		fld.style.height = height.toString() + "px";
		//alert("adjusted navleftbottom, new height=" + height);
	}
	else
	{
		fld.style.height = heightLeft.toString() + "px"; // bring right-side down same as left
		//alert("adjusted rightSide, new height=" + heightLeft);
	}
}
window.onload = syncHeights;		//this will be called at end of expandMenu() in LSMenu.js

// EOF =================================