function loadQbanner() {
	document.write ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="518" height="198" id="Qbanner" align="center">');
	document.write ('<param name="allowScriptAccess" value="sameDomain" />');
	document.write ('<param name="movie" value="Qbanner.swf" />');
	document.write ('<param name="quality" value="high" />');
	document.write ('<param name="wmode" value="transparent" />');
	document.write ('<param name="bgcolor" value="#EBF0F5" />');   
	document.write ('<embed src="Qbanner.swf" quality="high" wmode="transparent" bgcolor="#EBF0F5" width="518" height="198" name="Qbanner" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write ('</object>');
}

function page_onload() {
	//alert(document.getElementById("divC_r04_c02").clientWidth);
	//alert(document.documentElement.offsetHeight + "  " + document.getElementById("divBody").offsetHeight);
	//alert("onload");
	evenCol();
	body_onresize();
}

function body_onresize() {
	var dBdy = document.getElementById("divBody");
	var dR04 = document.getElementById("divC_r04");
	var dMgrp = document.getElementById("divC_r04_midGrp");
	var vpWidth = document.documentElement.clientWidth;
	var vpHeight = document.documentElement.clientHeight;
	dBdy.style.height = document.body.offsetHeight + "px";
	if (vpHeight > dBdy.offsetHeight) {
		dR04.style.height = (dR04.offsetHeight + (vpHeight - dBdy.offsetHeight)) + "px";
		dMgrp.style.height = (dR04.offsetHeight + (vpHeight - dBdy.offsetHeight) - 2) + "px";
	}
	var bgLeft = ((vpWidth - 2400) / 2) + "px";
	var bgTop = "-500px"; //((vpHeight - 1370) / 2) + "px";
	document.body.style.backgroundPosition = bgLeft + " " + bgTop;
}
			
function evenCol() {
	//alert("resize");
	var dBdy = document.getElementById("divBody");
	var dR01 = document.getElementById("divC_r01");
	var dR02 = document.getElementById("divC_r02");
	var dR03 = document.getElementById("divC_r03");
	var dR04 = document.getElementById("divC_r04");
	var dMgrp = document.getElementById("divC_r04_midGrp");
	var dR05 = document.getElementById("divC_r05");
	var dR06 = document.getElementById("divC_r06");
	dR04.style.height = "auto";
	dMgrp.style.height = "auto";	//alert(dBdy.offsetHeight + "  " + dR01.offsetHeight + "  " + dR02.offsetHeight + "  " + dR03.offsetHeight + "  " + dR05.offsetHeight + "  " + dR06.offsetHeight);
	var midHeight = dBdy.offsetHeight - (dR01.offsetHeight + dR02.offsetHeight + 12 + dR06.offsetHeight);
	//alert(dBdy.offsetHeight + "  " + midHeight);
	//dR04.setAttribute("style", "");
	//dR04.style.setAttribute("height", ((midHeight + 2) + "px"));  //couldn't get this method to work in firefox
	dR04.style.height = (midHeight + 2) + "px";
	dMgrp.style.height = midHeight + "px";
	/*
	var divC_r04v = document.getElementById("divC_r04");
	var divC_r04g = document.getElementById("divC_r04_midGrp");
	divC_r04v.style.height = "auto";
	divC_r04g.style.height = "auto";
	var col01_cH = document.getElementById("divC_r04_c01").clientHeight;
	var col02_cH = document.getElementById("divC_r04_c02").clientHeight;
	var col03_cH = document.getElementById("divC_r04_c03").clientHeight;
	//alert(col01_cH + ", " + col02_cH + ", " + col03_cH);
	if (col02_cH > col01_cH) {
		if (col02_cH > col03_cH) {
			divC_r04v.style.height = (col02_cH + 2) +"px";
			divC_r04g.style.height = col02_cH + "px";
		} else {
			divC_r04v.style.height = (col03_cH + 2) +"px";
			divC_r04g.style.height = col03_cH + "px";
		}
	} else {
		if (col01_cH > col03_cH) {
			divC_r04v.style.height = (col01_cH + 2) +"px";
			divC_r04g.style.height = col01_cH + "px";
		} else {
			divC_r04v.style.height = (col03_cH + 2) +"px";
			divC_r04g.style.height = col03_cH + "px";
		}
	}
	*/
}

function sideToggle(inID, objID) {
	var gotID = document.getElementById(objID);
	var inID_iHtm = document.getElementById(inID).innerHTML;
	document.getElementById("divC_r04").style.height = "auto";
	document.getElementById("divC_r04_midGrp").style.height = "auto";
	if (gotID.style.display == "none") {
		gotID.style.display = "block";
		document.getElementById(inID).innerHTML = inID_iHtm.replace("expand", "collapse");
	} else {
		if (gotID.style.display != 'none') {
			gotID.style.display = 'none';
			document.getElementById(inID).innerHTML = inID_iHtm.replace("collapse", "expand");
		}
	}
	evenCol();
}

function sLog() {
	if (document.getElementById("AcctloginOperator").value == "") {
		alert("Username is required.");
	} else if (document.getElementById("AcctloginPassword").value == "") {
		alert("Password is required.");
	} else {
		document.getElementById("frmLogin").submit();
	}
}
function sLogClear() {
	document.getElementById("AcctloginOperator").AcctloginOperator.value = "";
	document.getElementById("AcctloginPassword").AcctloginPassword.value = "";
}
function funcEnter(event) {
	if (event.keyCode == 13) {
		sLog();
	}
}
function funcSpace(event) {
	if (event.keyCode == 32) {
		sLog();
	}
}

function alphaOver(obj, over) {
	var gotObjId = document.getElementById(obj.id);
	if (over) {
		gotObjId.style.cssText = "filter:alpha(opacity=100); opacity:1.00;";
	} else {
		gotObjId.style.cssText = "filter:alpha(opacity=90); opacity:0.90;";
	}
}

function cursoR(objID) {
	var gotID = document.getElementById(objID);
	gotID.style.cursor = "pointer";
	gotID.style.cursor = "hand";
}
		
	