

<div class="cloudAccountLogo"></div>
<div class="cloudManageCon">
	<div id="cloudForgDetial">
		<i id="close" class="closeTip"></i>
		<p class="title">{%label.cloudGetBackPwd%}</p>
		<p class="cloudTip">{%label.cloudID%}</p>
		<ul class="line">
			<li class="line lineF3">
				<label class="des desE" for="account">{%label.cloudID%}</label>
				<input id="account" class="text textC imeModeN" maxLength="64" />
				<label class="desInner" for="account">{%label.cloudAccountPhoneMumNull%}</label>
			</li>
			<li class="line lineF3">
				<label class="des desE" for="cloudPwd">{%label.loginSetPwd%}</label>
				<input id="cloudPwd" class="text textC imeModeN" type="password" maxLength="32" />
				<label class="desInner" for="cloudPwd">{%label.cloudPwdTip%}</label>
				<span id="pwdDep" class="depSpan"><span id="pwdDepSp"></span></span>
			</li>
			<li class="line lineF3">
				<label class="des desE" for="cloudConfPwd">{%label.loginPwdConf%}</label>
				<input id="cloudConfPwd" type="password" class="text textC imeModeN" />
				<label class="desInner" for="cloudConfPwd">{%label.cloudConfPwdTip%}</label>
			</li>
			<li class="line lineF4">
				<label class="des desE" for="CAPTCHA">{%label.loginCAPTCHA%}</label>
				<input id="CAPTCHA" class="text textC1 imeModeN"  maxLength="6" />
				<input id="resend" type="button" value="{%btn.resend%}" disabled="true" class="subBtnB btnA disNone" />
				<input id="CAPTCHAGet" type="button" value="{%btn.CAPTCHAGet%}" class="subBtn btnA disNone" />
			</li>
			<p id="CAPTCHASendTip" class="inputTip disNone">{%label.CAPTCHASentPhTip%}</p>
			<li class="line lineF3">
				<label class="des desE"></label>
			</li>
			<input id="cancelBtnA" type="button" value="{%btn.cancel%}" class="subBtnB btnA" />
			<input id="subBtn" type="button" value="{%btn.ok%}" class="subBtn btnA" />
		</ul>
	</div>
