

<div class="cloudAccountLogo"></div>
<div class="cloudManageCon">
	<div id="cloudMgtDetial" class="cloudMgtDetial">
		<i id="close" class="closeTip"></i>
		<p class="title">{%label.cloudAccountBinds%}</p>
		<p class="cloudTip">{%label.cloudID%}</p>
		<ul class="line">
			<li class="line lineF3">
				<label class="des desE"></label>
			</li>
			<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.password%}</label>
				<input id="cloudPwd" class="text textC imeModeN" type="password" maxLength="32" />
				<label class="desInner" for="cloudPwd">{%label.cloudPwdNull%}</label>
			</li>
			<li class="line lineF3">
				<a id="fegtPwdLink" class="link" href="javascript:void(0);">{%label.loginPwdLost%}</a>
				<a id="registLink" class="link" href="javascript:void(0);">{%label.cloudRegist%}</a>
			</li>
			<li class="line lineF3">
				<label class="des desE"></label>
			</li>
		</ul>
		<input id="cancelBindBtn" type="button" value="{%btn.cancel%}" class="subBtnB btnA" />
		<input id="cloudBindBtn" type="button" value="{%btn.bind%}" class="subBtn btnA" />
	</div>
</div><script type="text/javascript">function gCloudAccountBindErrHandle(b,c){var a="";switch(b){case ENONE:return gCloudAccountBR.success=!0,gCloudAccountBR.noteF=label.cloudAccountBindSuccess,!0;case EINDEVICEALREADYBOUND:case EINVACCOUNTBINDED: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 IPCUMGUESTNAUTH:a=errStr.invPermissionDenied;break;case EINVPASSWORDFMT:case EINVACCOUNTPWDFMT:a=errStr.pwdInvalid;break;case EINVACCOUNTPWDERR:a=label.passwdErr;break;case EINVACCOUNTPHONENUMFMT:case EINVMAILFMT:case EINVMAILLEN:case EINVACCOUNTEMAILFMT:case EINVCLOUDUSRCOUNTFORMAT:a=errStr.invCloudAccountFmtErr;break;case EINVACCOUNTLOCKED:a=errStr.invCloudAccountLocked;break;default:a=cloudErrHandle(b),a=!1==a.result?a.tip:errStr.invRequestFail}gCloudAccountBR.success=!1;showAlert(a,c);return!1}
function gCloudAccountBRHd(b,c,a){showLoading(label.cloudAccoundBindWaiting,a,void 0,!1);cloudAccountBind(gCloudAccountBR.account,gCloudAccountBR.pwd,function(a){closeLoading();!0==gCloudAccountBindErrHandle(parseInt(a))&&"function"==typeof b&&b()},function(){gCloudAccountBR.success=!1;gCloudAccountBR.noteF=label.cloudAccountBindFail;gCloudAccountBR.noteS=label.cloudServerNoRespCheckNetwork;"function"==typeof c&&c()})}
function init(){function b(){var a=d.value;if(0==a.length)return showNote("cloudAccount",label.cloudAccountNull),!1;if(!1==checkNum(a)){if(!1==checkEmail(a))return showNote("cloudAccount",label.cloudAccountEmailFmtErr),!1}else{if(!1==checkPhoneNum(a))return showNote("cloudAccount",errStr.invCloudAccountFmtErr),!1;closeNote("cloudAccount")}gCloudAccountBR.account=a;return!0}function c(a){$(a.parentNode).find("label.desInner").css("display","none")}function a(a){0==a.value.length?$(a.parentNode).find("label.desInner").css("display",
"inline"):$(a.parentNode).find("label.desInner").css("display","none")}function f(){var a=e.value;if(32<a.length||6>a.length)return showNote("cloudPwd",errStr.pwdLenErrTip),!1;closeNote("cloudPwd");if(/^[\x21-\x7e]+$/.test(a))closeNote("cloudPwd");else return showNote("cloudPwd",errStr.pwdCharValid),!1;gCloudAccountBR.pwd=a;return!0}var d=id("cloudAccount"),e=id("cloudPwd"),g=id("close"),h=id("cancelBindBtn");d.value=gCloudColObj.account;a(d);cloudPageSetNodes(!0);id("fegtPwdLink").onclick=function(){cloudSetBackHd(function(){showCloudPage("CloudBindCfg.htm")});
showCloudPage("CloudForgPwd.htm")};id("registLink").onclick=function(){showCloudPage("CloudRegistCfg.htm")};id("cloudBindBtn").onclick=function(){!0==$.local&&(gCloudAccountBR.success=!1,gCloudAccountBR.noteF=label.cloudAccountBindFail,gCloudAccountBR.noteS=label.cloudServerNoRespCheckNetwork,loadPage("CloudBindRegistResult.htm","cloudMgtDetial",void 0,{bClearPageTickArray:!1}));!0==b()&&!0==f()&&gCloudAccountBRHd(function(){loadPage("CloudBindRegistResult.htm","cloudMgtDetial",void 0,{bClearPageTickArray:!1})},
function(){loadPage("CloudBindRegistResult.htm","cloudMgtDetial",void 0,{bClearPageTickArray:!1})},cloudAccountQueryStop)};g.onclick=h.onclick=function(){cloudGoBackBR({binded:!1})};d.onblur=function(){gCloudColObj.account=this.value;a(this)};d.onfocus=function(){c(this)};e.onblur=function(){a(this)};e.onfocus=function(){c(this)}}init();
</script><style type="text/css">body{font-size:14px;height:100%}i.closeTip{background:url(../web-static/images/closeTip.png);cursor:pointer;height:15px;position:absolute;top:10px;right:15px;width:15px}#fegtPwdLink{margin-right:111px}#registLink{margin-right:208px}.link{color:#666;font-size:13px;display:inline-block;height:30px;line-height:30px}input.subBtnB{margin-left:220px;margin-right:14px}ul.line li.lineF3{position:relative}div.coverLoadCon{margin:400px auto 0}</style>