XN.DOM.readyDo(function(){if($("username")){$("username").setAttribute("rule","blank#realName");$("username").setAttribute("tip",'<p style="color:#000; font-size: 12px;">4-16个字符,由英文字母数字和<br/>下划线组成,开头为英文字母!</p>')}if($("password")&&$("repassword")){$("password").setAttribute("rule","blank#length:6,20");$("password").setAttribute("tip",'<p style="color:#000; font-size: 12px;">密码由6-20个英文字母、数字或<br/>特殊字符组成<br />密码强度：<span id="passwordStrength"></span><span style="background-image:url(http://img.hi.mop.com/imgpro/reg/password.png);background-position:0 -120px;display:block;line-height:5px;height:5px;marign:0;padding:0;" id="passwordScore">&nbsp;</span></p>');$("repassword").setAttribute("rule","blank#compare:password#length:6,20");$("repassword").setAttribute("error",'您的两次输入不一致或者不<br/><span style="margin-left: 33px;_margin-left:18px;">符合密码规则</span>')}else{if($("password")){if(document.location.href.indexOf("msnChannel")>=0){$("password").setAttribute("rule","blank#length:6,20");$("password").setAttribute("tip",'<p style="color:#000; font-size: 12px;">密码由6-20个英文字母、数字或特殊字符组成</p>')
}else{$("password").setAttribute("rule","blank");$("password").setAttribute("tip","<p style='color:#000; font-size: 12px;'>请再次确认您的密</p>")}}}if($("email")){$("email").setAttribute("rule","blank#regName");$("email").setAttribute("tip","<p  style='color:#000; font-size: 12px;'><span>请填</span><b><span style='color:red;'>有效邮箱</span></b><span>，用于密码找回，<b>推荐使用<br/>网易、雅虎、Hotmail邮箱</b></span></p>");if($("email_allowfirst")){XN.FORM.checkers.regName.cachedFirstValue=$("email").value}}if($("frmMemberJoin").gender){XN.ARRAY.each($("frmMemberJoin").gender,function(b,a){if(isElement(a)){a.setAttribute("rule","selectOne");a.setAttribute("error","您还没有选择性别")}})}if($("icode")){$("icode").setAttribute("rule","blank#verifyCode")}new XN.FORM.autoChecker({id:"frmMemberJoin",alertMethod:"div",tipMethod:"tip",submit:"reg_sub"});window.refreshCode=function(){var a=$("verifyPic");if(XN.BROWSER.IE6){new Image().src=a.src+"x"}a.src+="x"};XN.FORM.checkPasswordStrength("password",function(a){if($("passwordScore")){$("passwordScore").style.backgroundPosition="0 -"+((5-a.level)*30)+"px"
}if($("passwordStrength")){$("passwordStrength").innerHTML=a.strength}})});function chooseThis(a){$("username").value=a;$("username").focus();$("login_recommended").style.display="none";$("username_err").style.display="none"};