function showLayer(layerName) {
	if(document.getElementById)
		document.getElementById(layerName).style.visibility = 'visible';
	else if(document.all)
		document.all[layerName].style.visibility = "visible";
	else if(document.layers)
		document[layerName].visibility = "show";
}

function hideLayer(layerName) {
	if(document.getElementById)
		document.getElementById(layerName).style.visibility = 'hidden';
	else if(document.all)
		document.all[layerName].style.visibility = "hidden";
	else if(document.layers)
		document[layerName].visibility = "hide";
}



var interval1;
function mouse_out(dropdownmenu){
	interval1=window.setInterval("hideLayer('"+dropdownmenu+"')", 500);
}

function mouse_over(dropdownmenu){
	window.clearInterval(interval1);
	showLayer(dropdownmenu);
	for(i=1; i<3; i++){
		if (dropdownmenu != "menu"+i)
			hideLayer("menu"+i);
	}

}



function selService(){
	x=document.form1.serviceSelect.selectedIndex;
	y=document.form1.serviceSelect.options[x].value;
	frm=window.parent.frames;
	if (y!==""){
		frm[1].location.href=y;
		}
}
function expiration(){
	expiration_mm=window.document.frmAuthorize.mm[window.document.frmAuthorize.mm.selectedIndex].value
	expiration_yy=window.document.frmAuthorize.yy[window.document.frmAuthorize.yy.selectedIndex].value
	window.document.frmAuthorize.x_Exp_Date.value=expiration_mm + expiration_yy 
}


function NewWindow(mypage, myname, myw, myh) {
	var browserType;
		browserType = navigator.appName;
		
		if (browserType.indexOf("Netscape")>0)
			{
				browserType="Netscape";				
				winprops = "innerHeight=" + myh + ", innerWidth=" + myw + ", scrollbars=no, resizable=no, menubar=no, toolbar=no";
			}
		else
			{
				BrowserType="IE";
				winprops = "height=" + myh + ", width=" + myw + ", top=120, left=60, scrollbars=no, resizable=no, menubar=no, toolbar=no, titlebar=no";
			}
			
	window.open(mypage, myname, winprops);
}