function openWin(strURL, dWidth, dHeight){
	var popLeft = 0, popTop = 0;
	if(screen.width) popLeft = (screen.width - dWidth) / 2;
	if(screen.height) popTop = (screen.height - dHeight) / 2;

	newapp = open(strURL,"What_it_is","resizable=1,status=350,location=0,scrollbars=1,width=" + dWidth + ",height=" + dHeight + ",left=" + popLeft + ",top=" + popTop);
	if(navigator.appName == "Netscape")
		newapp.focus();
}
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]+"'");
}

var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) {
 if (newWin != null && !newWin.closed)
   newWin.close();
 var strOptions="";
 if (strType=="console")
   strOptions="resizable,height="+
     strHeight+",width="+strWidth;
 if (strType=="fixed")
   strOptions="status,height="+
     strHeight+",width="+strWidth;
 if (strType=="elastic")
   strOptions="toolbar,menubar,scrollbars,"+
     "resizable,location,height="+
     strHeight+",width="+strWidth;
 newWin = window.open(strURL, 'newWin', strOptions);
 newWin.focus();
}

function Login_focus(e,o){
if(o.firstTime){return}
o.firstTime=true
o.value=""
}

function switchMenu(obj) {
	var lay = document.getElementById(obj);
	if ( lay.style.display != "none" ) {
		lay.style.display = 'none';
	}
	else {
		lay.style.display = '';
	}
}


