function imbedFlash(objID,FFile,fW,fH,bgc,menu,sa,fObjName,fVars,al,qua,parent,wmode){
	flashObj = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + fW + '" height="' + fH + '" id="' + fObjName + '" align="' + al + '">' +
	'<param name="FlashVars" value="' + fVars + '">' +
	'<param name="allowScriptAccess" value="' + sa + '">' +
	'<param name="movie" value="' + FFile + '">' +
	'<param name="menu" value="' + menu + '">' +
	'<param name="bgcolor" value="' + bgc + '">' +
	'<param name="quality" value="' + qua + '">' +
	'<param name="wmode" value="' + wmode + '">' +
	'<embed src="' + FFile + '" menu="' + menu + '" wmode="' + wmode + '" quality="high" bgcolor="' + bgc + '" width="' + fW + '" height="' + fH + '" name="' + fObjName + '" align="' + al + '" allowScriptAccess="' + sa + '" FlashVars="' + fVars + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">' +
	'</object>'
	//alert(flashObj);
	switchDom(parent,objID).innerHTML = flashObj;
	//alert(switchDom(parent,objID).innerHTML);
	//alert(fVars);
}
function login(){
	switchDom(this,"Password").value = "111111";
	switchDom(this,"schedPntLogin").submit();
}
function checkBrowser(){
	var brows = "";
	var agt=navigator.userAgent.toLowerCase();
	var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);
	
	var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('firefox')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
	var is_nav6 = (is_nav && (is_major == 5));
	
	var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
	var is_ie3    = (is_ie && (is_major < 4));
    var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
    var is_ie4up  = (is_ie && (is_major >= 4));
    var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
    var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
    var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
    var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
    var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);
	var is_fireFox = (agt.indexOf('firefox')!=-1);
	//alert(is_fireFox);
	
	if(is_ie5up | is_ie5_5up){
		brows = "IE";
	}
	else if (is_nav6){
		brows = "NS";
	}
	else if (is_fireFox){
		brows = "FF";
	}
if (brows == "IE" | brows == "NS" | brows == "FF"){
	return brows;
}
else{
	alert("Your browser may not be compatible.  You must install IE 5 or higher or Netscape 6.2 or higher.");
	return brows;
}
}
//alert(checkBrowser());
function switchDom(loc,objName){
	//alert(objName);
	//alert(checkBrowser());
	if (checkBrowser() == "NS"){
		//alert(loc + ", " + objName);
		return eval(loc).document.getElementById(objName);
	}
	else if (checkBrowser() == "IE"){
		//alert(loc + ", " + objName);
		return eval(loc).document.all(objName);
	}
	else if (checkBrowser() == "FF"){
		//alert(loc + ", " + objName);
		return eval(loc).document.all(objName);
	}
}