// JavaScript Document

function MM_showHideLayers() { //v9.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3) 

  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }

    obj.visibility=v; }

}

function chkLogin(obj,def) {
	try {obj.gourl.value = window.top.document.URL;}
	catch( err ) {};
	if(obj.userid.value=='')
	{
		alert("用户名不能为空！");
		return false;
	}
	if(obj.pwd.value=='')
	{
		alert("密码不能为空！");
		return false;
	}
	if(def==1)
	{ 
		if(obj.vdcode.value=='')
		{
			alert("验证码不能为空！");
			return false;
		}
	}
	return true;
}
