function __client() { this.clientid=""; this.email=""; this.firstname=""; this.lastname=""; this.city=""; this.state=""; this.country=""; if (""=="True") { this.sex=true; } else { this.sex=false; } this.zip=""; this.phone=""; this.address1=""; this.address2=""; this.passwordmask="******"; //alert(this.islogin()); } __client.prototype.islogin=function() { if(this.clientid!="") { return true; } else { return false; } } __client.prototype.checklogin=function(event) { if (!jsformcheck(event)) return false; var options = { type: "POST", dataType:"xml", async:true, success: function(msg) { $ajax.doReturnMessage(msg,__afterlogin); document.getElementById("btnLogin").disabled=false; }, complete:function() { }, error:function(msg) { alert("server error:"); document.getElementById("btnLogin").disabled=false; } } $("#formlogin").ajaxSubmit(options); document.getElementById("btnLogin").disabled=true; return false; } __client.prototype.checklogin2=function(event) { if (!jsformcheck(event)) return false; return true; } __client.prototype.logout=function(event) { location.replace("/logout.asp?urlhref="+escape(location)); } var $client=new __client(); function __createnewuser_check(event) { var email0=gE("Emailreg").value; var email1=gE("confirmEmail").value; if(!$form.isEmail(email0)) { alert("请填写正确的email!"); gE("Email").focus(); return false; } else { $ajax.load({url:"checkuser.asp?email="+email0,method:"GET",type:"text"}); if ($ajax.responseText=="true") { alert(email0+"已经被注册,请使用另外的Email地址来注册!"); return false; } } if(email0!=email1) { alert($lang.getLang("info error confirm email")); gE("Email").focus(); return false; } if (!jsformcheck(event)) return false; var password0=gE("passwordreg").value; var password1=gE("confirmPassword").value; if(password0!=password1) { alert($lang.getLang("info error confirm password")); gE("password").focus(); return false; } return true; } function __editprofile_check(event) { var password0=gE("password").value; var password1=gE("confirmPassword").value; if(password0!=password1) { alert($lang.getLang("info error confirm password")); gE("password").focus(); return false; } if (!jsformcheck(event)) return false; return true; }