
<div class="lgHead">
	<div class="logo"></div>
</div>
<div class="lgCon">
	<h1 id="helloStr" class="hello">{%label.hello%}</h1>
	<ul class="line userpwd">
		<li class="tipLine">
			<span>{%label.userName%}</span>
		</li>
		<li class="lgLine">
			<div id="lgUsernameBdg" class="lgBdBg username">
				<input class="username" id="userName" maxLength="32" />
				<label id="userTipStr" for="userName">{%label.loginUserNameKey%}</label>
			</div>
		</li>
		<li class="tipLine">
			<span>{%label.password%}</span>
		</li>
		<li class="lgLine lgPwd">
			<div id="lgPwdBdg" class="lgBdBg password">
				<input class="password" id="lgPwd" type="password" maxLength="32" />
				<label id="pwdTipStr" for="lgPwd">{%label.loginUserPwdRan%}</label>
			</div>
		</li>
	</ul>
	<div class="lgFunc">
		<input class="login subBtn" type="button" id="loginSub" value="{%btn.login%}" />
	</div>
</div><script type="text/javascript">function init(){function w(){e.max--;0==e.max?g():s=$.setTimeout(arguments.callee,e.timeout)}function g(){clearTimeout(s);e.max=t;l.innerHTML=label.hello;l.className="hello"}function u(){var a=document.documentElement.clientHeight,b=$("div.lgCon"),a=parseInt(0.235*(400<a?a:400));b.css("marginTop",a);$("#Cover p").css("marginTop",a-10+parseInt(b.css("height")))}function m(){closeNote("lgPwdBdg");closeNote("lgUsernameBdg")}function v(){var a=id("userName"),b=id("lgPwd"),f=a.value,a=b.value;m();$.auth(f,
orgAuthPwd(a),a,function(a){if(a==ENONE)b.value="",unloadLogin();else{a=parseInt($.authRltObj.code);var c=$.authRltObj.time,k=$.authRltObj.max_time,n=!0;switch(a){case ESYSLOCKED:m();l.innerHTML=label.lockTip.replace("%s",f);l.className="helloLk hello";$.setTimeout(w,e.timeout);break;case EUNAUTH:if(e.cnt==c)break;c<=e.minTipCnt&&c!=k?showNote("lgPwdBdg",label.loginErrorTipH+c+label.loginErrorTipT):showNote("lgPwdBdg",label.loginPwdErr);g();break;case ESYSCLIENTNORMAL:break;case IPCUMUSRBLANK:showNote("lgUsernameBdg",
errStr.loginUserNameNull);n=!1;g();break;case IPCUMUSRNEXIST:showNote("lgUsernameBdg",errStr.invCloudAccountNotExist);n=!1;g();break;case EUSRUNSUPPORTED:showNote("lgUsernameBdg",errStr.loginUserUnsupported);n=!1;g();break;default:showAlert(errStr.invRequestFail),g()}0<d.value.length&&!0==n?setDomCursorPos(d,d.value.length):0<h.value.length&&setDomCursorPos(h,h.value.length)}})}function p(a,b){void 0==f&&(f=$("div.username")[0]);!0==b?$(f).removeClass("normal").addClass("active"):$(f).removeClass("active").addClass("normal");
setStyle(a,{height:"32px"})}function q(a,b){void 0==c&&(c=$("div.password")[0]);!0==b?$(c).removeClass("normal").addClass("active"):$(c).removeClass("active").addClass("normal");setStyle(a,{height:"32px"})}var t=1800,e={max:t,minTipCnt:3,timeout:1E3},h=id("userName"),d=id("lgPwd"),x=id("loginSub"),k=id("userTipStr"),r=id("pwdTipStr"),l=id("helloStr"),s,f,c;(function(){var a=id("userName");a.value="admin";disableInput(a,!0);disableInput("lgUsernameBdg",!0);k.style.display="none";u();x.onclick=v;h.onfocus=
function(){k.style.display="none";p(this,!0)};h.onblur=function(){0==this.value.length&&(k.style.display="inline");p(this,!1)};d.onfocus=function(){r.style.display="none";q(this,!0)};d.onblur=function(){0==this.value.length&&(r.style.display="inline");q(this,!1)};d.value="";d.onkeyup=function(a){a=a||window.event;if(13==a.keyCode)return v()};d.onclick=function(a){m();q(this,!0);r.style.display="none";stopProp(a)};h.onclick=function(a){m();p(this,!0);k.style.display="none";stopProp(a)};window.onresize=
function(){u()};document.body.style.height="100%"})()}init();
</script>