var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); document.write('

正在登录中...

') document.write('
') document.write('
用户名:
') document.write('
密 码:
') document.write('
验证码:
更换验证码!
') document.write('
注册
') document.write('
忘记密码
') document.write('
') document.write('
') var User=$("login").getElementsByTagName("input"); for(i=0;i<3;i++){ User[i].className="InputDefault"; User[i].onfocus=function(){this.className="InputFocus"} User[i].onblur=function(){this.className="InputDefault"} User[i].onkeyup=function(e,evt){if(e==null){key=event.keyCode}else{key=e.which}if(key==13){LoginCheck()}else{if(toElement(evt)==User[2]){toElement(evt).value=toElement(evt).value.replace(/[^\d]/g,'')}}}} User[3].onclick=LoginCheck $("code").onclick=function(){this.src="img/getcode.asp?"+Math.random()} function LoginCheck(){ if(Trim(User[0].value)==""){alert("请填写用户名!");User[0].focus();return false} if(Trim(User[1].value)==""){alert("请填写登录密码!");User[1].focus();return false} if(Trim(User[2].value)==""){alert("请输入验证码!");User[2].focus();return false} if(User[2].value.length!=4){alert("请输入四位数字的验证码!");User[2].focus();return false} $("userLoader").style.display="block";User[3].focus(); var xmlHttp=createXmlHttp();xmlHttp.onreadystatechange=function(){ if(xmlHttp.readyState==4){ if(xmlHttp.status==200){var n=xmlHttp.responseText;$("userLoader").style.display="none"; if(n=="noPost"){alert("请不要非法提交!");User[0].focus();return false }else if(n=="noName"){alert("用户名不能为空!");User[0].focus();return false }else if(n=="noPwd"){alert("登录密码不能为空!");User[1].focus();return false }else if(n=="noYzm"){alert("验证码不能为空!");User[1].focus();return false }else if(n=="yzmErr"){alert("验证码不正确");User[2].value="";User[2].focus();$("code").src="img/getcode.asp?"+Math.random();return false }else if(n=="userErr"){alert("用户名和密码不匹配");User[0].value=User[1].value=User[2].value="";User[0].focus();$("code").src="img/getcode.asp?"+Math.random();return false }else if(n=="userOk"){$("userLoader").style.display="block";User[0].value=User[1].value=User[2].value="";window.location.reload();return false} } } } xmlHttp.open("post",ajaxUrl,true);xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlHttp.send("Action=login&name="+escape(User[0].value)+"&pwd="+escape(User[1].value)+"&yzm="+User[2].value) } }