</div><script type="text/javascript">var gCloudAccount={account:"",pwd:"",CAPTCHAR:"",accountType:"",success:!1};
function gResetCloudAccountErrHandle(e,g){var b="";switch(parseInt(e)){case ENONE:return!0;case EINVACCOUNTRESETPWDCAPTCHAERR:case EINVVERICODEFORMAT:b=errStr.CAPTCHAErrorTip;break;case EINVACCOUNTNOTEXIST:b=errStr.invCloudAccountNotExist;break;case EINVMAILFMT:case EINVMAILLEN:case EINVACCOUNTEMAILFMT:b=errStr.invCloudAccountEmailErr;break;case EINVPASSWORDFMT:case EINVACCOUNTPWDFMT:b=errStr.pwdInvalid;break;case EINDEVICEALREADYBOUND:case EINVACCOUNTBINDED:b=errStr.invCloudAccountBinded;break;case IPCUMGUESTNAUTH:b=
errStr.invPermissionDenied;break;case EINVACCOUNTLENGTH:b=errStr.invCloudAccountLen;break;case EINVACCOUNTTYPEERR:b=errStr.invCloudAccountType;break;case EINVACCOUNTPHONENUMFMT:b=errStr.invCloudAccountPhoneErr;break;case EINVCLOUDERRORCAPTCHAINVAL:b=errStr.invCloudCAPTCHAInval;break;default:b=cloudErrHandle(e),b=!1==b.result?b.tip:errStr.invRequestFail}showAlert(b,g);return!1}
function gResetCloudAccountPwd(e,g,b){showLoading(label.cloudResetPwdWaiting,b,void 0,!1);cloudAccountRstPwd(gCloudAccount.account,gCloudAccount.pwd,gCloudAccount.CAPTCHAR,gCloudAccount.accountType,function(b){closeLoading();!0==gResetCloudAccountErrHandle(b)&&(gCloudAccount.success=!0,"function"==typeof e&&e())},function(){gCloudAccount.success=!1;"function"==typeof g&&g()})}
function init(){function e(a,b){var c="";switch(parseInt(a)){case ENONE:return!0;case EINVERICODEEMPTY:b="CAPTCHA";c=errStr.invVericodeNULL;break;case EINVACCOUNTRESETPWDCAPTCHAERR:case EINVVERICODEFORMAT:b="CAPTCHA";c=errStr.CAPTCHAErrorTip;break;case EINVACCOUNTNOTEXIST:b="account";c=errStr.invCloudAccountNotExist;break;case EINVACCOUNTTYPEERR:b="account";c=errStr.invCloudAccountType;break;case EINVACCOUNTPHONENUMFMT:b="account";c=errStr.invCloudAccountPhoneErr;break;case EINVCLOUDUSRCOUNTFORMAT:case EINVACCOUNTEMAILFMT:b=
"account";c=errStr.invCloudAccountEmailErr;break;case EINVDEVICELOCKED:c=errStr.invCloudDeviceLocked;break;case EINVCLOUDERRORCAPTCHAINVAL:c=errStr.invCloudCAPTCHAInval;break;default:c=cloudErrHandle(a),c=!1==c.result?c.tip:errStr.invRequestFail}showAlert(c,b);return!1}function g(){w.style.display="none";if(n.value==k.value)return closeNote("cloudConfPwd"),!0;showNote("cloudConfPwd",label.chgPwdDif);return!1}function b(a){$(a.parentNode).find("label.desInner").css("display","none")}function m(a){0==
a.value.length?$(a.parentNode).find("label.desInner").css("display","inline"):$(a.parentNode).find("label.desInner").css("display","none")}function x(){var a="",b=id(y),c=id(z),a=k.value,d=a.length,e=!0;closeNoteAll();if(0<=d&&6>d||32<d)showNote(q,label.chgPwdChar),b.style.display="none",e=!1;else if(/^[\x21-\x7e]+$/.test(a)){d=a.length;if(/^\d+$/.test(a)||/^[\x21-\x2f\x3a-\x40\x5b-\x60\x7b-\x7e\s]+$/.test(a)||/^[a-zA-Z]+$/.test(a))a=10>=d?C:r;else var f=!1,g=!1,h=!1,f=/\d/g.test(a),g=/[a-zA-Z]/g.test(a),
h=/[\x21-\x2f\x3a-\x40\x5b-\x60\x7b-\x7e\s]/g.test(a),a=!0==(f&&h&&g)?s:10>=d?r:s;d={};a==s?(d.str="<span class='dep depStrong'>"+label.strong+"</span>",d.orgStr=label.strong):a==r?(d.str="<span class='dep depMedia'>"+label.media+"</span>",d.orgStr=label.media):(d.str="<span class='dep depWeak'>"+label.weak+"</span>",d.orgStr=label.weak);a=d.orgStr;c.style.color=a==label.weak?"#FF5500":a==label.media?"#FF9F00":"#19B68F";c.innerHTML=label.chgPwdDep+label.colon+a;b.style.display="inline"}else showNote(q,
errStr.pwdCharValid),b.style.display="none",e=!1;return e}function A(){var a=f.value;if(0==a.length)return showNote("account",label.cloudAccountPhoneMumNull),!1;if(!1==checkNum(a))return!1==checkEmail(a)?(showNote("account",label.cloudAccountEmailFmtErr),!1):!0;if(!1==checkPhoneNum(a))return showNote("account",label.cloudAccountPhoneNumFmtErr,"twoLine"),!1;closeNote("account");return!0}function p(a){a=parseInt(a);0>=a?(t.style.display="inline",h.style.display="none",h.time=-1,u.style.display="none"):
(t.style.display="none",h.value=btn.resend+"("+a+")",h.time=--a,h.style.display="inline")}function D(){var a=f.value,b=k.value,c=id("CAPTCHA").value;if(!1==A()||!1==x()||!1==g())return!1;gCloudAccountBR.pwd=b;if(0==c.length)return e(EINVERICODEEMPTY),!1;gCloudAccountBR.account=a;gCloudAccountBR.CAPTCHAR=c;return!0}function E(){gCloudAccount.pwd=k.value;gResetCloudAccountPwd(function(){loadPage("CloudForgPwdResult.htm","cloudForgDetial",void 0,{bClearPageTickArray:!1})},function(){loadPage("CloudForgPwdResult.htm",
"cloudForgDetial",void 0,{bClearPageTickArray:!1})},cloudAccountQueryStop)}function F(a){var b=f.value,c=id("CAPTCHA").value;cloudAccountRstPwdCheckCAPTCHA(b,c,function(d){closeLoading();!0==e(d)&&(gCloudAccount.account=b,gCloudAccount.CAPTCHAR=c,gCloudAccount.accountType=B,a())});showLoading(label.cloudAccountCAPTCHAChecking,cloudAccountQueryStop,void 0,!1)}var v={},q="cloudPwd",y="pwdDep",z="pwdDepSp",f=id("account"),k=id(q),n=id("cloudConfPwd"),w=id(y);id(z);id("chgPwdDep");var t=id("CAPTCHAGet"),
h=id("resend"),u=id("CAPTCHASendTip"),s=0,r=1,C=2,l=!1,B=uciCloudConfig.optValue.accountTypePhoneNum;cloudPageSetNodes(!0);(function(){"none"!=h.style.display&&p(h.time);$.setTimeout(arguments.callee,1E3)})();v[cloudClientStatus.fileName]={};v[cloudClientStatus.fileName][KEY_NAME]=cloudClientStatus.secName.resetVeriCodeTimer;$.query(v,function(a){!0==$.local?p(5):(e(a[ERR_CODE])&&p(parseInt(a[cloudClientStatus.fileName][cloudClientStatus.secName.resetVeriCodeTimer][cloudClientStatus.optName.resetVeriCodeTimer])),
showDetailCon())});f.value=gCloudColObj.account;m(f);id("close").onclick=id("cancelBtnA").onclick=function(){cloudGoBack()};f.onblur=function(){gCloudColObj.account=this.value;m(this)};f.onfocus=function(){b(this)};n.onkeyup=g;n.onfocus=function(){w.style.display="none";b(this)};n.onblur=function(){m(this)};k.onkeyup=x;k.onblur=function(){m(this)};k.onfocus=function(){closeNote("cloudConfPwd");b(this)};id("subBtn").onclick=function(){!0==D()&&F(E)};t.onclick=function(){var a,b=f.value;!0!=l&&(!0==
A()?(l=!0,a=$.setTimeout(function(){showLoading(label.cloudServerWaitingResp,function(){l=!1;cloudAccountQueryStop()},void 0,!1)},2E3),cloudAccountRstPwdAC(b,B,function(b){l=!1;clearTimeout(a);closeLoading();!0==e(b)&&(p(120),u.style.display="block",u.innerHTML=label.CAPTCHASentPhTip)},function(){clearTimeout(a);l=!1;closeLoading()})):l=!1)}}init();
</script><style type="text/css">body{height:100%}i.closeTip{background:url(../web-static/images/closeTip.png);cursor:pointer;height:15px;position:absolute;top:10px;right:15px;width:15px}ul.line li.lineF3{position:relative}div.coverLoadCon{margin:400px auto 0}span.depSpan{font-size:13px;color:#f50;display:none;vertical-align:middle;position:absolute;top:11px;right:110px}#cancelBtnA{margin-left:220px;margin-right:14px}#resend{margin-right:208px;margin-left:12px;width:124px;*width:122px;padding:0 18px;background-color:#e1e4e6}#CAPTCHAGet{margin-right:208px;margin-left:12px;width:124px;*width:122px}</style>