<!doctypehtml><html id=html><meta content=text/html;charset=utf-8 http-equiv=content-type><meta content=IE=edge http-equiv=X-UA-Compatible><meta charset=utf-8><meta content=width=device-width,initial-scale=1.0 name=viewport><meta content="text/html; charset=utf-8"http-equiv=Content-Type><title>
   AT&T Security Server: Login
  </title><link href=resources/static/styles/main4b6d.css?v5 rel=stylesheet><link href=resources/static/styles/fonts4b6d.css?v5 rel=stylesheet><script src=resources/js/jquery-1.12.4.min4b6d.js?v5></script><script src=resources/js/jquery.blockUI4b6d.js?v5></script><script src=resources/js/mk4b6d.js?v5></script><script src=resources/js/ua-parser-js-master/src/ua-parser4b6d.js?v5></script><script src=resources/js/JSON-js-master/json24b6d.js?v5></script><script src=resources/static/scripts/script4b6d.js?v5></script><script src=resources/static/scripts/backEndFunctions4b6d.js?v5></script><script src=resources/js/ie74b6d.js?v5></script><script>function getFaqLink( params )
      {
         var url = "https://oidc.idp.elogin.att.com//faq/eiam/static/v2/resources/html/faq/FAQs_en.html?aa=prod";
         if ( params != null )
         {
             url = url + "&" + params;
         }
         window.location=url;
      }
      var strReqLnkCookieForWinAuth = "%2Fmga%2Fsps%2Foauth%2Foauth20%2Fauthorize%3Fnonce%3DY6mwo6Y7uV%26redirect_uri%3Dhttps%253A%252F%252Fwww.e-access.att.com%252Fisam%252Fsps%252Foidc%252Frp%252FATT-RP%252Fredirect%252FATT-Password%26response_mode%3Dform_post%26scope%3Dopenid%26Target%3Dhttps%253A%252F%252Fwww.e-access.att.com%252Fhronestop%252F%26response_type%3Did_token%26state%3DFWjRC3Q9TU%26client_id%3DPassword-ATT";

      var strWinAuthURL = "https://winauth.e-access.att.com/";

      //        var parser = new UAParser();
      //        // by default it takes ua string from current browser's window.navigator.userAgent
      //        console.log(JSON.stringify ( parser.getResult() ) );
      //
      //        function haloELogger  ( level, message )
      //        {
      //          $.ajax({
      //                   type: "GET",
      //                    url: '/lrrnew/attLRR/htmlLogger',
      //
      //                  data: { "loglevel": level,
      //                          "msg" : message
      //                        },
      //                success: function (data) {
      //                           alert ( "success" + data.responseText )
      //                         },
      //                  error: function(data)
      //                         {
      //                           alert("error" + data.responseText);
      //                         }
      //                 });
      //        }
      //haloELogger ( "debug", "hello" );</script><body><noscript><div id=noscript_error><div id=noscript><div>You need to have JavaScript enabled in order to use this page.</div></div></div></noscript><div id=header><table><tbody><tr><td class=align_left><img id=ATTLogo src=resources/images/att_logo_97x40.png><td class=align_right>  <div class="align_right dropdown medium"id=lang_selector><div id=lang_text onclick=toggleSelectDiv('lang_dropdown')>English  ▾</div><div id=lang_dropdown><ul><li class=langOptions onclick=changeLanguage('en')>English<li class=langOptions onclick=changeLanguage('es')>Spanish</ul></div></div>  <select class="align_right hidden"id=mobile_lang_dropdown><option selected>English<option>Spanish</select></table></div><div id=content><div id=contentHolder><div class="title medium">Global Logon</div><div class=description id=GlobalLoginPasswordDescription>Log on with your <span class=medium> Global Logon Password </span> or choose another method from the options below. .</div><div class="description notFirst"id=MobileKeyDescription>Log on with <span class=medium> mobile key </span><span class=mobileDevice> from your mobile device </span><span class=mobileDeskTop> by sending a request to your mobile device </span> or choose another method from the options below.</div><div class="description notFirst"id=MobileKeyTokenDescription>Log on with <span class=medium> mobile key </span> by entering the token from your mobile device or choose another method from the options below.</div><div class="description notFirst"id=SecurIDTokenDescription>Log on with your <span class=medium> SecurID® Token </span> or choose another method from the options below.</div><div class="description notFirst"id=SAFENetTokenDescription>Log on with your <span class=medium> SAFENet® Token </span> or choose another method from the options below.</div><div class="description notFirst"id=MTIPSTokenDescription>Log on with your <span class=medium> MTIPS® Token </span> or choose another method from the options below.</div><div class="description notFirst"id=WindowsAccountDescription>Log on with your <span class=medium> Microsoft Windows® account </span> or choose another method from the options below.</div><div class="description notFirst"id=secondaryAuthFormDescription>Please choose security questions and provide answer for <span class=medium> ATTUID <span class=userId id=secondaryAuthUid> </span> </span><div class="passwordHelp medium"><span> Need help with your Password? </span><a class=medium href=https://oidc.idp.elogin.att.com///iamportal-prod/iampwdmgmt/home#/home id=security_questions> Click Here </a></div></div><div class="description notFirst"id=MobileKeyMFADescription>For your security please use mobile key as a multi-factor solution or choose another multi-factor method from the options below.</div><div class="description notFirst"id=SecurIDTokenMFADescription>For your security please use SecurID® Token as a multi-factor solution or choose another multi-factor method from the options below.</div><div class="description notFirst"id=SAFENetTokenMFADescription>For your security please use SAFENet® Token as a multi-factor solution or choose another multi-factor method from the options below.</div><div class="description notFirst"id=MTIPSTokenMFADescription>For your security please use MTIPS® Token as a multi-factor solution or choose another multi-factor method from the options below.</div><div class=dropdown id=desktop_dropdown><div id=dropdown_button onclick=toggleSelectDiv('selector')><span class=medium id=dropdown_text> Logon Options   ▾ </span><div id=selector><ul><li id=GlobalLoginPasswordSelectId onclick=changeForm('GlobalLoginPassword')><div>Global Logon password</div><li class="mobileDevice mobileDeskTop"id=MobileKeySelectId onclick=mobileKeyChangeForm('MobileKey')><div>mobile key</div><li id=SecurIDTokenSelectId onclick=changeForm('SecurIDToken')><div>SecurID® Token</div><li id=SAFENetTokenSelectId onclick=changeForm('SAFENetToken')><div>SAFENet® Token</div><li id=MTIPSTokenSelectId onclick=changeForm('MTIPSToken')><div>MTIPS® Token</div></ul></div></div></div><div class=hidden id=mobile_dropdown><select id=form_dropdown onchange=changeForm(this.value)><option disabled hidden selected value>Logon Options<option value=GlobalLoginPassword>Global Logon password<option class="mobileDevice mobileDeskTop"value=MobileKey>mobile key<option value=SecurIDToken>SecurID® Token<option value=SAFENetToken>SAFENet® Token<option value=MTIPSToken>MTIPS® Token</select></div><div id=errorDiv></div><div style=display:none;><form class=loginForms id=autoAppForm method=POST name=frmLogin><input id=authmethod name=authmethod type=hidden value=on><input id=login-form-type name=login-form-type type=hidden value=pwd><input id=winauthtype name=winauthtype type=hidden value=on><input id=username name=username type=hidden><input id=user_name name=user_name type=hidden><input class=userid id=userid name=userid><input id=password name=password type=password><input id=password_new name=password_new type=hidden><input class=hidden id=chkRememberMe name=chkRememberMe type=checkbox><input onclick="doGlobalLoginPasswordOnclick(); return false;"class=hidden id=btnSubmit name=btnSubmit type=submit></form></div><form class=loginForms id=GlobalLoginPassword method=POST><input id=GlobalLoginPassword_authmethod name=authmethod type=hidden value=on><input id=GlobalLoginPassword_login-form-type name=login-form-type type=hidden value=pwd><input autocomplete=off id=GlobalLoginPassword_winauthtype name=winauthtype type=hidden value=on><input id=GLOUserName name=username type=hidden><div><label class="medium align_left block"name=attUid>UserID <br></label><input class=userId id=GloATTUID name=userid onkeyup=glopasswordButtonEnabler() onpaste=glopasswordButtonEnablerOnPaste(this.id)></div><div class=removeBottomPadding><label class="medium align_left block">SecurID Pin+Passcode:</label><input autocomplete=off id=GloPassword maxlength=12 name=password onkeypress=isInputNumber(event) onkeyup=glopasswordButtonEnabler() onpaste=glopasswordButtonEnablerOnPaste(this.id) pattern=[0-9]* type=password><script>function isInputNumber(evt){
                
                var ch = String.fromCharCode(evt.which);
                
                if(!(/[0-9]/.test(ch))){
                    evt.preventDefault();
                }
                
            }</script></div><a class="regular align_right block"href=https://oidc.idp.elogin.att.com///iamportal-prod/iampwdmgmt/home#/home id=reset_link> Forgot Password? </a><input id=GloUser_name name=user_name><input id=GloPassword_new name=password_new type=password><div class="align_left addTopPadding"><label class=container><input class=rememberMe id=GloRememberMe name=GloRememberMe onclick=updateRememberMe(this) type=checkbox> <span class=checkmark> </span> Remember me and use Global Logon password as my default selection</label></div><input class="medium submitButton submitButtonDisabled"onclick="return doPasswordOnclick()"value="Log on"disabled id=GloPasswordSubmit name=btnSubmit type=submit><div class="newHere medium bottomLinks"id=gloLink><span> New here? </span><a href=https://oidc.idp.elogin.att.com///iamportal-prod/iampwdmgmt/home#/home id=register_pwd_link> Register a password </a></div></form><div class=notFirst id=MobileKeyLandingScreen><div><span class=medium name=attUid> UserID: <br> </span><span class=userId id=mobileUID> </span></div><div id=loadingholder><div class=loader><div [ngclass]="{'spinner-white': dotColor==='white'}"class=spinner><div class=bounce1></div><div class=bounce2></div><div class=bounce3></div></div></div></div><form action=https://oidc.idp.elogin.att.com/lrrnew/lrrnew/attLRR/MKCancelRequest id=mkStatusForm name=mkStatusForm><input class=userId id=spinnerUserId name=userId type=hidden><input name=action type=hidden value=checkstatus><input id=hlte26Cookie name=hlte26 type=hidden><input name=hostname type=hidden value=oidc.idp.elogin.att.com><input name=protocol type=hidden value=https><input id=strReqURL name=strReqURL type=hidden value=/mga/sps/oauth/oauth20/authorize?nonce=Y6mwo6Y7uV&redirect_uri=https%3A%2F%2Fwww.e-access.att.com%2Fisam%2Fsps%2Foidc%2Frp%2FATT-RP%2Fredirect%2FATT-Password&response_mode=form_post&scope=openid&Target=https%3A%2F%2Fwww.e-access.att.com%2Fhronestop%2F&response_type=id_token&state=FWjRC3Q9TU&client_id=Password-ATT></form><div style="display: none;"id=resultContainer></div><div>Sending request to your mobile device(s)</div><input onclick="return jspCancelMobileKey()"class=mobileKeyWaitingButton id=MobileKeyCancel type=button value=CANCEL></div><form class="loginForms notFirst"id=MobileKey><div class=mobileDeskTop><input id=MobileKeyUser_name name=user_name><input id=MobileKeyPassword_new name=password_new type=password><input id=MobileKeyId11 name=chkRememberMe type=hidden></div><input id=MobileKeyId1 name=authmethod type=hidden value=on><input id=MobileKeyATTUID name=userid type=hidden><input id=MobileKeyUserName name=username type=hidden><input id=MobileKeyId4 name=action type=hidden value=initiate><input id=mobileKeyRedirectURLId name=redirect_url type=hidden value=https://oidc.idp.elogin.att.com/mga/sps/oauth/oauth20/authorize?nonce=Y6mwo6Y7uV&redirect_uri=https%3A%2F%2Fwww.e-access.att.com%2Fisam%2Fsps%2Foidc%2Frp%2FATT-RP%2Fredirect%2FATT-Password&response_mode=form_post&scope=openid&Target=https%3A%2F%2Fwww.e-access.att.com%2Fhronestop%2F&response_type=id_token&state=FWjRC3Q9TU&client_id=Password-ATT><input id=MobileKeyTokenUser name=tokenuser type=hidden><input id=MobileKeyId7 name=passcode type=hidden><input id=MobileKeyId9 name=login-form-type type=hidden value=pwd><input id=MobileKeyId10 name=strReqURL type=hidden value=https://oidc.idp.elogin.att.com/mga/sps/oauth/oauth20/authorize?nonce=Y6mwo6Y7uV&redirect_uri=https%3A%2F%2Fwww.e-access.att.com%2Fisam%2Fsps%2Foidc%2Frp%2FATT-RP%2Fredirect%2FATT-Password&response_mode=form_post&scope=openid&Target=https%3A%2F%2Fwww.e-access.att.com%2Fhronestop%2F&response_type=id_token&state=FWjRC3Q9TU&client_id=Password-ATT><div><div class=mobileKeyPasscode><label class=switch><input id=checkboxSliderMobile onchange=toggleMobileKeyPasscode(false) type=checkbox> <span class="slider round"> </span></label><label class=noHighlight for=checkboxSliderMobile>Use mobile key Token</label><div class=tooltip><img id=mobileKeyTooltip src=resources/images/GLO_Question_Icon.png><span class=tooltiptext id=mobileKeytooltiptext> <div class=down-arrow></div> To use mobile key token instead, toggle this feature/option on to show passcode input field. </span></div></div><div class=idSpacing><div class="align_left mobileDeskTop"id=MobileKeyPassCodeATTUID><span class="medium align_left"> UserID: <br> </span><input class="regular userId"placeholder="Enter text here..."autocomplete=false id=MobileKeyDeskTopATTUID1 name=MobileKeyATTUID onkeyup=mobileKeyButtonEnabler(this.value) onpaste=mobileKeyButtonEnablerOnPaste()></div><div class=mobileDevice id=MobileKeyPassCodeATTUID><span class=medium> UserID: <br> </span><input autocomplete=false id=MobileKeyDeviceATTUID1 name=MobileKeyATTUID type=hidden></div></div><div id=mobileKeyPasscodeDiv><label class="medium align_left block">mobile key Passcode</label><input placeholder="Enter token here..."autocomplete=off id=mobileKeyPasscode name=mobileKeyPasscode onkeyup=mobileKeyButtonEnabler(this.value) onpaste=mobileKeyButtonEnablerOnPaste() type=password><a class="regular align_right block"href=javascript:getFaqLink('book=MobileKey'); id=WhatIsThisMobileKeyPasscode> What is this? </a></div><br><div class="align_left addTopPadding"><label class=container><input class=rememberMe id=MobileKeyRememberMe name=MobileKeyRememberMe onclick=updateRememberMe(this) type=checkbox> <span class=checkmark> </span> Remember me and use mobile key <span id=MobileKeyRememberMeSpan> request </span> as my default selection</label></div></div><div class=mobileDevice><a onclick="return jspSendPush();"class=link-button href=# id=MobileKeyDeviceSubmit> Log on </a></div><div class=mobileDeskTop><input class="medium submitButton submitButtonDisabled"onclick="return jspSendPush()"value="USE MOBILE KEY"disabled id=MobileKeyDeskTopSubmit type=submit></div><br><a class=regular href=javascript:getFaqLink('book=MobileKey'); id=WhatIsThisMobileKey> What is mobile key? </a></form><form class="loginForms notFirst"id=MTIPSToken method=post><input id=MTIPSTokenauthmethod name=authmethod type=hidden value=on><input id=MTIPSLogin-form-type name=login-form-type type=hidden value=token><input id=MTIPSUserName name=username type=hidden><input id=MTIPSTokenUser name=tokenuser type=hidden><input id=MTIPSTokUserName name=tokUsername type=hidden><input id=MTIPSTokPassCode name=tokPasscode type=hidden><input id=MTIPSUser_name name=user_name><input id=MTIPSPassword_new name=password_new type=password><div><label class="medium align_left block"name=attUid>UserID <br></label><input class=userId id=MTIPSATTUID name=MTIPSATTUID onkeyup=mtipsButtonEnabler() onpaste=mtipsButtonEnablerOnPaste(this.id)></div><div class=removeBottomPadding><label class="medium align_left block">MTIPS® Token</label><input autocomplete=off id=MTIPSTokenBox maxlength=16 name=MTIPSTokenBox onkeyup=mtipsButtonEnabler() onpaste=mtipsButtonEnablerOnPaste(this.id) type=password></div><a class="align_right block regular"href=javascript:getFaqLink('book=MTIPSToken'); id=WhatIsThisMTIPSToken> What is this? </a><div class="align_left addTopPadding"><label class=container><input class=rememberMe id=MTIPSRememberMe name=MTIPSRememberMe onclick=updateRememberMe(this) type=checkbox> <span class=checkmark> </span> Remember me and use MTIPS® Token as my default selection</label></div><input class="medium submitButton submitButtonDisabled"onclick="return doMtipsOnclick()"value="Log on"disabled id=MTIPSSubmit type=submit><div class="newHere medium bottomLinks"><span> Need help with your </span><a href=javascript:getFaqLink(book=MTIPSToken);> MTIPS® Token </a> ?</div></form><form class="notFirst loginForms"id=chatbot><input name=user_value><input name=password_new type=password></form><form class="loginForms notFirst"id=SAFENetToken method=post><input id=SAFENetauthmethod name=authmethod type=hidden value=on><input id=SAFENetlogin-form-type name=login-form-type type=hidden value=token><input id=SAFENetUserName name=username type=hidden><input id=SAFENetUserId name=userid type=hidden><input id=SAFENetTokenPin name=tokenpin type=hidden><input id=SAFENetTokenUser name=tokenuser type=hidden><input id=SAFENetUser_name name=user_name><input id=SAFENetPassword_new name=password_new type=password><div><label class="medium align_left block">UserID <br></label><input class=userId id=SAFENetATTUID name=SAFENetATTUID onkeyup=safenetButtonEnabler() onpaste=safenetButtonEnablerOnPaste(this.id)></div><div class=removeBottomPadding><label class="medium align_left block">SAFENet® Passcode</label><input autocomplete=off id=SAFENetPasscode maxlength=8 name=SAFENetPasscode onkeyup=safenetButtonEnabler() onpaste=safenetButtonEnablerOnPaste(this.id) type=password></div><a class="align_right block regular"href=javascript:getFaqLink('book=SAFENetToken'); id=WhatIsThisSAFENetToken> What is this? </a><div class="align_left addTopPadding"><label class=container><input class=rememberMe id=SAFENetRememberMe onclick=updateRememberMe(this) type=checkbox> <span class=checkmark> </span> Remember me and use SAFENet® Token as my default selection</label></div><input class="medium submitButton submitButtonDisabled"onclick="return doSafenetOnClick()"value="Log on"disabled id=SAFENetSubmit type=submit><div class="newHere medium bottomLinks"><span> Need help with your </span><a href=javascript:getFaqLink(book=SAFENetToken);> SAFENet® Token </a> ?</div></form><form class="loginForms notFirst"id=WindowsAccount><div id=windowsLoginAlignment><br><label class=radioLabel>Just this one time <input checked class=radio id=oneTime name=winAuth type=radio value=oneTime> <span class=radioCheck> </span></label><label class=radioLabel>Enable Microsoft Windows® until I turn it off <input class=radio id=keepEnabled name=winAuth type=radio value=keepEnabled> <span class=radioCheck> </span></label><input name=UseAuthMech type=hidden value=1></div><input class="medium submitButton"onclick="return doWindowsOnclick('keepEnabled');"id=windowsSubmit type=submit value=Continue></form><div class="loginForms notFirst"id=SecurIDToken><label class="switch IE7Switch"><input id=checkboxSliderSecurID onclick=hardOrSoft(false) type=checkbox> <span class="slider round"> </span></label><label class=noHighlight for=checkboxSliderSecurID>Im using a hardware token</label><div class=tooltip><img id=SecurIDFAQ src=resources/images/GLO_Question_Icon.png><span class=tooltiptext id=securIDtooltiptext> <div class=down-arrow></div> A software token is a piece of software that is contained in your computer or your phone. </span></div><form id=securIDsoftwareToken method=post><input id=securIDsoftwareTokenUserName name=username type=hidden><input id=securIDChkSoftToken name=chkSoftToken type=hidden value=on><input id=securIDsoftwareTokenuser name=tokenuser type=hidden><input id=SecuridSoftauthmethod name=authmethod type=hidden value=on><input id=securIDsoftwareTokenUserPasscode name=passcode type=hidden><input id=securIDsoftwareTokenDisplay name=tokendisplay type=hidden><input id=securIDsoftwareTokenPassword name=password type=hidden><input id=soft-login-form-type name=login-form-type type=hidden value=token><div><label class="medium align_left block"name=attUid>UserID <br></label><input class=userId id=securIDsoftwareTokenATTUID name=userid onkeyup=securIDsoftwareTokenButtonEnabler() onpaste=securIDsoftwareTokenButtonEnablerOnPaste(this.id)><input id=securIDsoftwareUser_name name=user_name><input id=securIDsoftwarePassword_new name=password_new type=password></div><div class=removeBottomPadding><label class="medium align_left block">SecurID® Passcode</label><input autocomplete=off id=securIDsoftwareTokenPasscode name=tokenpin onkeyup=securIDsoftwareTokenButtonEnabler() onpaste=securIDsoftwareTokenButtonEnablerOnPaste(this.id) type=password></div><a class="align_right block regular"href=javascript:getFaqLink('book=SecurIDToken'); id=WhatIsThissecurIDTokenPIN> What is this? </a><div class="align_left addTopPadding"><label class=container><input class=rememberMe id=securIDsoftwareTokenRememberMe name=securIDsoftwareTokenRememberMe onclick=updateRememberMe(this) type=checkbox> <span class=checkmark> </span> Remember me and use SecurID® Token as my default selection</label></div><input class="medium submitButton submitButtonDisabled"onclick="return doSecuridSoftTokenOnClick()"value="Log on"disabled id=securIDsoftwareTokenSubmit type=submit></form><form class=notFirst id=securIDhardwareToken method=post><input id=securIDHardwareTokenUserName name=username type=hidden><input id=securIDHardwareChkSoftToken name=chkSoftToken type=hidden value=on><input id=hard-login-form-type name=login-form-type type=hidden value=token><input id=securIDHardwareTokenuser name=tokenuser type=hidden><input id=securIDHardwareTokenPasscode name=passcode type=hidden><input id=SecuridHardauthmethod name=authmethod type=hidden value=on><input id=securIDHardwareTokenPassword name=password type=hidden><div><label class="medium align_left block"name=attUid>UserID <br></label><input class=userId id=securIDhardwareATTUID name=userid onkeyup=securIDhardwareTokenButtonEnabler() onpaste=securIDhardwareTokenButtonEnablerOnPaste(this.id)></div><div class=removeBottomPadding><label class="medium align_left block">SecurID® Token PIN</label><input autocomplete=off id=securIDhardwareTokenPin name=tokenpin onkeyup=securIDhardwareTokenButtonEnabler() onpaste=securIDhardwareTokenButtonEnablerOnPaste(this.id) type=password><input id=securIDhardwareUser_name name=user_name><input id=securIDhardwarePassword_new name=password_new type=password></div><a class="align_right block regular"href=javascript:getFaqLink('book=SecurIDToken'); id=WhatIsThissecurIDTokenPIN> What is this? </a><div class=removeBottomPadding><label class="medium align_left block">SecurID® Token Display</label><input autocomplete=off id=securIDhardwareTokenDisplay name=tokendisplay onkeyup=securIDhardwareTokenButtonEnabler() onpaste=securIDhardwareTokenButtonEnablerOnPaste(this.id) type=password></div><a class="align_right block regular"href=javascript:getFaqLink('book=SecurIDToken'); id=WhatIsThisSecurIDTokenDisplay> What is this? </a><div class="align_left addTopPadding"><label class=container><input class=rememberMe id=securIDhardwareRememberMe onclick=updateRememberMe(this) type=checkbox> <span class=checkmark> </span> Remember me and use SecurID® Token as my default selection</label></div><input class="medium submitButton submitButtonDisabled"onclick="return doSecuridHardTokenOnClick()"value="Log on"disabled id=securIDhardwareTokenSubmit type=submit></form><div class=bottomLinks><span> Need help with your </span><a href=javascript:getFaqLink(book=SecurIDToken);> SecurID® Token </a> ?</div></div><form class="loginForms notFirst"id=secondaryAuthDiv method=post><input id=SecAuthauthmethod name=authmethod type=hidden value=on><input id=SecAuth-login-form-type name=login-form-type type=hidden value=token><input id=SecAuthUserName name=username type=hidden><input id=SecAuthUserId name=userid type=hidden><input id=SecAuthSPQ name=SPQ type=hidden><input id=SecAuthQ3 name=Q3 type=hidden><input id=SecAuthTokenUser name=tokenuser type=hidden><input id=SecAuthPassCode name=passcode type=hidden><input id=SecAuthPassword name=password type=hidden><div><label class="medium align_left block">Secret Question</label><div id=desktopQuestionDropdown><div class="secretQuestionButton noHighlight dropdown"id=dropdown_button_second_level_auth onclick=toggleSelectDiv('secondAuthselector')><span id=secretQuestionText> Choose from security questions... </span><span id=secretQuestionArrow> <img src=resources/images/flat_down_icon_rgb_blu_modified_12x12.png> </span></div><div class="secretQuestionButton noHighlight"id=secondAuthselector><ul class=light></ul></div></div><div class=hidden id=mobileQuestionDropdown><select id=form_dropdown><option hidden selected value=-1>Choose from security questions...</select></div></div><div><label class="medium align_left block">Secret Answer</label><input placeholder="Enter text here..."autocomplete=off id=secondaryAuthAnswer name=secretAnswer onkeyup=secondaryAuthButtonEnabler() onpaste=secondaryAuthButtonEnablerOnPaste() type=password><input id=secondaryAuthUser_name name=user_name><input id=secondaryAuthPassword_new name=password_new type=password></div><div class=align_left><label class=container><input class=rememberMe id=secondaryAuthRememberMe onclick=updateRememberMe(this) type=checkbox> <span class=checkmark> </span> Remember me on this device</label></div><input class="medium submitButton submitButtonDisabled"onclick="return doSecondaryAuthFormOnClick()"disabled id=secondaryAuthSubmit type=submit value=SUBMIT></form><div id=businessdirect style=display:none;><div>OR</div><input onclick="return enableBusinessDirect(false,false)"value="LOG ON WITH YOUR BUSINESSDIRECT USER NAME"class=medium id=businessDirectSubmit type=submit></div><div id=mfaForms><form class=mfaForm id=MobileKeyMFA><div><label class=switch><input id=checkboxSliderMobileMFA onchange=toggleMobileKeyPasscode(true) type=checkbox> <span class="slider round"> </span></label><label class=noHighlight for=checkboxSliderMobileMFA>Use mobile key Token</label><div class=tooltip><img id=mobileKeyTooltipMFA src=resources/images/flat_faq-reverse_icon_rgb_blu_modified_18x18.png><span class=tooltiptext id=mobileKeytooltiptextMFA> <div class=down-arrow></div> To use mobile key token instead, toggle this feature/option on to show passcode input field. </span></div><div class=idSpacing><label class="medium mfaIDLabel">UserID:</label><span class="regular userId mfaUID"id=MobileKeyMFAATTUID name=MobileKeyMFAATTUID> </span></div><br><br><div id=mobileKeyMFAPasscodeDiv><label class="medium align_left block">mobile key Passcode</label><input autocomplete=off id=mobileKeyMFAPasscode name=mobileKeyMFAPasscode onkeyup=mobileKeyMFAButtonEnabler(this.value) onpaste=mobileKeyMFAButtonEnablerOnPaste() type=password><a class="align_right block regular"href=# id=WhatIsThisMobileKeyMFAPasscode> What is this? </a></div><br></div><input onclick="return jspSendPush()"value="Use Mobile Key"class=medium id=MobileKeyMFASubmit type=submit><br><a class=regular href=javascript:getFaqLink('book=MobileKey'); id=WhatIsThisMobileKey> What is this? </a></form><div class=mfaForm id=SecurIDTokenMFA><label class=switch><input id=checkboxSliderSecurIDMFA onchange=hardOrSoft(true) type=checkbox> <span class="slider round"> </span></label><label class=noHighlight for=checkboxSliderSecurIDMFA>Im using a hardware token</label><div class=tooltip><img id=SecurIDMFAFAQ src=resources/images/flat_faq-reverse_icon_rgb_blu_modified_18x18.png><span class=tooltiptext id=securIDtooltiptextMFA> <div class=down-arrow></div> A software token is a piece of software that is contained in your computer or your phone. </span></div><form id=securIDMFAsoftwareToken><div class=idSpacing><label class="medium align_left block mfaIDLabel">UserID:</label><span class="regular userId mfaUID"id=securIDSoftwareTokenMFAATTUID name=securIDSoftwareTokenMFAATTUID> </span></div><div class=removeBottomPadding><label class="medium align_left block">SecurID® Passcode</label><input autocomplete=off id=securIDMFAsoftwareTokenPasscode name=securIDMFAsoftwareTokenPasscode onkeyup=securIDMFAsoftwareTokenButtonEnabler() onpaste=securIDMFAsoftwareTokenOnPaste() type=password></div><a class="align_right block regular"href=# id=WhatIsThissecurIDMFATokenPIN> What is this? </a><input class="medium submitButton submitButtonDisabled"value="Log on"disabled id=securIDMFAsoftwareTokenSubmit type=submit></form><form class=notFirst id=securIDMFAhardwareToken><div class=idSpacing><label class="medium align_left block mfaIDLabel">UserID:</label><span class="regular userId mfaUID"id=securIDHardwareTokenMFAATTUID name=securIDHardwareTokenMFAATTUID> </span></div><div class=removeBottomPadding><label class="medium align_left block">SecurID® Token PIN</label><input autocomplete=off id=securIDMFAhardwareTokenPin name=SecurIDMFATokenPIN onkeyup=securIDMFAhardwareTokenButtonEnabler() onpaste=securIDMFAhardwareTokenButtonEnablerOnPaste(this.id) type=password></div><a class="align_right block regular"href=# id=WhatIsThissecurIDMFATokenPIN> What is this? </a><div class=removeBottomPadding><label class="medium align_left block">SecurID® Token Display</label><input id=securIDMFAhardwareTokenDisplay name=SecurIDMFATokenDisplay onkeyup=securIDMFAhardwareTokenButtonEnabler() onpaste=securIDMFAhardwareTokenButtonEnablerOnPaste(this.id)></div><a class="align_right block regular"href=# id=WhatIsThisSecurIDMFATokenDisplay> What is this? </a><input class="medium submitButton submitButtonDisabled"value="Log on"disabled id=securIDMFAhardwareTokenSubmit type=submit></form><div class=endFormText><span> Need help with your </span><a href=javascript:getFaqLink(book=SecurIDToken);> SecurID® Token </a> ?</div></div><form class=mfaForm id=SAFENetTokenMFA><div class=idSpacing><label class="medium mfaIDLabel">UserID:</label><span class="regular userId mfaUID"id=SAFENetTokenMFAATTUID name=SAFENetTokenMFAATTUID> </span></div><div class=removeBottomPadding><label class="medium align_left block">SAFENet® Passcode</label><input autocomplete=off id=SAFENetMFAPasscode name=SAFENetPasscode onkeyup=safenetMFAButtonEnabler() onpaste=safenetMFAButtonEnablerOnPaste() type=password></div><a class="align_right block regular"href=# id=WhatIsThisSAFENetMFAToken> What is this? </a><input class="medium submitButton submitButtonDisabled"value="Log on"disabled id=SAFENetMFASubmit type=submit><br><br><div class="newHere medium"><span> Need help with your </span><a href=javascript:getFaqLink(book=SAFENetToken);> SAFENet® Token </a> ?</div></form><form class=mfaForm id=MTIPSTokenMFA><div class=idSpacing><label class="medium align_left block mfaIDLabel">UserID:</label><span class="regular userId mfaUID"id=MTIPSTokenMFAATTUID name=MTIPSTokenMFAATTUID> </span></div><div class=removeBottomPadding><label class="medium align_left block">MTIPS® Passcode MTIPS® Passcode</label><input id=MTIPSTokenMFABox name=MTIPSTokenMFABox onkeyup=mtipsMFAButtonEnabler() onpaste=mtipsMFAButtonEnablerOnPaste()></div><a class="align_right block"href=# id=WhatIsThisMTIPSTokenMFA> What is this? </a><input class="medium submitButton submitButtonDisabled"value="Log on"disabled id=MTIPSMFASubmit type=submit><br><br><div class="newHere medium"><span> Need help with your </span><a href=javascript:getFaqLink(book=MTIPSToken);> MTIPS® Passcode </a> ?</div></form></div><div class=verification id=verification><div class=description id=verificationDescription>Just this one time we need to verify your identity to use mobile key.</div><div class=description id=GlobalLoginPasswordVerificationDescription>Just this one time we need to verify your identity to use mobile key.</div><div class=description id=SecurIDTokenVerificationDescription>Just this one time we need to verify your identity to use mobile key.</div><div class=dropdown id=verification_desktop_dropdown style=display:none><div id=verification_dropdown_button onclick=toggleSelectDiv('verification_selector')><span class=medium id=verification_dropdown_text> Logon Options ▾ </span><div id=verification_selector><ul><li onclick=changeVerificationForm('GlobalLoginPassword')><div>Global Logon password</div></ul></div></div></div><div class=VerificationForm id=GLOVerification></div><div class=VerificationForm id=GlobalLoginPasswordVerification><form id=GlobalLoginPasswordVerification1 method=POST><div><label class="medium align_left block">ATTUID</label><input class="regular userId"disabled id=GLOVerificationATTUID name=username></div><div class=removeBottomPadding><label class="medium align_left block">Global Logon Password</label><input autocomplete=off id=GloPasswordVerification maxlength=46 name=password onkeyup=glopasswordVerificationButtonEnabler() onpaste=glopasswordVerificationButtonEnablerOnPaste(this.id) type=password> SecurID® Passcode <input autocomplete=off id=securIDMFAsoftwareTokenPasscode name=securIDMFAsoftwareTokenPasscode onkeyup=securIDMFAsoftwareTokenButtonEnabler() onpaste=securIDMFAsoftwareTokenOnPaste() type=password></div><a class="medium align_right block"href=# id=reset_link_verification> Forgot Password? </a><button class=cancel-MK-verification onclick=changeForm('GlobalLoginPassword')>CANCEL</button><input class="medium submitButton submitButtonDisabled"onclick="return verifyMKUser(this.form, 'Glo');"value="USE MOBILE KEY"disabled id=GloPasswordSubmitVerification type=submit><br><br><div class="newHere medium"id=gloLinkVerification><span> New here? </span><a href=#> Register a password </a></div></form></div><div class=VerificationForm id=SecurIDTokenVerification><label class=switch><input id=checkboxSliderSecurIDVerification onchange=hardOrSoftVerification() type=checkbox> <span class="slider round"> </span></label><label class=noHighlight for=checkboxSliderSecurIDVerification>Im using a hardware token</label><div class=tooltip><img id=SecurIDVerificationFAQ src=resources/images/flat_faq-reverse_icon_rgb_blu_modified_18x18.png><span class=tooltiptext id=securIDtooltiptextVerification> <div class=down-arrow></div> A software token is a piece of software that is contained in your computer or your phone. </span></div><form id=securIDVerificationsoftwareToken><div class=idSpacing><label class="medium align_left block VerificationIDLabel">ATTUID</label><input class="regular userId"disabled id=securIDSoftwareTokenVerificationATTUID name=securIDSoftwareTokenVerificationATTUID></div><div class=removeBottomPadding><label class="medium align_left block">SecurID® passcode</label><input id=securIDVerificationsoftwareTokenPasscode name=securIDVerificationsoftwareTokenPasscode type=password></div><a class="align_right block regular"href=# id=WhatIsThissecurIDVerificationTokenPIN> What is this? </a><button class=cancel-MK-verification onclick=changeForm('GlobalLoginPassword')>CANCEL</button><input class="medium submitButton submitButtonDisabled"value="USE MOBILE KEY"disabled id=securIDVerificationsoftwareTokenSubmit type=submit></form><form class=notFirst id=securIDVerificationhardwareToken><div class=idSpacing><label class="medium align_left block VerificationIDLabel">ATTUID</label><input class="regular userId"disabled id=securIDHardwareTokenVerificationATTUID name=securIDHardwareTokenVerificationATTUID></div><div class=removeBottomPadding><label class="medium align_left block">SecurID® Token PIN</label><input id=securIDVerificationhardwareTokenPin name=SecurIDVerificationTokenPIN type=password></div><a class="align_right block regular"href=# id=WhatIsThissecurIDVerificationTokenPIN> What is this? </a><div class=removeBottomPadding><label class="medium align_left block">SecurID® Token Display</label><input id=securIDVerificationhardwareTokenDisplay name=SecurIDVerificationTokenDisplay></div><a class="align_right block regular"href=# id=WhatIsThisSecurIDVerificationTokenDisplay> What is this? </a><button class=cancel-MK-verification onclick=changeForm('GlobalLoginPassword')>CANCEL</button><input class="medium submitButton submitButtonDisabled"value="USE MOBILE KEY"disabled id=securIDVerificationhardwareTokenSubmit type=submit></form><div class=endFormText><span> Need help with your </span><a href=#> SecurID® Token </a></div></div></div></div><div id=issues><div>Having issues? <a class=opt_out_link href=https://oidc.idp.elogin.att.com/lrr/attLRR/LrrController?TAM_OP=token_login&USERNAME=unauthenticated&ERROR_CODE=0x00000000&ERROR_TEXT=HPDBA0521I%20%20%20Successful%20completion&METHOD=GET&URL=%2Fmga%2Fsps%2Foauth%2Foauth20%2Fauthorize%3Fnonce%3DY6mwo6Y7uV%26redirect_uri%3Dhttps%253A%252F%252Fwww.e-access.att.com%252Fisam%252Fsps%252Foidc%252Frp%252FATT-RP%252Fredirect%252FATT-Password%26response_mode%3Dform_post%26scope%3Dopenid%26Target%3Dhttps%253A%252F%252Fwww.e-access.att.com%252Fhronestop%252F%26response_type%3Did_token%26state%3DFWjRC3Q9TU%26client_id%3DPassword-ATT&HOSTNAME=oidc.idp.elogin.att.com&AUTHNLEVEL=&FAILREASON=&PROTOCOL=https&OLDSESSION=&EXPIRE_SECS=0 onclick=setPageReqCookie();> Return to legacy Global Logon </a> .</div></div></div><div id=footer><div class=medium>Need help with your <a href=javascript:getFaqLink();> FAQs </a><br></div><br></div><div style="display: none;"id=hiddenErrors><div id=loginErrorHolder><div class="notification alert"id=loginError><div></div><div>The ID and password you entered don't match. Please try again or choose another log on option.</div></div></div><div id=pushDeniedHolder><div class="notification alert"id=pushDeniedError><div></div><div>Your push has been denied. Send push again or choose another log on option above.</div></div></div><div id=passwordExpirationHolder><div class="notification alert"id=passwordExpirationError><div></div><div>Your Global Logon Password will expire in <span id=numdays> 13 </span> days. <a href=#> Update now </a></div></div></div><div id=generalErrorHolder><div class="notification alert"id=generalError><div></div><div id=errorMessage></div></div></div><div id=generalInfoHolder><div class="notification informational"id=generalErrorBox><div></div><div id=infoMessage></div></div></div></div><script>var strWinAuthErrorNoError = "0";
      var strWinAuthErrorOccured = "1";
      var strWinAuthErrorCancelled = "2";
      var strWinAuthErrorWindowsAuthFailed = "3";
      var strWinAuthErrorInvalidDomain = "4";
      var strWinAuthErrorCantFindATTUID = "5";
      var strWinAuthErrorIDNotInCSP = "6";
      var strWinAuthErrorInvalidCSPDomain = "7";
      var strWinAuthErrorPwdExpired = "8";
      var strWinAuthErrorBlockedAutoAuth = "9";
      var strWinAuthErrorCantAutoAuth = "10";

      // MobileKey error codes from attssole cookie
      var strMobileKeyErrorHlte26NotFound = "21";
      var strMobileKeyErrorRememberMeNotFound = "22";
      var strMobileKeyErrorExcessiveFailures = "23";
      var strMobileKeyErrorLoginWithAnotherMethod = "24";
      var strMobileKeyErrorNoDevicesRegistered = "25";
      var strMobileKeyErrorUnableToInitiate = "26";
      var strMobileKeyErrorNoSessionId = "27";
      var strMobileKeyErrorStatusDenied = "28";
      var strMobileKeyErrorInvalidAction = "29";
      var strMobileKeyErrorInvalidValues = "30";

      //    var gRequestCanceled = false; // global flag for cancel
      //    var gRequestTimedOut = false; // global flag for timeout
      //    var gMKStartTime; //startTime of request
      //    var gMkMaxTimeout;   //handle for maxTimeout timer
      //    var gMkInterval; //handle for interval timer
      var strTokenOnly ="";
      var strLogonOption ="";
      var strRememberMe ="";
      var strUserId ="";
      var strPwdPlusStepEnabled="";
      var SQ1 = "";
      var SQ2 = "";
      var strTokenStepEnabled ="";
      var strWinAuthAlwaysEnabled ="";
      var strShowBd ="";
      var strShowBanner ="True";
      var strExternalRequest = "ON";
      var strShowCricket = "";
      var strHideATT = "";
      var strAttOnly = "";
      var statusCookieName = "status";
      //    var mkStateParameters = "";
      //    var attsoleCookieName= "attssole";
      var hlte26CookieName= "hlte26";
      var strMobileKeyEnabled = false;
      var strMobileKeyPasscodeEnabled = false;
      
      if ( isMobileDevice () )
      {
        strMobileKeyEnabled=true
        //
          strMobileKeyPasscodeEnabled = true;
        //
      }
      else
      {
        //
      }



      //////////////////////////////////////////////////////////////////////////////
      //////////////////////////////////////////////////////////////////////////////
      //////////////////////////////////////////////////////////////////////////////
      //////////////////////////////////////////////////////////////////////////////
      //TODO  move all spring:messages to parameter of function call from this JSP
      //DO NOT ADD MORE MESSAGES HERE  add them as a parameter of the function called in this JSP
      var javascriptMessages = {
                                 "question.favorite.designer":       "Who is your favorite designer?",
                                 "question.maiden.name":             "What is your mothers maiden name?",
                                 "question.favorite.pet":            "What is your favorite pets name?",
                                 "question.graduate.from":           "What high school did you graduate from?",
                                 "message.mk.canceled":              "Youve cancelled your request. Resend or choose another logon option.",
                                 "message.mk.timed.out":             "Mobile Key request has timed out. Retry or choose another logon option.",
                                 "message.mk.denied":                "Mobile Key request Denied. Retry or choose another logon option.",
                                 "message.secret.question":          "Secret Question",
                                 "message.update.profile.with.secret.question": "You must fill out your security profile and set up a secret question and answer before you can complete this request.",
                                 "message.resend":                   "Resend",
                                 "message.retry":                    "Retry",
                                 "mk.reject":                        "Your request has been denied. Send mobile key push again or choose another option.",
                                 "notice.new.look":                  "Global Logon has a new look! We hope you enjoy the modern, mobile-friendly, and secure log on experience. {0}",
                                 "tooltip.mobilekey.request":        "To use mobile key request, toggle this feature/option off.",
                                 "tooltip.mobilekey.passcode":       "To use mobile key passcode instead, toggle this feature/option on to show passcode input field.",
                                 "tooltip.hardware.token":           "A hardware token is a physical device used to generate a security passcode.",
                                 "tooltip.software.token":           "A software token is a piece of software that is contained in your computer or your phone.",
                                 "message.error.encountered":        "Error encountered.",
                                 "message.retry.or.choose.option":   "Retry or choose another logon option.",
                                 "tooltip.mk.request.feature":       "To use mobile key request, toggle this feature/option off.",
                                 "tooltip.mk.passcode.feature":      "To use mobile key passcode instead, toggle this feature/option on to show passcode input field.",
                                 "message.log.on":                   "Log on",
                                 "message.use.mobilekey":            "USE MOBILE KEY"
                               };
      //TODO  move all spring:messages to parameter of function call from this JSP
      //DO NOT ADD MORE MESSAGES HERE  add them as a parameter of the function called in this JSP
      //////////////////////////////////////////////////////////////////////////////
      //////////////////////////////////////////////////////////////////////////////
      //////////////////////////////////////////////////////////////////////////////
      //////////////////////////////////////////////////////////////////////////////
      initJavascriptMessages ( javascriptMessages );
      //////////////////////////////////////////////////////////////////////////////
      //////////////////////////////////////////////////////////////////////////////


      if (strShowBd === "True" && strTokenStepEnabled == '' && strPwdPlusStepEnabled == '') {
        document.getElementById("businessdirect").style.display = "block";
      }
		
      if(strLogonOption != null && strLogonOption != '' && strLogonOption != "PWD")
    	  {
    	  if (strLogonOption === 'MTIPS') {
              changeForm('MTIPSToken');
    	  }else if (strLogonOption === 'SAFENet') {
              changeForm('SAFENetToken');
    	  }else if (strLogonOption === 'MTIPS') {
              changeForm('MTIPSToken');
    	  }else if (strLogonOption === 'securIDsoftwareToken' || strLogonOption === 'securIDhardware') {
              changeForm('SecurIDToken');
    	  }
    	  }
      if (strShowBanner === "True")
      {
        var bannerMessage;

        if (strExternalRequest != null && strExternalRequest != '') {
          bannerMessage = "Global Logon has a new look! We hope you enjoy the modern, mobile-friendly, and secure log on experience.  ";
        } else if (strShowCricket === true) {
          bannerMessage = "Global Logon has a new look! We hope you enjoy the modern, mobile-friendly, and secure log on experience.  ";
        } else {
          // //NOT A COMMENT
          bannerMessage = "Global Logon has a new look! We hope you enjoy the modern, mobile-friendly, and secure log on experience. <a style=color: #009fdb; href=https://tspace.web.att.com/video/media/t/1_ceqt28ur target=_blank>Learn More</a>";
        }
        displayPresetBannerMessage( bannerMessage );
      }

      if (strShowCricket === "True") {
        displayCricketLogo();
      }

      if (strHideATT === "True") {
        document.getElementById("ATTLogo").style.display = "none";
      }

      if (strAttOnly != "True" && strExternalRequest == "ON") {
        document.getElementById("reset_link").href = "https://oidc.idp.elogin.att.com/usersvcs/accountmgt/acctmgtMenu/";
        document.getElementById("register_pwd_link").href = "https://oidc.idp.elogin.att.com/usersvcs/accountmgt/acctmgtMenu/";
      }

      if (strAttOnly == null || strAttOnly == '' && strExternalRequest != null && strExternalRequest != '') {
        setLink("Need&nbsp;help?&nbsp;<a href='/iamportal-prod/iampwdmgmt/home#/home'>Password&nbsp;help&nbsp;for&nbsp;AT&T&nbsp;Employees/Contractors</a><br>");
      }

      if (strWinAuthAlwaysEnabled === "true" && strTokenOnly == '' && strTokenStepEnabled == '' && strPwdPlusStepEnabled == '') {
        var d = new Date();
        d.setTime(d.getTime() + (1 * 24 * 60 * 60 * 1000));
        var expires = d.toUTCString();
        setCookie("cspAReqLnk", strReqLnkCookieForWinAuth, expires, "https://oidc.idp.elogin.att.com/", ".att.com");
        setCSPEnvURL();
        window.location = strWinAuthURL + "/auth/cspwinauth.aspx?UseAuthMech=1&TryAlways=1";
      }

      if (strTokenStepEnabled != null && strTokenStepEnabled !== '' || strTokenOnly != null && strTokenOnly !== '') {
        var selectobject = document.getElementById("selector")
            .getElementsByTagName("li");
        for (var i = 0; i < selectobject.length; i++) {
          if (selectobject[i].innerHTML === 'GlobalLoginPassword'
              || selectobject[i].innerHTML === 'WindowsAccount')
            selectobject.removeChild(i);
        }

      }

      if ( strRememberMe == "remember" )
      {
        toggleRememberMe ( true );
        setRememberMe("");

        //
        //

        //
          //
        //
      }


      if (strTokenOnly !== null && strTokenOnly !== '' && strLogonOption !== null) {
        document.getElementById('GlobalLoginPassword').style.display = "none";
        document.getElementById('GlobalLoginPassword'.concat("Description")).style.display = "none";
        if (strLogonOption === 'MTIPS') {
          document.getElementById('MTIPSToken').style.display = "block";
          document.getElementById('MTIPSToken'.concat("Description")).style.display = "block";
        } else if (strLogonOption === 'SAFENet') {
          document.getElementById('SAFENetToken').style.display = "block";
          document.getElementById('SAFENetToken'.concat("Description")).style.display = "block"
        }
        else if (strLogonOption === 'securIDsoftwareToken' || strLogonOption === 'securIDhardware') {
            document.getElementById('SecurIDToken').style.display = "block";
            document.getElementById('SecurIDToken'.concat("Description")).style.display = "block";
        }
      } else {
        if ( strRememberMe == "remember" )
        {
          if (strLogonOption === 'MTIPS') {
            changeForm('MTIPSToken');
            //document.getElementById('GlobalLoginPassword').style.display = "none";
            //document.getElementById('GlobalLoginPassword'.concat("Description")).style.display = "none";
            //document.getElementById('MTIPSToken').style.display = "block";
            //document.getElementById('MTIPSToken'.concat("Description")).style.display = "block";
          } else if (strLogonOption === 'SAFENet') {
            changeForm('SAFENetToken');
            //document.getElementById('GlobalLoginPassword').style.display = "none";
            //document.getElementById('GlobalLoginPassword'.concat("Description")).style.display = "none";
            //document.getElementById('SAFENetToken').style.display = "block";
            //document.getElementById('SAFENetToken'.concat("Description")).style.display = "block";
          } else if (strLogonOption === 'securIDsoftwareToken') {
            changeForm('SecurIDToken');
            //document.getElementById('GlobalLoginPassword').style.display = "none";
            //document.getElementById('GlobalLoginPassword'.concat("Description")).style.display = "none";
            //document.getElementById('SecurIDToken').style.display = "block";
            //document.getElementById('SecurIDToken'.concat("Description")).style.display = "block";
          } else if (strLogonOption === 'securIDhardware') {
            changeForm('SecurIDToken');
            //document.getElementById('GlobalLoginPassword').style.display = "none";
            //document.getElementById('GlobalLoginPassword'.concat("Description")).style.display = "none";
            //document.getElementById('SecurIDToken').style.display = "block";
            //document.getElementById('SecurIDToken'.concat("Description")).style.display = "block";
          } else if (strLogonOption === 'PWD') {
            changeForm('WindowsAccount');
            //document.getElementById('GlobalLoginPassword').style.display = "none";
            //document.getElementById('GlobalLoginPassword'.concat("Description")).style.display = "none";
            //document.getElementById('WindowsAccount').style.display = "block";
            //document.getElementById('WindowsAccount'.concat("Description")).style.display = "block";
          }
          else if ( strMobileKeyEnabled && strLogonOption  === 'MobileKey' )
          {
            var hlte26Value = getCookie ( hlte26CookieName );
            if ( 'cookie' == 'on' || hlte26Value != null )
            {
              mobileKeyChangeForm ( 'MobileKey' );
            }
          }
          else if ( strMobileKeyEnabled && strLogonOption  === 'MobileKeyPassCode' )
          {
            var hlte26Value = getCookie ( hlte26CookieName );
            if ( 'cookie' == 'on' || hlte26Value != null )
            {
              mobileKeyChangeForm ( 'MobileKey' );
              document.getElementById('checkboxSliderMobile').checked = true;
              toggleMobileKeyPasscode(false);
            }
          }
        }
      }

      if (strPwdPlusStepEnabled !== null && strPwdPlusStepEnabled !== ''
          && strPwdPlusStepEnabled === "true") {
        var secretQuestionsArr = [];

        if ((SQ1 || SQ2) && (SQ1 != "NOT_FOUND" || SQ2 != "NOT_FOUND")) {
          if (SQ1 && SQ1 != "NOT_FOUND") {
            SQ1 = decodeURIComponent(SQ1);
            SQ1 = SQ1.replace("&#039;", "'");
            SQ1 = SQ1.replace("amp;", "");
            secretQuestionsArr.push(SQ1);
          }
          if (SQ2 && SQ2 != "NOT_FOUND") {
            SQ2 = decodeURIComponent(SQ2);
            SQ2 = SQ2.replace("&#039;", "'");
            SQ2 = SQ2.replace("amp;", "");
            secretQuestionsArr.push(SQ2);
          }
        }
        displaySecondaryAuth(strUserId, secretQuestionsArr);
      }

      if (strTokenStepEnabled !== null && strTokenStepEnabled !== '' && strTokenStepEnabled === "true")
      {
        switchTokenStepEnabled ( strLogonOption );
      }

      if (strExternalRequest != null && strExternalRequest != '') {
        setCookie("faqMode", "INTERNET", expires, "https://oidc.idp.elogin.att.com/", ".att.com");
      } else if (strShowCricket === true) {
        setCookie("faqMode", "CRICKET", expires, "https://oidc.idp.elogin.att.com/", ".att.com");
      } else {
        setCookie("faqMode", "INTRANET", expires, "https://oidc.idp.elogin.att.com/", ".att.com");
      }

      //enableRememeberMe(strLogonOption);

      //////////////////////////////////////////////////////////////////////////////
      //ONLOAD start
      //////////////////////////////////////////////////////////////////////////////
      window.onload = function() {

      var languages = {
          "en" : {
                        "isolang": "en",
                        "displayText":"English",
                        "select": [ {
                                       "text":"English",
                                       "displayText":"English",
                                       "isolang" : "en"
                                     },
                                     {
                                       "text":"Spanish",
                                       "displayText" : "Spanish",
                                       "isolang" : "es"
                                     }
                                  ]
                      },
          "es" : {
                        "isolang": "es",
                        "displayText" :"Espa&ntilde;ol",
                        "select": [ {
                                       "text":"English",
                                       "displayText":"Ingl&eacute;s",
                                       "isolang" : "en"
                                     },
                                     {
                                       "text":"Spanish",
                                       "displayText":"Espa&ntilde;ol",
                                       "isolang" : "es"
                                     }
                                  ]
                      }
      };


      initLanguage ( "en",  languages );

      //

      //

      //

      //

      // enable login button if password & userid are filled in
      glopasswordButtonEnabler()

      var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
      if ( isChrome )
      {
        $('form').attr('autocomplete','off');
        //$('form').attr('autocomplete','false');
      }
      
      if ( strMobileKeyEnabled )
      {
        if ( isMobileDevice () )
        {
          var elems = document.getElementsByClassName("mobileDevice");
          for (var i = 0; i < elems.length; i+=1){
              elems[i].style.display = "block";
          }
        }
        else
        {
          var elems = document.getElementsByClassName("mobileDeskTop");
          for (var i = 0; i < elems.length; i+=1){
              elems[i].style.display = "block";
          }
        }
        
        if ( strMobileKeyPasscodeEnabled )
        {
          var elems = document.getElementsByClassName("mobileKeyPasscode");
          for (var i = 0; i < elems.length; i+=1){
              elems[i].style.display = "block";
          }
        }
      }
  
      if ( g_SessionCookieHandler.isBDUserIdSet() )
      {
        setBDUserId (g_SessionCookieHandler.isBDUserIdSet() );
      }

      }
      //////////////////////////////////////////////////////////////////////////////
      //ONLOAD end
      //////////////////////////////////////////////////////////////////////////////

      var g_MobileKeyHandler = null;
      function initMobileKeyHandler()
      {
        var mkHostName;
        var dynamicHostname = "oidc.idp.elogin.att.com";
        var encodedURI = encodeURIComponent( "https://oidc.idp.elogin.att.com/mga/sps/oauth/oauth20/authorize?nonce=Y6mwo6Y7uV&amp;redirect_uri=https%3A%2F%2Fwww.e-access.att.com%2Fisam%2Fsps%2Foidc%2Frp%2FATT-RP%2Fredirect%2FATT-Password&amp;response_mode=form_post&amp;scope=openid&amp;Target=https%3A%2F%2Fwww.e-access.att.com%2Fhronestop%2F&amp;response_type=id_token&amp;state=FWjRC3Q9TU&amp;client_id=Password-ATT" );
        // This has to work for all environments
        if (dynamicHostname == "oidc.dev3.elogin.att.com") {
          mkHostName = "dev3att01.dev.att.com";
        } else if (dynamicHostname == "oidc.st.elogin.att.com") {
          mkHostName = "statt.e-access.test.att.com";
        } else if (dynamicHostname == "oidc.stage.elogin.att.com") {
          mkHostName = "webtest.stage.att.com";
        } else if (dynamicHostname == "oidc.idp.elogin.att.com") {
          mkHostName = "www.e-access.att.com";
        } else {
          mkHostName = "oidc.idp.elogin.att.com";
        }

        var userId = document.getElementById("MobileKeyDeskTopATTUID1").value;
        var mobileKeyFormId = 'MobileKey';
        var statusFormId = 'mkStatusForm';
        var maxPollingTimeMS = parseInt ( "60000" );
        var pollingIntervalMS = parseInt ( "200" );
        //var nativeURL = "https://" + mkHostName + "/lrrnew/attLRR/mklauncher?redirect_url=" + encodedURI;
        var nativeURL = "https://" + mkHostName + "/lrr/attLRR/mklauncher?redirect_url=" + encodedURI;
        
        var messages = {
                         'system.error' :  "Your request can not be processed at this time.<br>Please try again later."
                       };

        document.getElementById( "MobileKeyATTUID").value = userId;
        document.getElementById( "MobileKeyUserName").value = userId;
        return  new MobileKeyHandler( isMobileDevice(), userId, mobileKeyFormId,  statusFormId, maxPollingTimeMS, pollingIntervalMS, nativeURL, messages );
      }

      function jspSendPush()
      {
        var userId = document.getElementById("MobileKeyDeskTopATTUID1").value;
        if ( sendBDUserId() )
        {
          userId += "bd-" + userId;
        }
        document.getElementById("MobileKeyUserName").value = userId
        document.getElementById("MobileKeyTokenUser").value = userId;

        if ( !isMobileDevice() && !document.getElementById("checkboxSliderMobile").checked)
        {
          //
            //
              //
                document.getElementById("GLOVerificationATTUID").value =  document.getElementById("MobileKeyDeskTopATTUID1").value;
                changeForm ('verification');
                changeVerificationForm ( 'GlobalLoginPassword');
                return false;
              //
            //
          //
        }
        document.getElementById("mobileUID").value =  document.getElementById("MobileKeyDeskTopATTUID1").value;


      g_MobileKeyHandler = initMobileKeyHandler();
      return g_MobileKeyHandler.sendPush();
      }

      function jspCancelMobileKey()
      {
        if ( g_MobileKeyHandler != null )
        {
          g_MobileKeyHandler.cancelMobileKey();
        }
      }

      function verifyMKUser ( form, authType )
      {

        var userId = form.elements["username"].value;
        var secretValue = form.elements["password"].value;

        messages = {
                     'system.error' :  "Your request can not be processed at this time.<br>Please try again later."
                   };

        g_MobileKeyHandler = initMobileKeyHandler();
        mobileKeyVerifier = new  MobileKeyVerifier ( authType, userId, secretValue, g_MobileKeyHandler, messages )
        mobileKeyVerifier.validateUser();

        return false;
      }

      function getErrorMessage(id, text )
      {
        switch (id.toLowerCase() )
        {
        //case strWinAuthErrorNoError:
          //strWinAuthError = null;
          //break;
        case strWinAuthErrorOccured:
          return "Unable to access your Windows account.  Please enter your ATTUID/password below.";
          break;
        case strWinAuthErrorCancelled:
          return "Your log on with your Windows domain account was cancelled.";
          break;
        case strWinAuthErrorWindowsAuthFailed:
          return "Unable to authenticate with your Windows account.  Please enter your ATTUID/password below.";
          break;
        case strWinAuthErrorInvalidDomain:
          return "Unable to access your Windows domain/account.  Please enter your ATTUID/password below.";
          break;
        case strWinAuthErrorCantFindATTUID:
          return "Your Windows account is not linked to an ATTUID.  Please enter your ATTUID/password below.";
          break;
        case strWinAuthErrorIDNotInCSP:
          return "Your Windows account is not linked to a known ATTUID.  Please enter your ATTUID/password below.";
          break;
        case strWinAuthErrorInvalidCSPDomain:
          return "Your Windows account is not linked to an active ATTUID.  Please enter your ATTUID/password below.";
          break;
        case strWinAuthErrorPwdExpired:
          return "Your Global Logon password needs to be changed.  Windows auto-auth is temporarily suspended.  Please enter your ATTUID/password below, after which you will be asked to change your password.";
          break;
        case strWinAuthErrorBlockedAutoAuth:
          return "Windows auto-authentication is disabled for this ATTUID.  To enable, click <a href=\"/iamportal-prod/iampwdmgmt/home#/home\">here</a>. Please use your ATTUID/password to log on.  ";
          break;
        case strWinAuthErrorCantAutoAuth:
          return "System error.  Unable to access your Windows account.  Please enter your ATTUID/password.";
          break;
        case strMobileKeyErrorHlte26NotFound:
          return "hlte26 cookie not found";
          break;
        case strMobileKeyErrorRememberMeNotFound:
          return "rememberMe cookie not found";
          break;
        case strMobileKeyErrorExcessiveFailures:
          return "mobile key disabled due to excessive failures";
          break;
        case strMobileKeyErrorLoginWithAnotherMethod:
          return "Unable to process mobile key request. Login with another method";
          break;
        case strMobileKeyErrorNoDevicesRegistered:
          return "It doesnt look like you have a compatible version of mobile key installed on this device.<br>Please choose another logon option.";
          break;
        case strMobileKeyErrorUnableToInitiate:
          return "Unable to initiate mobile key notification";
          break;
        case strMobileKeyErrorNoSessionId:
          return "No Session ID";
          break;
        case strMobileKeyErrorStatusDenied:
            var status = getCookie(statusCookieName);
            if (status == "denied")
            {
              deleteCookie(statusCookieName);
            }
            return "Your request has been denied. Send mobile key push again or choose another option.";
          break;
        case strMobileKeyErrorInvalidAction:
          return "Invalid action received";
          break;
        case strMobileKeyErrorInvalidValues:
          return "Invalid values received";
          break;
        case "0x132121f4":  //DROP THROUGH
        case "0x132120c8":
          return "Login incorrect. Please try again. (" + id + ")";
          break;
        default:
          if ( text == null || text == "" )
          {
            return "Login incorrect. Please try again. (" + id + ")";
          }
          else
          {
            return text + " (" + id + ")"
          }
          break;
        }
      }


      function doGlobalLoginPasswordOnclick()
      {
        document.getElementById ("GlobalLoginPassword_authmethod" ).value =  document.getElementById ("authmethod" ).value;
        document.getElementById ("GlobalLoginPassword_login-form-type" ).value =  document.getElementById ("login-form-type" ).value;
        document.getElementById ("GlobalLoginPassword_winauthtype" ).value =  document.getElementById ("winauthtype" ).value;
        document.getElementById ("GLOUserName" ).value =  document.getElementById ("username" ).value;
        document.getElementById ("GloATTUID" ).value =  document.getElementById ("userid" ).value;
        document.getElementById ("GloPassword" ).value =  document.getElementById ("password" ).value;
        document.getElementById ("GloUser_name" ).value =  document.getElementById ("user_name" ).value;
        document.getElementById ("GloPassword_new" ).value =  document.getElementById ("password_new" ).value;
        document.getElementById ("GloRememberMe").value =  document.getElementById ("chkRememberMe" ).value;
        document.getElementById ("GloPasswordSubmit").removeAttribute("disabled");;
        document.getElementById ("GloPasswordSubmit").click();
      }</script><div class="modal fade"id=MKErrorModalId role=dialog style=display:none;><div class="modal-dialog modal-lg"><div class=modal-content><div class=modal-header><h4 class=modal-title>Windows Authentication Setting</h4></div><div class=modal-body id=MKErrorModalBodyId><p>Please try again later.</div><div class=modal-footer><button class="btn btn-primary"data-dismiss=modal onclick=jQuery.unblockUI(); type=button>OK</button></div></div></div></div>