/** PTNovelSearch-v4.1.2 LPPL License By http://www.ptcms.com/ */
 ;function checkUserReg(){if(""!=$("#usermsg").html()||""!=$("#passmsg").html()||""!=$("#repassmsg").html()||""!=$("#mailmsg").html())return console.log(),!1}String.prototype.isEmail=function(){try{var r=/^(([a-z A-Z \- _ 0-9]+)@[a-z A-Z \- _ 0-9]+\.([a-z A-Z]+(\.)?)?[a-z A-Z]+)$/;return r.test(this.Trim())}catch(s){return!1}},String.prototype.Trim=function(){return this.replace(/(^\s*)  |(\s*$)/g,"")},$(document).ready(function(){$("#regusername").focus(),$("#regusername").blur(function(){var r=$(this).val();return $.trim(r).length<5?void $("#usermsg").html("用户名长度不能小于5"):void $.ajax({url:"/CheckMember.aspx?action=checkusername&username="+r,success:function(r){return 1==r?void $("#usermsg").html("该用户名已经存在!"):void $("#usermsg").html("")},error:function(){alert("验证用户出错!")}})}),$("#regpassword").blur(function(){var r=$(this).val();return $.trim(r).length<=5?void $("#passmsg").html("密码长度不能小于6位!"):void $("#passmsg").html("")}),$("#regrepassword").blur(function(){var r=$(this).val();return r!=$("#regpassword").val()?void $("#repassmsg").html("两次输入的密码不一致!"):void $("#repassmsg").html("")}),$("#regemail").blur(function(){var r=$(this).val();return 0==$.trim(r).length?void $("#mailmsg").html("邮件不能为空!"):r.isEmail()?void $("#mailmsg").html(""):void $("#mailmsg").html("邮件格式不正确!")})});