var __newpassword=function(a){var r=function(f){function p(){var b=document.getElementById("us-new-password-first-textbox").value,c=document.getElementById("us-password-check-rule1"),d=document.getElementById("us-password-check-rule2"),e=document.getElementById("us-password-check-rule3"),h=document.getElementById("us-password-check-rule4"),f=document.getElementById("us-password-check-rule5"),g=!0;a.ESVS.LimitMinNewPWLen<=b.length?c.className="check":(c.className="",g=!1);if(a.bsUtil().isKeyProtected())return g;"NPKI"===a.ESVS.PKI||2===a.ESVS.LimitNewPWPattern?(c=/^(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^a-zA-Z0-9])/g,c.exec(b)?d.className="check":(d.className="",g=!1)):1===a.ESVS.LimitNewPWPattern&&(c=/^(?=.*[a-zA-Z])(?=.*[0-9])/g,c.exec(b)?d.className="check":(d.className="",g=!1));if("NPKI"===a.ESVS.PKI&&a.ESVS.ChangePWByNPKINewPattern)if(c=/['"\\|]/g,c.exec(b)?(f.className="",g=!1):f.className="check",2"+c.IDS_RENEW_NEW_PASSWORD_GUIDE:c.IDS_NEW_PASSWORD_NOTICE+"
("+a.ESVS.LimitMinNewPWLen+c.IDS_NEW_PASSWORD_LIMIT+")";document.getElementById("us-new-password-first-lbl").appendChild(document.createTextNode(c.IDS_NEW_PASSWORD_FIRST+" :"));event.getModifierState?(a.uiUtil().addCapsLockEvent("us-new-password-first-textbox","us-new-password-err-msg-capslock","",null),a.uiUtil().addCapsLockEvent("us-new-password-second-textbox","us-new-password-err-msg-capslock","",null),document.getElementById("us-new-password-err-msg-capslock-text").appendChild(document.createTextNode(c.IDS_MSGBOX_CAPSLOCK_ON))):a.uiUtil().addCapsLockEvent("us-new-password-first-textbox","us-new-password-err-msg-capslock",c.IDS_MSGBOX_CAPSLOCK_ON,null);var d=document.getElementById("us-new-password-first-textbox");d.setAttribute("tabindex",n+1,0);d.setAttribute("title",c.IDS_NEW_PASSWORD_FIRST,0);d.onkeyup=function(a){event.getModifierState&&(event.getModifierState("CapsLock")?(document.getElementById("us-new-password-err-msg-capslock").style.top=d.offsetTop+0+30+"px",document.getElementById("us-new-password-err-msg-capslock").style.display="block"):document.getElementById("us-new-password-err-msg-capslock").style.display="none");p()};d.onfocus=function(a){"block"==document.getElementById("us-new-password-err-msg-capslock").style.display&&(document.getElementById("us-new-password-err-msg-capslock").style.top=d.offsetTop+0+30+"px")};document.getElementById("us-new-password-second-lbl").appendChild(document.createTextNode(c.IDS_NEW_PASSWORD_SECOND+" :"));var e=document.getElementById("us-new-password-second-textbox");e.setAttribute("tabindex",n+2,0);e.setAttribute("title",c.IDS_NEW_PASSWORD_SECOND,0);e.onkeydown=function(a){if(a=a?a:event)a=a||window.event,13==(a.which||a.keyCode)&&document.getElementById("us-new-password-confirm-btn").click()};e.onkeyup=function(a){a.getModifierState&&(a.getModifierState("CapsLock")?(document.getElementById("us-new-password-err-msg-capslock").style.top=e.offsetTop+0+30+"px",document.getElementById("us-new-password-err-msg-capslock").style.display="block"):document.getElementById("us-new-password-err-msg-capslock").style.display="none")};e.onfocus=function(a){"block"==document.getElementById("us-new-password-err-msg-capslock").style.display&&(document.getElementById("us-new-password-err-msg-capslock").style.top=e.offsetTop+0+30+"px")};document.getElementById("us-password-check-rule1").appendChild(document.createTextNode(a.ESVS.LimitMinNewPWLen+""+c.IDS_PASSWORD_RULE1));if("NPKI"===a.ESVS.PKI){b=document.getElementById("us-password-check-rule2");b.appendChild(document.createTextNode(c.IDS_PASSWORD_RULE2_ALL));var h=document.getElementById("us-password-check-rule3");h.appendChild(document.createTextNode(c.IDS_PASSWORD_RULE3));var q=document.getElementById("us-password-check-rule4");q.appendChild(document.createTextNode(c.IDS_PASSWORD_RULE4));var g=document.getElementById("us-password-check-rule5");g.appendChild(document.createTextNode(c.IDS_PASSWORD_RULE5));a.bsUtil().isKeyProtected()&&(b.className="disable",h.className="disable",q.className="disable",g.className="disable")}else b=document.getElementById("us-password-check-rule2"),1===a.ESVS.LimitNewPWPattern?b.appendChild(document.createTextNode(c.IDS_PASSWORD_RULE2_ENGNUM)):2===a.ESVS.LimitNewPWPattern&&b.appendChild(document.createTextNode(c.IDS_PASSWORD_RULE2_ALL)),a.bsUtil().isKeyProtected()&&(b.className="disable");document.getElementById("us-new-password-warning-text").appendChild(document.createTextNode(c.IDS_NEW_PASSWORD_WARNING));b=document.getElementById("us-new-password-confirm-btn");b.setAttribute("value",c.IDS_CONFIRM,0);b.setAttribute("title",c.IDS_CONFIRM+c.IDS_BUTTON,0);b.setAttribute("tabindex",n+3,0);b.onclick=function(){l(c)};b=document.getElementById("us-new-password-cancel-btn");b.setAttribute("value",c.IDS_CANCEL,0);b.setAttribute("title",c.IDS_CANCEL+c.IDS_BUTTON,0);b.setAttribute("tabindex",n+4,0);b.onclick=function(){f.onCancel()};b=document.getElementById("us-new-password-cls-img-btn");b.setAttribute("title",c.IDS_NEW_PASSWORD_CLOSE,0);b.setAttribute("tabindex",n+5,0);b.onclick=function(){f.onCancel()};return document.getElementById("us-div-new-password")}()};return function(f){var p=a.uiLayerLevel,l=a.uiUtil().getOverlay(p),k=r({type:f.type,args:f.args,onConfirm:f.onConfirm,onCancel:f.onCancel});k.style.zIndex=p+1;a.ESVS.TargetObj.insertBefore(l,a.ESVS.TargetObj.firstChild);var m=window.onresize;return{show:function(){a.ActiveUI=this;draggable(k,document.getElementById("us-div-new-password-title"));l.style.display="block";a.uiUtil().offsetResize(k);window.onresize=function(){a.uiUtil().offsetResize(k);m&&m()};a.uiLayerLevel+=10;a.ESVS.TabIndex+=30;a.bsUtil().ahnlabInit();setTimeout(function(){var f=k.getElementsByTagName("p");if(0