function menuFix(){
 var sfEls = document.getElementById("nav").getElementsByTagName("li");
 for(var i=0;i<sfEls.length;i++){
	 sfEls[i].onmouseover=function(){
		this.className+=(this.className.length>0? " ": "") + "sfhover";
	 }
	sfEls[i].onMouseDown=function() {
		this.className+=(this.className.length>0? " ": "") + "sfhover";
	}
	sfEls[i].onMouseUp=function() {
		this.className+=(this.className.length>0? " ": "") + "sfhover";
	}
	sfEls[i].onmouseout=function() {
		this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"),"");
    }
 }
}
window.onload=menuFix;
//for admin login
function ck(){
		if(document.fm.user.value==""||document.fm.pwd.value==""||document.fm.vcode.value==""){
		   alert("您的登陆信息不完整! ");
		   return false;
		}else{
			//document.fm.action="man_chk.asp";
			document.fm.submit();
		}
}
function entergo(){
	if(event.keyCode==13){
		ck();
	}else{
		return false;
	}
}

function srh(which,str){
	document.getElementById('rad1').style.backgroundImage='url(/img/rad.gif)';
	document.getElementById('rad2').style.backgroundImage='url(/img/rad.gif)';
	document.getElementById('rad3').style.backgroundImage='url(/img/rad.gif)';
	document.srhfm.tp.value=str;
	which.style.backgroundImage='url(/img/rad2.gif)';
}