<!--

var sendit;
var win;

var EmbedStr = "";
function GetFlash(url,x,y,fn) { 
	EmbedStr = "<object id='" + fn + "' name='" + fn + "' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='" + x + "' height='" + y + "'>";
	EmbedStr += "<param name='AllowScriptAccess' value='always' />";
	EmbedStr += "<param name='movie' value='" + url + "' />";
	EmbedStr += "<param name='quality' value='high' />";
	EmbedStr += "<param name='bgcolor' value='#ffffff' />";
	EmbedStr += "<param name='menu' value='false' />";
	EmbedStr += "<param name='wmode' value='transparent' />";
	EmbedStr += "<embed id='" + fn + "' name='" + fn + "' src='" + url + "' AllowScriptAccess='always' wmode='transparent' quality='high' menu='false' bgcolor='#ffffff' width='" + x + "' height='" + y + "' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	EmbedStr += "</object>";
	
	document.write(EmbedStr);
	return;
}

function imgover(obj,type){
	if(type) obj.src = obj.src.replace(".gif","_.gif");
}
function imgout(obj,type){
	if(type) obj.src = obj.src.replace("_.gif",".gif");
}

function printShow(url){
	var newwindow = window.open(url, "printsrc", "status=no,toolbar=no,scrollbars=yes,resizable=no,menubar=no,width=617,height=623");
	newwindow.print();
}
function printShow2(url){
	var newwindow = window.open(url, "printsrc", "status=no,toolbar=no,scrollbars=yes,resizable=no,menubar=no,width=677,height=623");
	newwindow.print();
}

function bizDiv(sPara) {
	neoWin(sPara,"",1,1,0,1,0,0,820,620,"C");
}
function neoWin(Input,winName,Rs,St,Tb,Sc,T,L,Wd,He,Pos) {
	//Resizable,Status,Toolbar,Scrollbar,Top,Left,Width,Height,AC
   var Optwindow = "";
   var midx=Math.ceil(screen.width/2)
   var midy=Math.ceil(screen.height/2)
   switch (Pos) {
   case "C":
      T=midy-Math.ceil(He/2)
      L=midx-Math.ceil(Wd/2)
      if (Wd==0)
         Optwindow = "resizable="+Rs+",status="+St+",toolbar="+Tb+",scrollbars="+Sc+",Fullscreen=yes,type=Fullwindow";
      else
         Optwindow = "top="+T+",left="+L+",resizable="+Rs+",status="+St+",toolbar="+Tb+",scrollbars="+Sc+",width="+Wd+",height="+He;
      break;
   case "A":
      T=10;
      L=10;
      Wd=screen.availWidth-30;
      He=screen.availHeight-80;
      Optwindow = "top="+T+",left="+L+",resizable="+Rs+",status="+St+",toolbar="+Tb+",scrollbars="+Sc+",width="+Wd+",height="+He+"";//,fullscreen
      break;
   default:
      if (Wd==0)
         Optwindow = "resizable="+Rs+",status="+St+",toolbar="+Tb+",scrollbars="+Sc+",Fullscreen=yes,type=Fullwindow";
      else
         Optwindow = "top="+T+",left="+L+",resizable="+Rs+",status="+St+",toolbar="+Tb+",scrollbars="+Sc+",width="+Wd+",height="+He;
   }

   var W=window.open(Input,winName,Optwindow);
   return W;
}


var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
	function CheckUIElements(){
	var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;
	
	if ( bNetscape4plus ) { 
	        yMenuFrom   = document["inc_quick_menu"].top;
	        yMenuTo     = top.pageYOffset + 185;
	}
	else if ( bExplorer4plus ) {
	        yMenuFrom   = parseInt (inc_quick_menu.style.top, 0);
	        yMenuTo     = document.body.scrollTop + 29;  //
	}
	
	timeoutNextCheck = 185;
	
	if ( Math.abs (yButtonFrom - (yMenuTo + 52)) < 6 && yButtonTo < yButtonFrom ) {
	        setTimeout ("CheckUIElements()", timeoutNextCheck);
	        return;	
	}
	
	if ( yButtonFrom != yButtonTo ) {
	        yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
	        if ( yButtonTo < yButtonFrom )
	                yOffset = -yOffset;
	
	        if ( bNetscape4plus )
	                document["inc_quick_menu"].top += yOffset;
	        else if ( bExplorer4plus )
	                inc_quick_menu.style.top = parseInt (inc_quick_menu.style.top, 10) + yOffset;
	
	        timeoutNextCheck = 1;
	}
	if ( yMenuFrom != yMenuTo ) {
	        yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 10 );
	        if ( yMenuTo < yMenuFrom )
	                yOffset = -yOffset;
	
	        if ( bNetscape4plus )
	                document["inc_quick_menu"].top += yOffset;
	        else if ( bExplorer4plus )
	                inc_quick_menu.style.top = parseInt (inc_quick_menu.style.top, 10) + yOffset;
	
	        timeoutNextCheck = 1;
	}
	
	setTimeout ("CheckUIElements()", timeoutNextCheck);
}


function paletteToggle() {
	window.cancelBubble = true;
	var oBtn = window.event.srcElement;
	if (oBtn.LinkType == "MINICALENDAR") {
		if(oBtn.value)
			document.all.starttime.value = oBtn.value;
		document.getElementById("calendarLayer").innerHTML = "<object data=\"/supervisor/Include/minicalendar.htm\" id=minicalendar name='minicalendar' height=177 style=\"background-color: #ffffff;filter: revealtrans(duration=0); left: 0px; top: 0px; visibility: hidden; z-index: 30; position: absolute;\" type=text/x-scriptlet width=154 viewastext></object>";
		document.all.minicalendar.style.posLeft = event.clientX - 75;
		document.all.minicalendar.style.posTop = event.clientY + document.body.scrollTop + 10;
		document.all.minicalendar.style.visibility = "visible";
	} else {
		document.all.minicalendar.style.visibility = "hidden";
	}
	oLastBtn = oBtn;
}

function setDate(year,month,day) {
	eval("document.all."+oLastBtn.Item+".value = '"+year+"-"+month+"-"+day+"';");
	document.all.minicalendar.style.visibility = "hidden";
	return;
}

function minical()
{
	var html = "<div id='calendarLayer'><object data=\"/supervisor/Include/minicalendar.htm\" id=minicalendar name='minicalendar' height=177 style=\"background-color: #ffffff;filter: revealtrans(duration=0); left: 0px; top: 0px; visibility: hidden; z-index: 30; position: absolute;\" type=text/x-scriptlet width=154 viewastext></object></div>";
	document.write (html);
	//<input type='text' name='boxname' LinkType='MINICALENDAR' Item='boxname'>
}

function MM_findObj(n, d) { //v4.0
	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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_controlShockwave(objStr,x,cmdName,frameNum) { //v3.0
	var obj=MM_findObj(objStr);
	if (obj) eval('obj.'+cmdName+'('+((cmdName=='GotoFrame')?frameNum:'')+')');
}


function ScrollTop(){
	self.window.scroll(0,0);
}

