var gozapLang={ds_ps:"请选择",system:{errorCode:{e400:"目前服务暂时不可用，请稍后重试",e500:"目前服务暂时不可用，请稍后重试",e502:"目前服务暂时不可用，请稍后重试",e503:"目前服务暂时不可用，请稍后重试",e504:"目前服务暂时不可用，请稍后重试",e9999:"成功"}},login:{errorCode:{e1001:"用户名不能为空",e1002:"密码不能为空",e1003:"您输入的用户名格式不合法",e1004:"密码长度必须在6-16位之间",e1099:"您的浏览器无法使用cookie，自动登录功能将无法使用"}},register:{errorCode:{e409:"您注册的用户名已经存在",e1102:"用户名长度必须在5-20位之间",e1103:"密码长度必须在6-16位之间",e1104:"两次密码输入不一致",e1105:"您输入的保密邮箱格式不合法",e1106:"您输入的用户名格式不合法",e1107:"请您输入验证码",e1108:"请您仔细阅读服务条款",e1109:"请您输入昵称"}},findPwd:{errorCode:{e1501:"您输入的用户名格式不合法",e1502:"您输入的保密邮箱格式不合法",e1510:"请您填写保密邮箱",e1511:"请您填写用户名或昵称",e1512:"请您选择用户名",e1513:"请您输入验证码"}},userCenter:{errorCode:{e1201:"请您输入旧密码",e1210:"请您输入新密码",e1211:"请您输入确认密码",e1213:"密码长度必须在6-16位之间",e1214:"两次密码输入不一致",e1301:"您输入的旧保密邮箱格式不合法",e1302:"密码长度必须在6-16位之间",e1305:"您输入的新保密邮箱格式不合法"}}};var gozapFindPassword={errImage:"<span class='errImage'></span>",userNameObj:null,regEmailObj:null,verifyImgObj:null,initListener:function(){$("#fpform input[name='nextStep']").click(function(){gozapFindPassword.fpFormSubmit();return false}).mouseover(function(){$(this).attr("className","fp_nbon")}).mouseout(function(){$(this).attr("className","fp_nb")});gozapFindPassword.userNameObj=$("#fpform input[name='userName']");gozapFindPassword.regEmailObj=$("#fpform input[name='regEmail']");gozapFindPassword.verifyImgObj=$("#fpform input[name='verifyImg']")},userNameListener:function(){gozapFindPassword.userNameObj.focus(function(){$(this).css("background-color","#FFFFCC")}).blur(function(){if(!gozapCommon.isUserName($(this).val())){$("#errMsg_un").html(gozapFindPassword.errImage+gozapLang.findPwd.errorCode.e1501)}else{$("#errMsg_un").html("")}$(this).css("background-color","#FFFFFF")})},regEmailListener:function(){gozapFindPassword.regEmailObj.focus(function(){$(this).css("background-color","#FFFFCC")}).blur(function(){if(!gozapCommon.isEmail($(this).val())&&$.trim($(this).val())!=""){$("#errMsg_rm").html(gozapFindPassword.errImage+gozapLang.findPwd.errorCode.e1502)}else{$("#errMsg_rm").html("")}$(this).css("background-color","#FFFFFF")})},verifyImgListener:function(){gozapFindPassword.verifyImgObj.focus(function(){$(this).css("background-color","#FFFFCC")}).blur(function(){$(this).css("background-color","#FFFFFF")})},fpFormSubmit:function(){if(!gozapCommon.isUserName(gozapFindPassword.userNameObj.val())||$.trim(gozapFindPassword.userNameObj.val())==""){$("#errMsg_un").html(gozapFindPassword.errImage+gozapLang.findPwd.errorCode.e1501);gozapFindPassword.userNameObj.focus();return false}else{if(!gozapCommon.isEmail(gozapFindPassword.regEmailObj.val())){$("#errMsg_rm").html(gozapFindPassword.errImage+gozapLang.findPwd.errorCode.e1502);gozapFindPassword.regEmailObj.focus();return false}else{if($.trim(gozapFindPassword.verifyImgObj.val())==""){$("#errMsg_vi").html(gozapFindPassword.errImage+gozapLang.findPwd.errorCode.e1513);gozapFindPassword.verifyImgObj.focus();return false}}}$("#fpform").submit()},init:function(){gozapFindPassword.initListener();gozapFindPassword.userNameListener();gozapFindPassword.regEmailListener();gozapFindPassword.verifyImgListener();gozapFindPassword.userNameObj.focus()}};var gozapFindPwdFull={errImage:"<span class='errImage'></span>",userNameObj:null,regEmailObj:null,verifyImgObj:null,initListener:function(){$("#fpform input[name='nextStep']").click(function(){gozapFindPwdFull.fpFormSubmit();return false}).mouseover(function(){$(this).attr("className","fp_nbon")}).mouseout(function(){$(this).attr("className","fp_nb")});gozapFindPwdFull.userNameObj=$("#fpform input[name='userName']");gozapFindPwdFull.nickNameObj=$("#fpform input[name='nickName']");gozapFindPwdFull.verifyImgObj=$("#fpform input[name='verifyImg']")},userNameListener:function(){gozapFindPwdFull.userNameObj.focus(function(){$(this).css("background-color","#FFFFCC")}).blur(function(){if(!gozapCommon.isUserName($(this).val())){$("#errMsg_un").html(gozapFindPwdFull.errImage+gozapLang.findPwd.errorCode.e1501)}else{$("#errMsg_un").html("")}$(this).css("background-color","#FFFFFF")})},nickNameListener:function(){gozapFindPwdFull.nickNameObj.focus(function(){$(this).css("background-color","#FFFFCC")}).blur(function(){$(this).css("background-color","#FFFFFF")})},verifyImgListener:function(){gozapFindPwdFull.verifyImgObj.focus(function(){$(this).css("background-color","#FFFFCC")}).blur(function(){$(this).css("background-color","#FFFFFF")})},fpFormSubmit:function(){if($.trim(gozapFindPwdFull.nickNameObj.val())==""&&$.trim(gozapFindPwdFull.userNameObj.val())==""){$("#errMsg_un").html(gozapFindPwdFull.errImage+gozapLang.findPwd.errorCode.e1511);gozapFindPwdFull.userNameObj.focus();return false}else{if(!gozapCommon.isUserName(gozapFindPwdFull.userNameObj.val())){$("#errMsg_un").html(gozapFindPwdFull.errImage+gozapLang.findPwd.errorCode.e1501);gozapFindPassword.userNameObj.focus();return false}else{if($.trim(gozapFindPwdFull.verifyImgObj.val())==""){$("#errMsg_vi").html(gozapFindPwdFull.errImage+gozapLang.findPwd.errorCode.e1513);gozapFindPwdFull.verifyImgObj.focus();return false}}}$("#fpform").submit()},init:function(){gozapFindPwdFull.initListener();gozapFindPwdFull.userNameListener();gozapFindPwdFull.nickNameListener();gozapFindPwdFull.verifyImgListener();gozapFindPwdFull.userNameObj.focus()}};var gozapFindPwdUerList={errImage:"<span class='errImage'></span>",regEmailObj:null,initListener:function(){$("#fpulform input[name='nextStep']").click(function(){gozapFindPwdUerList.fpFormSubmit();return false}).mouseover(function(){$(this).attr("className","fp_nbon")}).mouseout(function(){$(this).attr("className","fp_nb")});gozapFindPwdUerList.regEmailObj=$("#fpulform input[name='regEmail']")},fpFormSubmit:function(){if($("#fpulform input[type='radio']:checked").length<=0){$("#errMsg").html(gozapLang.findPwd.errorCode.e1512);gozapCommon.goTop();return false}else{if($.trim(gozapFindPwdUerList.regEmailObj.val())==""){$("#errMsg").html("");$("#errMsg_vi").html(gozapFindPwdUerList.errImage+gozapLang.findPwd.errorCode.e1510);gozapFindPwdUerList.regEmailObj.focus();return false}else{if(!gozapCommon.isEmail(gozapFindPwdUerList.regEmailObj.val())){$("#errMsg_vi").html(gozapFindPwdUerList.errImage+gozapLang.findPwd.errorCode.e1502);gozapFindPwdUerList.regEmailObj.focus();return false}}}$("#fpulform").submit()},init:function(){gozapFindPwdUerList.initListener()}};var gozapLogin={userNameObj:null,passwordObj:null,autoLoginObj:null,initFormDataObject:function(){gozapLogin.userNameObj=$("#loginForm input[name='userName']");gozapLogin.passwordObj=$("#loginForm input[name='password']");gozapLogin.autoLoginObj=$("#loginForm input[name='autoLogin']")},userNameListener:function(){gozapLogin.userNameObj.blur(function(){if(!gozapCommon.isUserName($(this).val())){$("#errMsg").html(gozapLang.login.errorCode.e1003)}$(this).css("background-color","#FFFFFF")}).focus(function(){$(this).css("background-color","#FFFFCC")})},pwdListener:function(){gozapLogin.passwordObj.keypress(function(a){if(gozapCommon.isOpenCapsLock(a)){$("#lc_pcl").css("display","block")}else{$("#lc_pcl").css("display","none")}}).focus(function(){$(this).css("background-color","#FFFFCC")}).blur(function(){$(this).css("background-color","#FFFFFF")})},autoLoginListener:function(){gozapLogin.autoLoginObj.click(function(){if(!gozapCommon.isCookieEnabled()){alert(gozapLang.login.errorCode.e1099)}if($(this).attr("checked")==true){$(this).val("1")}else{$(this).val("0")}})},loginSubmit:function(){$("input[name='lc_dlb']").click(function(){if(gozapLogin.userNameObj.val()==""){$("#errMsg").html(gozapLang.login.errorCode.e1001);gozapLogin.userNameObj.focus();return false}else{if(gozapLogin.passwordObj.val()==""){$("#errMsg").html(gozapLang.login.errorCode.e1002);gozapLogin.passwordObj.focus();return false}else{if(!gozapCommon.isUserName(gozapLogin.userNameObj.val())){$("#errMsg").html(gozapLang.login.errorCode.e1003);gozapLogin.userNameObj.focus();return false}else{if(gozapLogin.passwordObj.val().length<6||gozapLogin.passwordObj.val().length>16){$("#errMsg").html(gozapLang.login.errorCode.e1004);gozapLogin.passwordObj.focus();return false}}}}}).mouseover(function(){$(this).attr("className","lc_dlbon")}).mouseout(function(){$(this).attr("className","lc_dlb")})},init:function(){gozapLogin.initFormDataObject();gozapLogin.loginSubmit();gozapLogin.userNameListener();gozapLogin.pwdListener();gozapLogin.autoLoginListener();gozapLogin.userNameObj.focus()}};var gozapRegister={errImage:"<span class='errImage'></span>",successImage:"<span class='successImage'></span>",inputBorderDefault:{borderBottom:"1px solid #E6E6E6",borderLeft:"1px solid #D3D3D3",borderRight:"1px solid #D3D3D3",borderTop:"1px solid #D5D5D5"},setBorder:function(a){a.css("border","1px solid #3F70CF")},userNameObj:null,passwordObj:null,confirmPasswordObj:null,emailObj:null,verifyImgObj:null,initFormDataObject:function(){gozapRegister.userNameObj=$("#regForm input[name='registerBean.userName']");gozapRegister.passwordObj=$("#regForm input[name='registerBean.password']");gozapRegister.confirmPasswordObj=$("#regForm input[name='registerBean.confirmPassword']");gozapRegister.emailObj=$("#regForm input[name='registerBean.email']");gozapRegister.verifyImgObj=$("#regForm input[name='registerBean.verifyImg']");$("#regForm input[name='regbum']").click(function(){gozapRegister.registerSubmit();return false}).mouseover(function(){$(this).attr("className","reg_bton")}).mouseout(function(){$(this).attr("className","reg_bt")});$("#reg_mmqd").mouseover(function(){$("#reg_mmqdts").css("display","block")}).mouseout(function(){$("#reg_mmqdts").css("display","none")})},userNameListener:function(){gozapRegister.userNameObj.blur(function(){if(!gozapCommon.isUserName($(this).val())){$("#errMsg_un").html(gozapRegister.errImage+gozapLang.register.errorCode.e1106)}else{if($.trim($(this).val()).length>0&&($.trim($(this).val()).length<5||$.trim($(this).val()).length>20)){$("#errMsg_un").html(gozapRegister.errImage+gozapLang.register.errorCode.e1102)}else{$("#errMsg_un").html("")}}$(this).css(gozapRegister.inputBorderDefault);if(gozapCommon.isUserName($(this).val())&&$.trim($(this).val()).length>=5&&$.trim($(this).val()).length<=20){$.ajax({type:"POST",url:"register_isExistUser",data:"userName="+$.trim($(this).val()),success:function(a){if("404"==a){$("#errMsg_un").html(gozapRegister.successImage)}else{if("409"==a||"false"==a){$("#errMsg_un").html(gozapRegister.errImage+gozapLang.register.errorCode.e409)}else{if("400"==a||"500"==a||"502"==a||"503"==a||"504"==a){$("#errMsg_un").html(gozapRegister.errImage+gozapLang.system.errorCode.e503)}}}}})}}).focus(function(){gozapRegister.setBorder($(this))})},pwdListener:function(){gozapRegister.passwordObj.focus(function(){gozapRegister.setBorder($(this))}).blur(function(){if($(this).val().length>0&&($(this).val().length<6||$(this).val().length>16)){$("#errMsg_pwd").html(gozapRegister.errImage+gozapLang.register.errorCode.e1103)}else{$("#errMsg_pwd").html("")}$(this).css(gozapRegister.inputBorderDefault);if($(this).val()==""){}}).keyup(function(){passwordStrength.changePS(passwordStrength.policy($(this).val()))})},confirmPwdListener:function(){gozapRegister.confirmPasswordObj.blur(function(){if($(this).val()!=gozapRegister.passwordObj.val()){$("#errMsg_cpwd").html(gozapRegister.errImage+gozapLang.register.errorCode.e1104)}else{$("#errMsg_cpwd").html("")}}).blur(function(){$(this).css(gozapRegister.inputBorderDefault)}).focus(function(){gozapRegister.setBorder($(this))})},emailListener:function(){gozapRegister.emailObj.blur(function(){if(!gozapCommon.isEmail($(this).val())&&$.trim($(this).val()).length>0){$("#errMsg_em").html(gozapRegister.errImage+gozapLang.register.errorCode.e1105)}else{$("#errMsg_em").html("")}}).blur(function(){$(this).css(gozapRegister.inputBorderDefault)}).focus(function(){gozapRegister.setBorder($(this))})},verifyImgListener:function(){gozapRegister.verifyImgObj.keydown(function(a){if(a.keyCode==13){gozapRegister.registerSubmit();return false}}).blur(function(){$(this).css(gozapRegister.inputBorderDefault)}).focus(function(){gozapRegister.setBorder($(this))})},registerSubmit:function(){if(!gozapCommon.isUserName(gozapRegister.userNameObj.val())){$("#errMsg_un").html(gozapRegister.errImage+gozapLang.register.errorCode.e1106);gozapRegister.userNameObj.focus();return false}else{if(gozapRegister.userNameObj.val().length<5||gozapRegister.userNameObj.val().length>20){$("#errMsg_un").html(gozapRegister.errImage+gozapLang.register.errorCode.e1102);gozapRegister.userNameObj.focus();return false}else{if(gozapRegister.passwordObj.val().length<6||gozapRegister.passwordObj.val().length>16){$("#errMsg_pwd").html(gozapRegister.errImage+gozapLang.register.errorCode.e1103);gozapRegister.passwordObj.focus();return false}else{if(gozapRegister.confirmPasswordObj.val()!=gozapRegister.passwordObj.val()){$("#errMsg_cpwd").html(gozapRegister.errImage+gozapLang.register.errorCode.e1104);gozapRegister.confirmPasswordObj.focus();return false}else{if(!gozapCommon.isEmail(gozapRegister.emailObj.val())){$("#errMsg_em").html(gozapRegister.errImage+gozapLang.register.errorCode.e1105);gozapRegister.emailObj.focus();return false}else{if($.trim(gozapRegister.verifyImgObj.val())==""){$("#errMsg_vi").html(gozapRegister.errImage+gozapLang.register.errorCode.e1107);gozapRegister.verifyImgObj.focus();return false}else{if($("#regForm input[name='registerBean.isCheckedService']").attr("checked")==false){alert(gozapLang.register.errNotCheckedService);return false}}}}}}}if($("#regForm input[name='regbum']").attr("disabled")==false){$("#regForm").submit();$("#regForm input[name='regbum']").attr("disabled","true")}},init:function(){gozapRegister.initFormDataObject();gozapRegister.userNameListener();gozapRegister.pwdListener();gozapRegister.confirmPwdListener();gozapRegister.emailListener();gozapRegister.verifyImgListener();gozapRegister.userNameObj.focus();$("#regForm input[name='regbum']").removeAttr("disabled")},registerSuccess:{nickNameObj:null,initListener:function(){gozapRegister.registerSuccess.nickNameObj=$("#setRegisterUserInfoForm input[name='uio.nickName']");gozapUserCenter.setUserInfo.selfi=$("#setRegisterUserInfoForm textarea[name='uio.selfi']");$("#setRegisterUserInfoForm input[name='ui_bu']").click(function(){gozapRegister.registerSuccess.setRegisterUserInfoFormSubmit();return false}).mouseover(function(){$(this).attr("className","ui_buon")}).mouseout(function(){$(this).attr("className","ui_bu")})},setRegisterUserInfoFormSubmit:function(){if($.trim(gozapRegister.registerSuccess.nickNameObj.val())==""){$("#errMsg").html(gozapRegister.errImage+gozapLang.register.errorCode.e1109);gozapRegister.registerSuccess.nickNameObj.focus();return false}$("#setRegisterUserInfoForm").submit()},init:function(){gozapRegister.registerSuccess.initListener();gozapRegister.registerSuccess.nickNameObj.focus();ctDate.show(document.getElementById("uio.year"),document.getElementById("uio.month"),document.getElementById("uio.day"));var b="000000";for(var a=0;a<Citys.length;a++){if(cn==Citys[a][1]){b=Citys[a][0];break}}InitCitySelect2(document.getElementById("uio.sprovince"),document.getElementById("uio.scity"),b)},initTwo:function(){$("#setRegisterPrewForm input[name='ui_sbu']").click(function(){$("#setRegisterPrewForm").submit();return false});$("#setRegisterFinishForm input[name='ui_wbu']").click(function(){$("#setRegisterFinishForm").submit();return false});$("#setRegisterPrewForm input[name='ui_sbu'],#setRegisterFinishForm input[name='ui_wbu']").mouseover(function(){$(this).attr("className","ui_buon")}).mouseout(function(){$(this).attr("className","ui_bu")})}}};var gozapUserCenter={errImage:"<span class='errImage'></span>",passwordObj:null,newPasswordObj:null,confirmPasswordObj:null,oldMailObj:null,newMailObj:null,mailConfirmPasswordObj:null,initListener:function(){$("#userInfoForm input[name='setPwd']").click(function(){gozapUserCenter.setPwdSubmit();return false}).mouseover(function(){$(this).attr("className","ui_buon")}).mouseout(function(){$(this).attr("className","ui_bu")});$("#userInfoForm input[name='setMail']").click(function(){gozapUserCenter.setMail();return false}).mouseover(function(){$(this).attr("className","ui_buon")}).mouseout(function(){$(this).attr("className","ui_bu")});gozapUserCenter.passwordObj=$("#userInfoForm input[name='oldPassword']");gozapUserCenter.newPasswordObj=$("#userInfoForm input[name='newPassword']");gozapUserCenter.confirmPasswordObj=$("#userInfoForm input[name='confirmPassword']");gozapUserCenter.oldMailObj=$("#userInfoForm input[name='oldRegmail']");gozapUserCenter.newMailObj=$("#userInfoForm input[name='newRegmail']");gozapUserCenter.mailConfirmPasswordObj=$("#userInfoForm input[name='confirmPassword']")},setPwdInputListener:function(){gozapUserCenter.passwordObj.focus(function(){$(this).css("background-color","#FFFFCC")}).blur(function(){if($.trim(gozapUserCenter.passwordObj.val())==""&&gozapUserCenter.passwordObj.val().length>0){$("#errMsg_p").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1201)}else{$("#errMsg_p").html("")}$(this).css("background-color","#FFFFFF")});gozapUserCenter.newPasswordObj.focus(function(){$(this).css("background-color","#FFFFCC")}).blur(function(){if($.trim(gozapUserCenter.newPasswordObj.val())==""&&gozapUserCenter.newPasswordObj.val().length>0){$("#errMsg_np").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1201)}else{if(gozapUserCenter.newPasswordObj.val()!=""&&(gozapUserCenter.newPasswordObj.val().length<6||gozapUserCenter.newPasswordObj.val().length>20)){$("#errMsg_np").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1213)}else{$("#errMsg_np").html("")}}$(this).css("background-color","#FFFFFF")});gozapUserCenter.confirmPasswordObj.focus(function(){$(this).css("background-color","#FFFFCC")}).blur(function(){if($.trim(gozapUserCenter.confirmPasswordObj.val())==""&&gozapUserCenter.confirmPasswordObj.val().length>0){$("#errMsg_cp").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1201)}else{if(gozapUserCenter.newPasswordObj.val()!=gozapUserCenter.confirmPasswordObj.val()){$("#errMsg_cp").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1214)}else{$("#errMsg_cp").html("")}}$(this).css("background-color","#FFFFFF")});gozapUserCenter.passwordObj.focus()},setPwdSubmit:function(){if($.trim(gozapUserCenter.passwordObj.val())==""){$("#errMsg_p").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1201);gozapUserCenter.passwordObj.focus();return false}else{if($.trim(gozapUserCenter.newPasswordObj.val())==""){$("#errMsg_np").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1210);gozapUserCenter.newPasswordObj.focus();return false}else{if(gozapUserCenter.newPasswordObj.val()!=""&&(gozapUserCenter.newPasswordObj.val().length<6||gozapUserCenter.newPasswordObj.val().length>20)){$("#errMsg_np").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1213);gozapUserCenter.newPasswordObj.focus();return false}else{if(gozapUserCenter.newPasswordObj.val()!=gozapUserCenter.confirmPasswordObj.val()){$("#errMsg_cp").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1214);gozapUserCenter.confirmPasswordObj.focus();return false}}}}$("#userInfoForm").submit()},setMailListener:function(){gozapUserCenter.oldMailObj.focus(function(){$(this).css("background-color","#FFFFCC")}).blur(function(){if($.trim(gozapUserCenter.oldMailObj.val())!=""&&!gozapCommon.isEmail(gozapUserCenter.oldMailObj.val())){$("#errMsg_m").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1301)}else{$("#errMsg_m").html("")}$(this).css("background-color","#FFFFFF")});gozapUserCenter.newMailObj.focus(function(){$(this).css("background-color","#FFFFCC")}).blur(function(){if($.trim(gozapUserCenter.newMailObj.val())!=""&&!gozapCommon.isEmail(gozapUserCenter.newMailObj.val())){$("#errMsg_nm").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1305)}else{$("#errMsg_nm").html("")}$(this).css("background-color","#FFFFFF")});gozapUserCenter.mailConfirmPasswordObj.focus(function(){$(this).css("background-color","#FFFFCC")}).blur(function(){if($.trim(gozapUserCenter.mailConfirmPasswordObj.val())==""&&gozapUserCenter.mailConfirmPasswordObj.val().length>0){$("#errMsg_p").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1201)}else{$("#errMsg_p").html("")}$(this).css("background-color","#FFFFFF")});gozapUserCenter.oldMailObj.focus()},setMail:function(){if(!gozapCommon.isEmail(gozapUserCenter.oldMailObj.val())){$("#errMsg_m").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1301);gozapUserCenter.oldMailObj.focus();return false}else{if(!gozapCommon.isEmail(gozapUserCenter.newMailObj.val())){$("#errMsg_nm").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1305);gozapUserCenter.newMailObj.focus();return false}else{if($.trim(gozapUserCenter.mailConfirmPasswordObj.val())!=""&&(gozapUserCenter.mailConfirmPasswordObj.val().length<6||gozapUserCenter.mailConfirmPasswordObj.val().length>20)){$("#errMsg_np").html(gozapUserCenter.errImage+gozapLang.userCenter.errorCode.e1302);gozapUserCenter.mailConfirmPasswordObj.focus();return false}}}$("#userInfoForm").submit()},init:function(){gozapUserCenter.initListener();gozapUserCenter.setPwdInputListener();gozapUserCenter.setMailListener()},setUserInfo:{selfi:null,initFormDataObject:function(){gozapUserCenter.setUserInfo.selfi=$("#setUserInfoForm textarea[name='uio.selfi']");$("#setUserInfoForm input[name='ui_bu']").click(function(){gozapUserCenter.setUserInfo.setUserInfoFormSubmit();return false}).mouseover(function(){$(this).attr("className","ui_buon")}).mouseout(function(){$(this).attr("className","ui_bu")})},selfiListener:function(){gozapUserCenter.setUserInfo.selfi.keyup(function(){$(this).css("height","50px");$(this).css("height",$(this).attr("scrollHeight"))}).keydown(function(){$(this).css("height","50px");$(this).css("height",$(this).attr("scrollHeight"))}).change(function(){$(this).css("height","50px");$(this).css("height",$(this).attr("scrollHeight"))});si=si.replace(/<br\/>/ig,"\n");gozapUserCenter.setUserInfo.selfi.val(si);gozapUserCenter.setUserInfo.selfi.css("height",gozapUserCenter.setUserInfo.selfi.attr("scrollHeight"))},setUserInfoFormSubmit:function(){$("#setUserInfoForm").submit()},init:function(){ctDate.show(document.getElementById("uio.year"),document.getElementById("uio.month"),document.getElementById("uio.day"));var b="000000";for(var a=0;a<Citys.length;a++){if(cn==Citys[a][1]){b=Citys[a][0];break}}InitCitySelect2(document.getElementById("uio.sprovince"),document.getElementById("uio.scity"),b);gozapUserCenter.setUserInfo.initFormDataObject();gozapUserCenter.setUserInfo.selfiListener()},init1:function(){ctDate.show(document.getElementById("uio.year"),document.getElementById("uio.month"),document.getElementById("uio.day"));InitCitySelect2(document.getElementById("uio.sprovince"),document.getElementById("uio.scity"))}}};var g_selProvince;var g_selCity;var Provinces=new Array(new Array("110000","北京市"),new Array("120000","天津市"),new Array("130000","河北省"),new Array("140000","山西省"),new Array("150000","内蒙古自治区"),new Array("210000","辽宁省"),new Array("220000","吉林省"),new Array("230000","黑龙江省"),new Array("310000","上海市"),new Array("320000","江苏省"),new Array("330000","浙江省"),new Array("340000","安徽省"),new Array("350000","福建省"),new Array("360000","江西省"),new Array("370000","山东省"),new Array("410000","河南省"),new Array("420000","湖北省"),new Array("430000","湖南省"),new Array("440000","广东省"),new Array("450000","广西壮族自治区"),new Array("460000","海南省"),new Array("500000","重庆市"),new Array("510000","四川省"),new Array("520000","贵州省"),new Array("530000","云南省"),new Array("540000","西藏自治区"),new Array("610000","陕西省"),new Array("620000","甘肃省"),new Array("630000","青海省"),new Array("640000","宁夏回族自治区"),new Array("650000","新疆维吾尔自治区"),new Array("710000","台湾省"),new Array("810000","香港特别行政区"),new Array("820000","澳门特别行政区"));var Citys=new Array(new Array("110100","北京"),new Array("120100","天津"),new Array("130101","石家庄"),new Array("130201","唐山"),new Array("130301","秦皇岛"),new Array("130701","张家口"),new Array("130801","承德"),new Array("131001","廊坊"),new Array("130401","邯郸"),new Array("130501","邢台"),new Array("130601","保定"),new Array("130901","沧州"),new Array("133001","衡水"),new Array("140101","太原"),new Array("140201","大同"),new Array("140301","阳泉"),new Array("140501","晋城"),new Array("140601","朔州"),new Array("142201","忻州"),new Array("142331","离石"),new Array("142401","榆次"),new Array("142601","临汾"),new Array("142701","运城"),new Array("140401","长治"),new Array("150101","呼和浩特"),new Array("150201","包头"),new Array("150301","乌海"),new Array("152601","集宁"),new Array("152701","东胜"),new Array("152801","临河"),new Array("152921","阿拉善左旗"),new Array("150401","赤峰"),new Array("152301","通辽"),new Array("152502","锡林浩特"),new Array("152101","海拉尔"),new Array("152201","乌兰浩特"),new Array("210101","沈阳"),new Array("210201","大连"),new Array("210301","鞍山"),new Array("210401","抚顺"),new Array("210501","本溪"),new Array("210701","锦州"),new Array("210801","营口"),new Array("210901","阜新"),new Array("211101","盘锦"),new Array("211201","铁岭"),new Array("211301","朝阳"),new Array("211401","锦西"),new Array("210601","丹东"),new Array("220101","长春"),new Array("220201","吉林"),new Array("220301","四平"),new Array("220401","辽源"),new Array("220601","浑江"),new Array("222301","白城"),new Array("222401","延吉"),new Array("220501","通化"),new Array("230101","哈尔滨"),new Array("230301","鸡西"),new Array("230401","鹤岗"),new Array("230501","双鸭山"),new Array("230701","伊春"),new Array("230801","佳木斯"),new Array("230901","七台河"),new Array("231001","牡丹江"),new Array("232301","绥化"),new Array("230201","齐齐哈尔"),new Array("230601","大庆"),new Array("232601","黑河"),new Array("232700","加格达奇"),new Array("310100","上海"),new Array("320101","南京"),new Array("320201","无锡"),new Array("320301","徐州"),new Array("320401","常州"),new Array("320501","苏州"),new Array("320600","南通"),new Array("320701","连云港"),new Array("320801","淮阴"),new Array("320901","盐城"),new Array("321001","扬州"),new Array("321101","镇江"),new Array("330101","杭州"),new Array("330201","宁波"),new Array("330301","温州"),new Array("330401","嘉兴"),new Array("330501","湖州"),new Array("330601","绍兴"),new Array("330701","金华"),new Array("330801","衢州"),new Array("330901","舟山"),new Array("332501","丽水"),new Array("332602","临海"),new Array("340101","合肥"),new Array("340201","芜湖"),new Array("340301","蚌埠"),new Array("340401","淮南"),new Array("340501","马鞍山"),new Array("340601","淮北"),new Array("340701","铜陵"),new Array("340801","安庆"),new Array("341001","黄山"),new Array("342101","阜阳"),new Array("342201","宿州"),new Array("342301","滁州"),new Array("342401","六安"),new Array("342501","宣州"),new Array("342601","巢湖"),new Array("342901","贵池"),new Array("350101","福州"),new Array("350201","厦门"),new Array("350301","莆田"),new Array("350401","三明"),new Array("350501","泉州"),new Array("350601","漳州"),new Array("352101","南平"),new Array("352201","宁德"),new Array("352601","龙岩"),new Array("360101","南昌"),new Array("360201","景德镇"),new Array("362101","赣州"),new Array("360301","萍乡"),new Array("360401","九江"),new Array("360501","新余"),new Array("360601","鹰潭"),new Array("362201","宜春"),new Array("362301","上饶"),new Array("362401","吉安"),new Array("362502","临川"),new Array("370101","济南"),new Array("370201","青岛"),new Array("370301","淄博"),new Array("370401","枣庄"),new Array("370501","东营"),new Array("370601","烟台"),new Array("370701","潍坊"),new Array("370801","济宁"),new Array("370901","泰安"),new Array("371001","威海"),new Array("371100","日照"),new Array("372301","滨州"),new Array("372401","德州"),new Array("372501","聊城"),new Array("372801","临沂"),new Array("372901","菏泽"),new Array("410101","郑州"),new Array("410201","开封"),new Array("410301","洛阳"),new Array("410401","平顶山"),new Array("410501","安阳"),new Array("410601","鹤壁"),new Array("410701","新乡"),new Array("410801","焦作"),new Array("410901","濮阳"),new Array("411001","许昌"),new Array("411101","漯河"),new Array("411201","三门峡"),new Array("412301","商丘"),new Array("412701","周口"),new Array("412801","驻马店"),new Array("412901","南阳"),new Array("413001","信阳"),new Array("420101","武汉"),new Array("420201","黄石"),new Array("420301","十堰"),new Array("420400","沙市"),new Array("420501","宜昌"),new Array("420601","襄樊"),new Array("420701","鄂州"),new Array("420801","荆门"),new Array("422103","黄州"),new Array("422201","孝感"),new Array("422301","咸宁"),new Array("422421","江陵"),new Array("422801","恩施"),new Array("430101","长沙"),new Array("430401","衡阳"),new Array("430501","邵阳"),new Array("432801","郴州"),new Array("432901","永州"),new Array("430801","大庸"),new Array("433001","怀化"),new Array("433101","吉首"),new Array("430201","株洲"),new Array("430301","湘潭"),new Array("430601","岳阳"),new Array("430701","常德"),new Array("432301","益阳"),new Array("432501","娄底"),new Array("440101","广州"),new Array("440301","深圳"),new Array("441501","汕尾"),new Array("441301","惠州"),new Array("441601","河源"),new Array("440601","佛山"),new Array("441801","清远"),new Array("441901","东莞"),new Array("440401","珠海"),new Array("440701","江门"),new Array("441201","肇庆"),new Array("442001","中山"),new Array("440801","湛江"),new Array("440901","茂名"),new Array("440201","韶关"),new Array("440501","汕头"),new Array("441401","梅州"),new Array("441701","阳江"),new Array("450101","南宁"),new Array("450401","梧州"),new Array("452501","玉林"),new Array("450301","桂林"),new Array("452601","百色"),new Array("452701","河池"),new Array("452802","钦州"),new Array("450201","柳州"),new Array("450501","北海"),new Array("460100","海口"),new Array("460200","三亚"),new Array("510101","成都"),new Array("513321","康定"),new Array("513101","雅安"),new Array("513229","马尔康"),new Array("510301","自贡"),new Array("500100","重庆"),new Array("512901","南充"),new Array("510501","泸州"),new Array("510601","德阳"),new Array("510701","绵阳"),new Array("510901","遂宁"),new Array("511001","内江"),new Array("511101","乐山"),new Array("512501","宜宾"),new Array("510801","广元"),new Array("513021","达县"),new Array("513401","西昌"),new Array("510401","攀枝花"),new Array("500239","黔江土家族苗族自治县"),new Array("520101","贵阳"),new Array("520200","六盘水"),new Array("522201","铜仁"),new Array("522501","安顺"),new Array("522601","凯里"),new Array("522701","都匀"),new Array("522301","兴义"),new Array("522421","毕节"),new Array("522101","遵义"),new Array("530101","昆明"),new Array("530201","东川"),new Array("532201","曲靖"),new Array("532301","楚雄"),new Array("532401","玉溪"),new Array("532501","个旧"),new Array("532621","文山"),new Array("532721","思茅"),new Array("532101","昭通"),new Array("532821","景洪"),new Array("532901","大理"),new Array("533001","保山"),new Array("533121","潞西"),new Array("533221","丽江纳西族自治县"),new Array("533321","泸水"),new Array("533421","中甸"),new Array("533521","临沧"),new Array("540101","拉萨"),new Array("542121","昌都"),new Array("542221","乃东"),new Array("542301","日喀则"),new Array("542421","那曲"),new Array("542523","噶尔"),new Array("542621","林芝"),new Array("610101","西安"),new Array("610201","铜川"),new Array("610301","宝鸡"),new Array("610401","咸阳"),new Array("612101","渭南"),new Array("612301","汉中"),new Array("612401","安康"),new Array("612501","商州"),new Array("612601","延安"),new Array("612701","榆林"),new Array("620101","兰州"),new Array("620401","白银"),new Array("620301","金昌"),new Array("620501","天水"),new Array("622201","张掖"),new Array("622301","武威"),new Array("622421","定西"),new Array("622624","成县"),new Array("622701","平凉"),new Array("622801","西峰"),new Array("622901","临夏"),new Array("623027","夏河"),new Array("620201","嘉峪关"),new Array("622102","酒泉"),new Array("630100","西宁"),new Array("632121","平安"),new Array("632221","门源回族自治县"),new Array("632321","同仁"),new Array("632521","共和"),new Array("632621","玛沁"),new Array("632721","玉树"),new Array("632802","德令哈"),new Array("640101","银川"),new Array("640201","石嘴山"),new Array("642101","吴忠"),new Array("642221","固原"),new Array("650101","乌鲁木齐"),new Array("650201","克拉玛依"),new Array("652101","吐鲁番"),new Array("652201","哈密"),new Array("652301","昌吉"),new Array("652701","博乐"),new Array("652801","库尔勒"),new Array("652901","阿克苏"),new Array("653001","阿图什"),new Array("653101","喀什"),new Array("654101","伊宁"),new Array("710001","台北"),new Array("710002","基隆"),new Array("710020","台南"),new Array("710019","高雄"),new Array("710008","台中"),new Array("211001","辽阳"),new Array("653201","和田"),new Array("542200","泽当镇"),new Array("542600","八一镇"),new Array("820000","澳门"),new Array("810000","香港"));function FillProvinces(a){a.options[0]=new Option("请选择","000000");for(i=0;i<Provinces.length;i++){a.options[i+1]=new Option(Provinces[i][1],Provinces[i][0]);a.options[i+1].name=Provinces[i][1]}a.options[0].selected=true;a.length=i+1}var iszx=0;function FillCitys(b,a){if(a=="110000"||a=="120000"||a=="310000"||a=="810000"||a=="820000"||a=="500000"){count=0;iszx=1}else{b.options[0]=new Option("请选择",a);count=1}for(i=0;i<Citys.length;i++){if(Citys[i][0].toString().substring(0,2)==a.substring(0,2)){b.options[count]=new Option(Citys[i][1],Citys[i][0]);count=count+1}}b.options[0].selected=true;b.length=count;g_selCity.onchange=function(){document.getElementById("uio.city").value=g_selCity.options[g_selCity.selectedIndex].text}}function Province_onchange(){FillCitys(g_selCity,g_selProvince.value);document.getElementById("uio.province").value=g_selProvince.options[g_selProvince.selectedIndex].text;if(iszx==0){document.getElementById("uio.city").value="请选择"}if(iszx==1){document.getElementById("uio.city").value=g_selCity.options[g_selCity.selectedIndex].text;iszx}}function InitCitySelect(a,b){g_selProvince=a;g_selCity=b;a.onchange=Function("Province_onchange();");FillProvinces(a);Province_onchange()}function InitCitySelect2(b,c,a){InitCitySelect(b,c);for(i=0;i<b.length;i++){if(b.options[i].value.substring(0,2)==a.substring(0,2)){b.options[i].selected=true;document.getElementById("uio.province").value=b.options[i].text;break}}Province_onchange();for(i=0;i<c.length;i++){if(c.options[i].value==a){c.options[i].selected=true;document.getElementById("uio.city").value=c.options[i].text;break}}}var gozapCommon={isEmpty:function(a){if(null==a||""==$.trim(a)||"undefined"==a){return true}return false},isBetweenLength:function(b,c,a){if(b.length>=c&&b.length<=a){return true}return false},isUserName:function(a){if(/^[0-9A-Za-z_]*$/.test(a)){return true}return false},isEmail:function(a){if(/^[_a-zA-Z0-9.]+@([_a-z0-9]+\.)+[a-z0-9]{2,3}$/.test(a)){return true}return false},isOpenCapsLock:function(c){var f=c||window.event;var g=f.target||f.srcElement;var a=g.nextSibling;var d=f.keyCode||f.which;var b=f.shifKey||(d==16)||false;if(((d>=65&&d<=90)&&!b)||((d>=97&&d<=122)&&b)){return true}else{return false}},isCookieEnabled:function(){return navigator.cookieEnabled?true:false},goTop:function(){window.scrollTo(0,0)},goBottom:function(){window.scrollTo(0,document.body.scrollHeight)}};var ctDate={isInit:false,n:0,j:0,d:new Date().getDate(),m:new Date().getMonth(),y:new Date().getFullYear(),iy:80,monDays:[31,28,31,30,31,30,31,31,30,31,30,31],sText:gozapLang.ds_ps,getSelectObjectByName:function(c,b){try{return document.getElementById(c).sName}catch(a){}},getSelectObjectByID:function(a){try{return document.getElementById(a)}catch(b){}},YYYY:null,MM:null,DD:null,yValue:0,mValue:0,dValue:0,initYear:function(d,c){var a=0;this.YYYY=d;d.options[0]=new Option(this.sText,0);for(var b=(this.y-this.iy);b<(this.y+1);b++){d.options[this.j+1]=new Option(b,b);if(b==c){a=this.j+1}this.j++}this.j=0;d.selectedIndex=a;d.onchange=function(){ctDate.selectYear(d.value)}},initMonth:function(d,c){var a=0;this.MM=d;d.options[0]=new Option(this.sText,0);for(var b=1;b<13;b++){d.options[b]=new Option(b,b);if(b==c){a=b}}d.selectedIndex=a;d.onchange=function(){ctDate.selectMonth(d.value)}},initDay:function(c,a){var b=this.sText;if(ctDateUtil.isNotEmpty(a)){b=a}this.DD=c;if(a>0){c.options[0]=new Option(b,a)}else{c.options[0]=new Option(this.sText,0)}this.n=this.monDays[this.m];if(this.m==1&&ctDateUtil.isLeapYear(this.yValue)){this.n++}c.selectedIndex=0},selectYear:function(a){this.mValue=this.MM.options[this.MM.selectedIndex].value;if(ctDateUtil.isNotEmpty(this.mValue)){this.n=this.monDays[this.mValue-1]}else{return}if(this.mValue==2&&ctDateUtil.isLeapYear(a)){this.n++;this.selectDay(this.n)}},selectMonth:function(a){this.yValue=this.YYYY.options[this.YYYY.selectedIndex].value;if(ctDateUtil.isNotEmpty(a)){this.n=this.monDays[a-1]}else{return}if(a==2&&ctDateUtil.isLeapYear(this.yValue)){this.n++}this.selectDay(this.n)},selectDay:function(b){this.DD.options.length=b;this.DD.options[0]=new Option(this.sText,0);for(var a=1;a<(b+1);a++){this.DD.options[a]=new Option(a,a)}},show:function(c,f,b){var e=age;var h=0;var a=0;var g=0;if(ctDateUtil.isNotEmpty(e)){if(e.indexOf("-")>-1){var d=e.split("-");if(d.length==3){h=d[0];a=d[1];g=d[2]}else{if(d.length==2){h=0;a=d[0];g=d[1]}}}}this.initYear(c,h);this.initMonth(f,a);this.initDay(b,g)}};var ctDateUtil={isLeapYear:function(a){return(0==a%4&&(a%100!=0||a%400==0))},isNotEmpty:function(a){if(a!=null&&a!=""&&typeof a!="undefined"){return true}else{return false}}};window.z$=function(a){return typeof(a)=="string"?document.getElementById(a):a};var appStr=navigator.userAgent.toLowerCase();window.browser={msie:/msie/.test(appStr)&&!/opera/.test(appStr),mozilla:/mozilla/.test(appStr)&&!/(compatible|webkit)/.test(appStr),safari:/webkit/.test(appStr),opera:/opera/.test(appStr),firefox:/firefox/.test(appStr)};var moveDiv;var leftDiv,topDiv,bottomDiv,rightDiv;var obj,divObj;var bili,minSize_wh;var imgSrc;if("undefined"==typeof phpPath){var phpPath="http://www.gozap.com/labiuploadimage/"}if("undefined"==typeof swfPath){var swfPath=""}if("undefined"==typeof iframePath){var iframePath=""}if("undefined"==typeof head_jsPath){var head_jsPath=""}if("undefined"==typeof head_domain){var head_domain=""}if("undefined"==typeof js_ver){var js_ver="0.01"}if("undefined"==typeof head_imgPath){var head_imgPath=""}function upimg(e){if(!isNaN(e)){if(0==e){alert("上传的图片不能超过4M :(")}else{if(1==e){alert("对不起，图片格式不识别，请换张图片再试 :(")}else{if(2==e){alert("上传图片的宽高请大于140像素 :(")}else{alert("上传出现错误，请稍后再试:(")}}}}else{var a=e.split(",");var c=a[0];var b=a[1];var d=a[2];if(160<b){d*=160/b;b=160}if(160<d){b*=160/d;d=160}imgSrc=c;headphoto_frame(obj,phpPath+c+".jpg.jpg",parseInt(b),parseInt(d),true)}}function cut_retFun(c){if(isNaN(c)){try{var a=c.split(" ");cut_result(a[0],a[1],a[2])}catch(b){}}else{alert("网络异常，请稍后再试")}}function save_min_head(){var a=z$("min_img").firstChild;z$("head_upload_frame").contentWindow.postToCut("&path="+imgSrc+"&w="+a.width+"&h="+a.height+"&x="+(a.offsetLeft+2)+"&y="+(a.offsetTop+2)+"&cut_w=48&cut_h=48")}function zring_getHTTPObject(){var a=false;if(window.XMLHttpRequest){a=new XMLHttpRequest();if(a.overrideMimeType){a.overrideMimeType("text/xml")}}else{try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){a=false}}}return a}function upload_photo_change(b){var c=b.value;var a=c.substr(c.length-3).toLowerCase();if("jpg"!=a&&"gif"!=a&&"png"!=a){a=c.substr(c.length-4).toLowerCase();if("jpeg"!=a){alert("对不起，图片只能上传后缀为jpg、gif或png的:(");return}}b.parentNode.submit()}var head_default_photo;function headphoto_set_default(a){head_default_photo=a}function headphoto_frame(id,src,w,h,isAlt){try{obj=z$(id);obj.innerHTML="<div style='font-size:9pt;color:#333333;padding-bottom:10px;"+(isAlt?"":"display:none;")+"'>随意拖拽或缩放左图虚线方框部分，确定需要裁减部分后点击“保存”按钮进行裁切。</div><table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td>"+(null==src?"<img src='"+head_default_photo+"'/>":"<div style='width:"+w+"px;height:"+h+"px;'><div style='position:absolute;'><img src='"+head_imgPath+"_h.gif' style='position:absolute;top:"+h+"px;'/><img src='"+head_imgPath+"+h.gif' style='position:absolute;top:"+h+"px;left:134px;'/><div style='position:absolute;left:20px;top:"+h+"px'><img src='"+head_imgPath+"track.gif' width='113' style='position:absolute;top:5px;'/><div style='left:100px;position:absolute;top:4px;cursor: pointer; cursor: hand;width:11px;height:16px;background-image: url("+head_imgPath+"grip.gif);background-repeat: no-repeat;background-position: left top;' limit='0,,100' drag_type='across'><div id='lump_id'></div></div><div id='create_swf_id'></div></div></div><img src='"+src+"'></div>")+"<div style='width:180px;height:1px;'></div></td><td valign='top' width='100%'>"+(null==src?"":"<div style='position:absolute;'><div style='position:absolute;font-size:9pt;color:#323232;width:100px;top:60px;'><b>头像预览</b></div><div style='position:absolute;width:48px;height:48px;overflow: hidden;top:78px;border: 2px solid #C4D6EC;'><div id='min_img'><img src='"+src+"' style='position:absolute;'></div></div><div style='position:absolute;top:140px;'><input type='button' value='保存头像' onclick='save_min_head()'/></div></div>")+'<iframe src="'+iframePath+"uploadfile.html?&domain="+head_domain+"&phpPath="+phpPath+'" style="width:100%;height:29px;border:none;" frameborder="0" id="head_upload_frame"></iframe><div style="font-size:9pt;color:#999;padding-top:0px;">图片大小不能超过4M，可以上传jpg、gif、png图片</div></td></tr></table>';divObj=obj.childNodes[1].firstChild.firstChild.firstChild.firstChild;var imgW=divObj.offsetWidth;var imgH=divObj.offsetHeight;var minSize=imgW;if(minSize>imgH){minSize=imgH}minSize-=10;minSize_wh=minSize;bili=48/minSize;z$("min_img").firstChild.width=bili*w;z$("min_img").firstChild.height=bili*h;moveDiv=document.createElement("div");moveDiv.style.cssText="position:absolute;top:"+(imgH-minSize)/2+"px;left:"+(imgW-minSize)/2+"px;width:"+minSize+"px;height:"+minSize+"px;border: 1px dashed #CCC;cursor:move;";moveDiv.setAttribute("limit","0,0,"+(imgW-minSize-2)+","+(imgH-minSize-2));moveDiv.innerHTML="<div style='filter:alpha(opacity=0);opacity:0;background-color:#000;width:100%;height:100%;'></div>";leftDiv=document.createElement("div");var cssTextStr="filter:alpha(opacity=50);opacity:0.5;background-color:#000;position:absolute;height:"+imgH+"px;font-size:1px;";leftDiv.style.cssText="top:0px;left:0px;"+cssTextStr;topDiv=document.createElement("div");if(browser.msie){topDiv.style.cssText="top:0px;width:"+minSize+"px;"+cssTextStr}else{topDiv.style.cssText="top:0px;width:"+(minSize+2)+"px;"+cssTextStr}bottomDiv=document.createElement("div");if(browser.msie){bottomDiv.style.cssText="width:"+minSize+"px;"+cssTextStr}else{bottomDiv.style.cssText="width:"+(minSize+2)+"px;"+cssTextStr}rightDiv=document.createElement("div");rightDiv.style.cssText="top:0px;height:"+imgH+"px;"+cssTextStr;with(divObj.firstChild){appendChild(moveDiv);appendChild(leftDiv);appendChild(topDiv);appendChild(bottomDiv);appendChild(rightDiv)}flushBorder();zring_head_drag(moveDiv);zring_head_drag(z$("lump_id").parentNode)}catch(err){}}function headphoto(b,a){if(null!=a&&""!=a){head_default_photo=a}else{head_default_photo=head_imgPath+"defaultHead.gif"}headphoto_frame(b)}function zring_getBody(){if(document.compatMode=="CSS1Compat"){return document.documentElement}else{return document.body}}function zring_getXY(d){if(document.compatMode=="CSS1Compat"){if(!d.pageX){var c=d.clientX}else{var c=d.pageX-zring_getBody().scrollLeft}if(!d.pageY){var b=d.clientY}else{var b=d.pageY-zring_getBody().scrollTop}}else{if(!d.pageX){d.pageX=zring_getBody().scrollLeft+d.clientX}if(!d.pageY){d.pageY=zring_getBody().scrollTop+d.clientY}var c=d.pageX,b=d.pageY}return{tx:c,ty:b}}var click_position;var limit_x,limit_y,limit_w,limit_h,drag_type;function zring_head_drag(a){a.onmousedown=function(e){var h=document;if(!e){e=window.event}click_position=zring_getXY(e);click_position.srcLeft=a.offsetLeft;click_position.srcTop=a.offsetTop;limit_x=limit_y=limit_w=limit_h=null;var c=a.getAttribute("limit");if(null!=c){try{var b=c.split(",");for(var f=b.length-1;f>=0;f--){if(!isNaN(b[f])){if(0==f){limit_x=b[f]}else{if(1==f){limit_y=b[f]}else{if(2==f){limit_w=b[f]}else{if(3==f){limit_h=b[f]}}}}}}}catch(g){}}drag_type=a.getAttribute("drag_type");h.onmousemove=function(k){try{if(window.getSelection){window.getSelection().removeAllRanges()}if(!k){k=window.event}var l=zring_getXY(k);var j=l.tx-click_position.tx+click_position.srcLeft;var d=l.ty-click_position.ty+click_position.srcTop;if(null!=limit_y&&limit_y>d){d=limit_y}if(null!=limit_x&&limit_x>j){j=limit_x}if(null!=limit_h&&d>limit_h){d=limit_h}if(null!=limit_w&&j>limit_w){j=limit_w}if("across"==drag_type){a.style.left=j+"px";slider_fun()}else{a.style.left=j+"px";a.style.top=d+"px"}flushBorder()}catch(m){}};h.onselectstart=new Function("return false");h.onmouseup=function(){h.onmousemove=null;h.onmouseup=null;h.onselectstart=new Function("return true")}}}function slider_fun(){var num=z$("lump_id").parentNode.offsetLeft;var minSize=parseInt((minSize_wh-48)/100*num+48);with(moveDiv.style){width=minSize+"px";height=minSize+"px"}if(browser.msie){topDiv.style.width=minSize+"px";bottomDiv.style.width=minSize+"px"}else{topDiv.style.width=(minSize+2)+"px";bottomDiv.style.width=(minSize+2)+"px"}moveDiv.setAttribute("limit","0,0,"+(divObj.offsetWidth-minSize-2)+","+(divObj.offsetHeight-minSize-2));bili=48/minSize;z$("min_img").firstChild.width=bili*divObj.offsetWidth;z$("min_img").firstChild.height=bili*divObj.offsetHeight;if(moveDiv.offsetTop+moveDiv.offsetHeight>divObj.offsetHeight){moveDiv.style.top=(divObj.offsetHeight-moveDiv.offsetHeight)+"px"}if(moveDiv.offsetLeft+moveDiv.offsetWidth>divObj.offsetWidth){moveDiv.style.left=(divObj.offsetWidth-moveDiv.offsetWidth)+"px"}}function flushBorder(){leftDiv.style.width=moveDiv.offsetLeft+"px";with(topDiv.style){left=moveDiv.offsetLeft+"px";height=moveDiv.offsetTop+"px"}var tmpTop=moveDiv.offsetHeight+moveDiv.offsetTop;with(bottomDiv.style){left=moveDiv.offsetLeft+"px";height=divObj.offsetHeight-tmpTop+"px";top=tmpTop+"px"}var tmpLeft=moveDiv.offsetLeft+moveDiv.offsetWidth;with(rightDiv.style){left=tmpLeft+"px";width=divObj.offsetWidth-tmpLeft+"px"}with(z$("min_img").firstChild.style){left=-(moveDiv.offsetLeft*bili)+"px";top=-(moveDiv.offsetTop*bili)+"px"}}var gozapLog={};var passwordStrength={createPSStyle:function(b){var a="";a+='<a href="javascript:void(0);" class="reg_mmqd">密码强度</a>';a+='<span id="reg_mmk1" class="reg_mmk"></span><span id="reg_mmk2" class="reg_mmk"></span><span id="reg_mmk2" class="reg_mmk"></span><span id="reg_mmk2" class="reg_mmk"></span>';$("#"+b+"").html(a)},changePS:function(a){if(a==0){document.getElementById("reg_mmk1").className="reg_mmk";document.getElementById("reg_mmk2").className="reg_mmk";document.getElementById("reg_mmk3").className="reg_mmk";document.getElementById("reg_mmk4").className="reg_mmk"}else{if(a<=25){document.getElementById("reg_mmk1").className="reg_mmck"}else{if(a>25&&a<=50){document.getElementById("reg_mmk1").className="reg_mmck";document.getElementById("reg_mmk2").className="reg_mmck"}else{if(a>50&&a<=75){document.getElementById("reg_mmk1").className="reg_mmck";document.getElementById("reg_mmk2").className="reg_mmck";document.getElementById("reg_mmk3").className="reg_mmck"}else{if(a>75&&a<=100){document.getElementById("reg_mmk1").className="reg_mmck";document.getElementById("reg_mmk2").className="reg_mmck";document.getElementById("reg_mmk3").className="reg_mmck";document.getElementById("reg_mmk4").className="reg_mmck"}}}}}},show:function(a){if($.trim($("#"+a+"").html())==""){passwordStrength.createPSStyle(a)}else{$("#"+a+"").css("display","block")}},hide:function(a){$("#"+a+"").css("display","none")},policy:function(b){var a=0;if(b.length>=6){if(b.length>=6&&b.length<=8){a+=5}else{if(b.length>=9&&b.length<=12){a+=10}else{if(b.length>=13&&b.length<=16){a+=25}}}if(/^[a-z]+$/.test(b)){a+=10}if(/[a-z]+/.test(b)&&/[A-Z]+/.test(b)){a+=20}if(/\d{2,}|(\d(\w+)\d)+/.test(b)){a+=20}else{if(/\d{1}/.test(b)){a+=10}}if(/\W{2,}|\W(\w+)\W/.test(b)){a+=25}else{if(/\W{1}/.test(b)){a+=10}}if(/[a-z]/.test(b)&&/[A-Z]/.test(b)&&/\d/.test(b)&&/\W/.test(b)){a+=5}else{if(/[a-z|A-Z]/.test(b)&&/\d/.test(b)&&/\W/.test(b)){a+=3}else{if(/[a-z|A-Z]/.test(b)&&/\d/.test(b)){a+=2}}}}return a},init:function(){}};
