var DHTML = 0, DOM = 0, MS = 0, NS = 0, OP = 0;

function toggleDiv(divid)
{
	mydiv = document.getElementById(divid);

	if (mydiv.style.display=="block")
	{
		mydiv.style.display="none";
		mydiv.style.height="0px";
	} else
	{
		mydiv.style.display="block";
		mydiv.style.height="75px";
	}
}


function showDocPopup(path, title, myWidth, myHeight) {
	myWindow = window.open(path, title, 'scrollbars=1, width=' + myWidth + ', height=' + myHeight);
}

function showPopup(path, title, myWidth, myHeight) {
	myWindow = window.open(path, title, 'scrollbars=0, width=' + myWidth + ', height=' + myHeight);

}



   function DisableButtonByCheckbox(buttonid, checkboxid) {
   chk=document.getElementById(checkboxid)
   if (chk.checked == true) {
		document.getElementById(buttonid).disabled = false;
   } else {
		document.getElementById(buttonid).disabled = true;
   }
  }


function sendYellowpayForm(){
	var myForm = document.Form1;
	document.Form1.submit();
}


function printdiv()
 {
  var URL = window.location ;
  var printwindow = window.open(URL,"");
  printwindow.print();
 }

function GetUrlValue(Entry)
{
  urlText=location.search;
  fc=urlText.slice(0,1);
  if(fc=="?")
  {
    l=urlText.length;
    urlText=urlText.slice(1,l);
    ArgSet=urlText.split("&");
    for(i=0;i<ArgSet.length;i++)
    {
      as=ArgSet[i].split("=");
      if(as[0]==Entry)
      {
        var result=as[1].split("%26");
        alert(result[0]);
        return (result[0]);
      }
    }
    ArgSet=urlText.split("%26");
    return ("");
  }
}


function ShowWaitMsg()

	{

		//document.all.pleasewaitScreen.style.pixelTop = (document.body.scrollTop + 50);

		//document.all.pleasewaitScreen.style.visibility="visible";



		document.getElementById("pleasewaitScreen").style.pixelTop = (document.body.scrollTop + 20);

		document.getElementById("pleasewaitScreen").style.display="block";


	}

function HideWaitMsg()

	{

		document.getElementById("pleasewaitScreen").style.display="none";

	}

sfHover = function() {
				var sfEls = document.getElementById("nav").getElementsByTagName("LI");
				for (var i=0; i<sfEls.length; i++) {
					sfEls[i].onmouseover=function() {
						this.className+=" sfhover";
					}
					sfEls[i].onmouseout=function() {
						this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
					}
				}
			}
			if (window.attachEvent) window.attachEvent("onload", sfHover);




