// OPEN A CENTERED WINDOWfunction openCenteredWindow(url, height, width, name, parms) {   var left = Math.floor( (screen.width - width) / 2);   var top = Math.floor( (screen.height - height) / 2);   var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;   if (parms) { winParms += "," + parms; }   var win = window.open(url, name, winParms);   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }   return win;}//reloads the window if Nav4 resizedfunction MM_reloadPage(init) {    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);// REFORMATS FORM BUTTON AFTER CLICKfunction SubmitNow(item){if(item.value=="Processing... Please wait") {	return;}	else {		item.value="Processing... Please wait"		item.form.submit	}}// OPENS BROWSER WINDOWfunction MM_openBrWindow(theURL,winName,features) { //v2.0	var w	=	400;	var h	=	400;  	var winl = (screen.width - w) / 2;  	var wint = (screen.height - h) / 2;	win=window.open(theURL,winName,features+',top='+wint+',left='+winl);}// REDIRECTS TO URLfunction MM_goToURL() { //v3.0  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");}// FIND OBJECT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;}// CHANGE AN OBJECTfunction MM_changeProp(objName,x,theProp,theValue) { //v3.0  var obj = MM_findObj(objName);  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");}// COLOR HOVER BAR FUNCTIONfunction navBar2 (tableCellRef, hoverFlag, navStyle) {if ( hoverFlag ) {        switch ( navStyle ) {                case 1: tableCellRef.style.backgroundColor = '#203377'; break;                default:if ( document.getElementsByTagName ) tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';        }} else {        switch ( navStyle ) {                case 1: tableCellRef.style.backgroundColor = '#002143';    break;                default: if ( document.getElementsByTagName ) tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';        }}}// COLOR HOVER BAR FUNCTIONfunction navBar3 (tableCellRef, hoverFlag, navStyle, bcolor,bcolor2 ) {if ( hoverFlag ) {        switch ( navStyle ) {                case 1: tableCellRef.style.backgroundColor = "#"+bcolor+""; break;                default:if ( document.getElementsByTagName ) tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';        }} else {        switch ( navStyle ) {                case 1: tableCellRef.style.backgroundColor = "#"+bcolor2+"";    break;                default: if ( document.getElementsByTagName ) tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';        }}}	/************************************************************************************************************	(C) www.dhtmlgoodies.com, October 2005		This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.			Updated:			March, 11th, 2006 - Fixed positioning of tooltip when displayed near the right edge of the browser.		Terms of use:	You are free to use this script as long as the copyright message is kept intact. However, you may not	redistribute, sell or repost it without our permission.		Thank you!		www.dhtmlgoodies.com	Alf Magne Kalleland		************************************************************************************************************/		var dhtmlgoodies_tooltip = false;	var dhtmlgoodies_tooltipShadow = false;	var dhtmlgoodies_shadowSize = 4;	var dhtmlgoodies_tooltipMinWidth = 2;		var dhtmlgoodies_tooltipMaxWidth = 500;	var tooltip_alive=false;		function toggle_tooltip(e,v) {						if (tooltip_alive==false) {						showTooltip(e,v);						tooltip_alive=true;						} else {						hideTooltip();						tooltip_alive=false;						}	}								function showTooltip(e,tooltipTxt)	{				var bodyWidth = Math.max(document.body.clientWidth,document.documentElement.clientWidth) - 20;			if(!dhtmlgoodies_tooltip){			dhtmlgoodies_tooltip = document.createElement('DIV');			dhtmlgoodies_tooltip.id = 'dhtmlgoodies_tooltip';			dhtmlgoodies_tooltipShadow = document.createElement('DIV');			dhtmlgoodies_tooltipShadow.id = 'dhtmlgoodies_tooltipShadow';						document.body.appendChild(dhtmlgoodies_tooltip);			document.body.appendChild(dhtmlgoodies_tooltipShadow);			}				dhtmlgoodies_tooltip.style.display='block';		dhtmlgoodies_tooltipShadow.style.display='block';				var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);				var leftPos = e.clientX + 10;				dhtmlgoodies_tooltip.style.width = null;	// Reset style width if it's set 		dhtmlgoodies_tooltip.innerHTML = tooltipTxt;		dhtmlgoodies_tooltip.style.left = leftPos + 'px';		dhtmlgoodies_tooltip.style.top = e.clientY + 10 + st + 'px';				dhtmlgoodies_tooltipShadow.style.left =  leftPos + dhtmlgoodies_shadowSize + 'px';		dhtmlgoodies_tooltipShadow.style.top = e.clientY + 10 + st + dhtmlgoodies_shadowSize + 'px';				if(dhtmlgoodies_tooltip.offsetWidth>dhtmlgoodies_tooltipMaxWidth){	/* Exceeding max width of tooltip ? */			dhtmlgoodies_tooltip.style.width = dhtmlgoodies_tooltipMaxWidth + 'px';		}				var tooltipWidth = dhtmlgoodies_tooltip.offsetWidth;				if(tooltipWidth<dhtmlgoodies_tooltipMinWidth)tooltipWidth = dhtmlgoodies_tooltipMinWidth;				dhtmlgoodies_tooltipShadow.style.width = tooltipWidth + 'px';		dhtmlgoodies_tooltip.style.width = tooltipWidth + 'px';		dhtmlgoodies_tooltipShadow.style.height = dhtmlgoodies_tooltip.offsetHeight + 'px';						if((leftPos + tooltipWidth)>bodyWidth){			dhtmlgoodies_tooltip.style.left = (dhtmlgoodies_tooltipShadow.style.left.replace('px','') - ((leftPos + tooltipWidth)-bodyWidth)) + 'px';			dhtmlgoodies_tooltipShadow.style.left = (dhtmlgoodies_tooltipShadow.style.left.replace('px','') - ((leftPos + tooltipWidth)-bodyWidth) + dhtmlgoodies_shadowSize) + 'px';		}	}		function hideTooltip()	{		dhtmlgoodies_tooltip.style.display='none';		dhtmlgoodies_tooltipShadow.style.display='none';			}	function prefillClear(field) {field.style.color = "#000";if (field.defaultValue==field.value) {field.value = '';}else if (field.value == '') {field.value = field.defaultValue;field.style.color = "#999";}}function boxexpand() {boxValue=document.all.thebox.value.lengthboxSize=document.all.thebox.sizeminNum=20 // Set this to the MINIMUM size you want your box to be.maxNum=100 // Set this to the MAXIMUM size you want your box to be.// Starts the main portion of the script //if (boxValue > maxNum)  {  }else{  if (boxValue > minNum)    {      document.all.thebox.size = boxValue    }  else if (boxValue < minNum || boxValue != minNum)    {      document.all.thebox.size = minNum    }}}// Break out of a framefunction breakout_of_frame(){  if (top.location != location) {    top.location.href = document.location.href ;  }}// End of script //
