

<div class="cloudAccountLogo"></div>
<div class="cloudManageCon">
	<div id="cloudMgtDetial" class="cloudMgtDetial">
		<i id="close" class="closeTip"></i>
		<p class="title">{%label.cloudAccountRegist%}</p>
		<p class="cloudTip">{%label.cloudID%}</p>
		<ul class="line">
			<li class="line lineF3">
				<label class="des desE" for="cloudAccount">{%label.cloudID%}</label>
				<input id="cloudAccount" class="text textC imeModeN" maxLength="64" />
				<label class="desInner" for="cloudAccount">{%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" maxLength="32" />
				<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>
			<a id="cloudRegProtLink" class="cloudRegistProtocalA" href="javascript:;" target="_blank">{%label.cloudRegistProtocal%}</a>
			
			<li class="line lineF3" id="protocol">
				<i id="agree" name="agree"></i>
				<label class="agreeAndRead" for="agree">{%label.agreeAndRead%}</label>
			</li>
		</ul>
		<input id="cancelRegistSub" type="button" value="{%btn.cancel%}" class="subBtnB btnA" />
		<input id="cloudRegistSub" type="button" value="{%btn.RegistAndBind%}" class="subBtn btnA" />
	</div>
</div><script type="text/javascript">function gCloudAccountRegstErrHandle(c,d){var a="";switch(parseInt(c)){case ENONE:return gCloudAccountBR.success=!0,gCloudAccountBR.noteF=label.cloudAccountBindSuccess,!0;case EINVACCOUNTREGISTED:a=label.cloudAcccountRegisted;break;case EINVACCOUNTNOTEXIST:a=errStr.invCloudAccountNotExist;break;case EINVPASSWORDFMT:case EINVACCOUNTPWDFMT:a=errStr.pwdInvalid;break;case EINVACCOUNTPWDERR:a=label.passwdErr;break;case EINVACCOUNTPHONENUMFMT:a=errStr.invCloudAccountPhoneErr;break;case IPCUMGUESTNAUTH:a=
errStr.invPermissionDenied;break;case EINVCLOUDUSRCOUNTFORMAT:case EINVACCOUNTEMAILFMT:a=errStr.invCloudAccountEmailErr;break;case EINVACCOUNTRESETPWDCAPTCHAERR:case EINVVERICODEFORMAT:a=errStr.CAPTCHAErrorTip;break;case EINVCLOUDERRORCAPTCHAINVAL:a=errStr.invCloudCAPTCHAInval;break;default:a=cloudErrHandle(c),a=!1==a.result?a.tip:errStr.invRequestFail}gCloudAccountBR.success=!1;showAlert(a,d);return!1}
function gCloudAccountBRHd(c,d,a){showLoading(label.cloudAccoundRegistWaiting,a,void 0,!1);cloudAccountRegist(gCloudAccountBR.account,gCloudAccountBR.accountType,gCloudAccountBR.pwd,gCloudAccountBR.CAPTCHAR,function(a){closeLoading();!0==gCloudAccountRegstErrHandle(a)&&"function"==typeof c&&c()},function(){gCloudAccountBR.success=!1;gCloudAccountBR.noteF=label.cloudAccountRegistFail;gCloudAccountBR.noteS=label.cloudServerNoRespCheckNetwork;"function"==typeof d&&d()})}
function gCloudAccountBindErrHandle(c,d){var a="";switch(parseInt(c)){case ENONE:return gCloudAccountBR.success=!0,gCloudAccountBR.noteF=label.cloudAccountBindSuccess,!0;case EINVACCOUNTBINDED:case EINDEVICEALREADYBOUND:return gCloudAccountBR.success=!1,gCloudAccountBR.noteF=label.cloudAccountBindFail,gCloudAccountBR.noteS=label.cloudAccountBindedTip,!0;case EINVDEVICEIDNOTEXIST:case EINVERRORDEVICEIDFORMATERROR:a=label.cloudDeviceInfoExpt;break;case EINVACCOUNTNOTEXIST:a=errStr.invCloudAccountNotExist;
break;case EINVACCOUNTPWDERR:a=label.passwdErr;break;case EINVACCOUNTPHONENUMFMT:a=errStr.invCloudAccountPhoneErr;break;default:a=cloudErrHandle(c),a=!1==a.result?a.tip:errStr.invRequestFail}gCloudAccountBR.success=!1;showAlert(a,d);return!1}
function gCloudAccountBindHd(c,d,a){showLoading(label.cloudAccoundBindWaiting,a,void 0,!1);cloudAccountBind(gCloudAccountBR.account,gCloudAccountBR.pwd,function(a){closeLoading();!0==gCloudAccountBindErrHandle(parseInt(a))&&(gCloudAccountBR.success=!0,gCloudAccountBR.noteF=label.cloudAccountBindSuccess,gCloudAccountBR.noteS=label.cloudServerNoRespCheckNetwork,"function"==typeof c&&c())},function(){gCloudAccountBR.success=!1;gCloudAccountBR.noteF=label.cloudAccountBindFail;gCloudAccountBR.noteS=label.cloudServerNoRespCheckNetwork;
"function"==typeof d&&d()})}function cloudRegistBindLoadPage(){!0==$.local&&(gCloudAccountBR.success=!1,gCloudAccountBR.noteF=label.cloudAccountRegistFail,gCloudAccountBR.noteS=label.cloudServerNoRespCheckNetwork);loadPage("CloudBindRegistResult.htm","cloudMgtDetial",void 0,{bClearPageTickArray:!1})}
function cloudRegistSubHd(c){!0==c()&&gCloudAccountBRHd(function(){$.setTimeout(function(){gCloudAccountBindHd(cloudRegistBindLoadPage,cloudRegistBindLoadPage,cloudAccountQueryStop)},10)},cloudRegistBindLoadPage,cloudAccountQueryStop)}
function init(){function c(b,a){var c="";switch(parseInt(b)){case ENONE:return!0;case EINVERICODEEMPTY:a="CAPTCHA";c=errStr.invVericodeNULL;break;case EINVACCOUNTRESETPWDCAPTCHAERR:case EINVVERICODEFORMAT:a="CAPTCHA";c=errStr.CAPTCHAErrorTip;break;case EINVCLOUDUSRCOUNTFORMAT:case EINVACCOUNTPHONENUMFMT:a=g;c=errStr.invCloudAccountPhoneErr;break;case EINVACCOUNTREGISTED:a=g;c=label.cloudAcccountRegisted;break;case EINVACCOUNTTYPEERR:a=g;c=errStr.invCloudAccountType;break;case EINVDEVICELOCKED:c=errStr.invCloudDeviceLocked;
break;case EINVCLOUDERRORCAPTCHAINVAL:c=errStr.invCloudCAPTCHAInval;break;default:c=errStr.invRequestFail}showAlert(c,a);return!1}function d(){u.style.display="none";if(l.value==k.value)return closeNote("cloudConfPwd"),!0;showNote("cloudConfPwd",label.chgPwdDif);return!1}function a(b){$(b.parentNode).find("label.desInner").css("display","none")}function n(b){0==b.value.length?$(b.parentNode).find("label.desInner").css("display","inline"):$(b.parentNode).find("label.desInner").css("display","none")}
function v(){var b="",a=id(w),c=id(x),b=k.value,e=b.length,d=!0;closeNoteAll();if(0<=e&&6>e||32<e)showNote(y,label.chgPwdChar),a.style.display="none",d=!1;else if(/^[\x21-\x7e]+$/.test(b)){e=b.length;if(/^\d+$/.test(b)||/^[\x21-\x2f\x3a-\x40\x5b-\x60\x7b-\x7e\s]+$/.test(b)||/^[a-zA-Z]+$/.test(b))b=10>=e?A:p;else var g=!1,f=!1,h=!1,g=/\d/g.test(b),f=/[a-zA-Z]/g.test(b),h=/[\x21-\x2f\x3a-\x40\x5b-\x60\x7b-\x7e\s]/g.test(b),b=!0==(g&&h&&f)?q:10>=e?p:q;e={};b==q?(e.str="<span class='dep depStrong'>"+
label.strong+"</span>",e.orgStr=label.strong):b==p?(e.str="<span class='dep depMedia'>"+label.media+"</span>",e.orgStr=label.media):(e.str="<span class='dep depWeak'>"+label.weak+"</span>",e.orgStr=label.weak);b=e.orgStr;c.style.color=b==label.weak?"#FF5500":b==label.media?"#FF9F00":"#19B68F";c.innerHTML=label.chgPwdDep+label.colon+b;a.style.display="inline"}else showNote(y,errStr.pwdCharValid),a.style.display="none",d=!1;return d}function z(){var b=g.value;if(0==b.length)return showNote("cloudAccount",
label.cloudAccountPhoneMumNull),!1;if(!1==checkNum(b))return!1==checkEmail(b)?(showNote("cloudAccount",label.cloudAccountEmailFmtErr),!1):!0;if(!1==checkPhoneNum(b))return showNote("cloudAccount",label.cloudAccountPhoneNumFmtErr,"twoLine"),!1;closeNote("cloudAccount");return!0}function B(){var b=g.value,a=k.value,f=id("CAPTCHA").value;if(!1==z()||!1==v()||!1==d())return!1;gCloudAccountBR.pwd=a;if(0==f.length)return c(EINVERICODEEMPTY),!1;if("false"==C.getAttribute("checked").toString())return showNote("agree",
label.agreeAndReadTip,null,{changeBW:0}),!1;gCloudAccountBR.account=b;gCloudAccountBR.CAPTCHAR=f;return!0}function m(a){a=parseInt(a);0>=a?(r.style.display="inline",f.style.display="none",f.time=-1,s.style.display="none"):(r.style.display="none",f.value=btn.resend+"("+a+")",f.time=--a,f.style.display="inline")}var t={},y="cloudPwd",w="pwdDep",x="pwdDepSp",g=id("cloudAccount"),k=id("cloudPwd"),l=id("cloudConfPwd");id("lgAgreeNote");var u=id(w);id(x);id("chgPwdDep");var r=id("CAPTCHAGet"),f=id("resend"),
s=id("CAPTCHASendTip"),D=id("cloudRegistSub"),E=id("close"),F=id("cancelRegistSub"),C=id("agree"),G=id("cloudRegProtLink"),q=0,p=1,A=2,h=!1,H=uciCloudConfig.optValue.accountTypePhoneNum;initCheckInput("agree",function(a){!0==a?closeNote("agree"):showNote("agree",label.agreeAndReadTip,null,{changeBW:0})});changeCheckInput("agree",!0,function(){closeNote("agree")});cloudPageSetNodes(!0);r.onclick=function(){var a,d=g.value;!0!=h&&(s.style.display="none",!0==z()?(h=!0,a=$.setTimeout(function(){showLoading(label.cloudServerWaitingResp,
function(){h=!1;cloudAccountQueryStop()},void 0,!1)},2E3),cloudAccountGetRegistAC(d,H,function(d){closeLoading();clearTimeout(a);!0==c(d)&&(m(120),s.style.display="block");h=!1},function(){clearTimeout(a);h=!1})):h=!1)};(function(){"none"!=f.style.display&&m(f.time);$.setTimeout(arguments.callee,1E3)})();t[cloudClientStatus.fileName]={};t[cloudClientStatus.fileName][KEY_NAME]=cloudClientStatus.secName.regVeriCodeTimer;$.query(t,function(a){!0==$.local?m(5):(c(a[ERR_CODE])&&m(parseInt(a[cloudClientStatus.fileName][cloudClientStatus.secName.regVeriCodeTimer][cloudClientStatus.optName.regVeriCodeTimer])),
showDetailCon())});D.onclick=function(){cloudRegistSubHd(B)};E.onclick=F.onclick=function(){cloudGoBackBR({binded:!1})};g.onblur=function(){n(this)};g.onfocus=function(){a(this)};l.onkeyup=d;l.onfocus=function(){u.style.display="none";a(this)};l.onblur=function(){n(this)};k.onkeyup=v;k.onblur=function(){n(this)};k.onfocus=function(){closeNote("cloudConfPwd");a(this)};G.onclick=function(){window.open(label.cloudRegistLink)};$.setTimeout(function(){cloudAccount.value="";k.value="";l.value=""},0)}init();
</script><style type="text/css">body{height:100%}span.phoneRegist{color:#fff;font-size:18px;font-weight:bold}#CAPTCHAGet{margin-right:208px;margin-left:12px;width:124px;*width:122px}label.agreeAndRead{color:#333;font-size:13px;margin-left:5px;vertical-align:middle}a.cloudRegistProtocalA{color:#325fe0;font-size:13px;height:20px;line-height:20px;text-align:left;margin-left:220px;margin-bottom:4px}li.textConE1 label{color:#fff;font-size:12px;line-height:36px;vertical-align:middle;margin-left:5px}i.closeTip{background:url(../web-static/images/closeTip.png);cursor:pointer;height:15px;position:absolute;top:10px;right:15px;width:15px}#cloudRgProtocalCon{position:relative;z-index:1012;width:715px;margin:0 auto;height:0;line-height:0;font-size:0;visibility:hidden;top:-9999px}div.cloudRgProtocal{background:#fff;font-size:12px;line-height:normal;height:485px;position:absolute;top:90px;margin:0 auto;width:715px}p.cloudRgProtocalTitle{height:35px;background:#5e85c0}p.cloudRgProtocalTitle span{color:#fff;line-height:35px;margin-left:20px}p.cloudRgProtocalTitle i{background:url(../web-static/images/routerBg.png) -422px -108px no-repeat;cursor:pointer;float:right;height:20px;width:20px;margin:7px 7px 0 0}#cloudRgDetial{font-size:12px;text-align:left}#resend{margin-right:208px;margin-left:12px;width:124px;*width:122px;padding:0 18px;background-color:#e1e4e6}#protocol{text-align:left;height:40px}#agree{margin-left:220px}#cancelRegistSub{margin-left:220px;margin-right:14px}span.depSpan{font-size:13px;display:none;vertical-align:middle;position:absolute;top:11px;right:110px}span.dep{font-size:14px;vertical-align:middle}span.depStrong{color:#19b68f}span.depMedia{color:#ff9f00}span.depWeak{color:#f50}ul.line li.lineF3{position:relative}div.coverLoadCon{margin:400px auto 0}</style>