JavaScript is required. This web browser does not support JavaScript or JavaScript in this web browser is not enabled.
To find out if your web browser supports JavaScript or to enable JavaScript, see web browser help.
Sign in with other options"; } function BuildGoBackRedirect(){ var queryString = window.location.href.split("&"); var paramsToAdd = []; for (let i = 0; i < queryString.length; i++) { var param = queryString[i]; if (!DoesContainString(param, "RedirectToIdentityProvider")) { paramsToAdd.push(param) } } return paramsToAdd.join("&"); } function BuildCis2FormActionFromUrl(){ var queryString = ExtractQueryStringFromUrl(); var params = queryString.split("&"); var paramsToAdd = []; for (let i = 0; i < params.length; i++) { var param = params[i]; if (!DoesContainString(param, "RedirectToIdentityProvider")) { paramsToAdd.push(param) } } var updatedQueryString = paramsToAdd.join("&"); return "/adfs/ls/?" + updatedQueryString; } function ExtractQueryStringFromUrl(){ return window.location.href.substring(window.location.href.indexOf('?') + 1); } // Add Login option functions function AddCIS2LoginOption(htmlElement){ var cis2Login = document.createElement('div'); htmlElement.appendChild(cis2Login); cis2Login.outerHTML = "\ \ Sign in with another account \ \ \ \ NHS Smartcard\ \ \ \ \ \ \ Other organizational account\ \ \ \ If your organization has established a trust relationship with NHS, enter your organizational account below.\ \ \ \ \ \ Email\ \ \ \ \ \ \ \ \ "; var cis2LoginDiv = document.getElementById("cis2Login") AppendSmartcardRegistrationMessage(cis2LoginDiv); // apply styling to cis2LoginDiv cis2LoginDiv.classList.add('loginBorder'); cis2LoginDiv.classList.add('groupMargin'); } function AddADLoginOption(htmlElement){ var ADLoginArea = document.createElement("div"); let windowQueryString = window.location.href.substring(window.location.href.indexOf('?') + 1); let updatedQueryString = "RedirectToIdentityProvider=AD+AUTHORITY&" + windowQueryString; var formAction = "/adfs/ls/?" + updatedQueryString; htmlElement.insertBefore(ADLoginArea, htmlElement.children[0]); ADLoginArea.outerHTML ="\ \n\ Sign in with your NHSmail account\ \ \n \ \n \n \ \n\n \ \ \n \ \n User Account\n \n \ \n\n \ \n Password\n \n \ \n \ \n \n Keep me signed in\n \ \n \ \n Sign in\n \ \n \ \ \n \n \ \ \n\n \ \ \n \ \ \n \x3Cscript type='text/javascript'>\n function SelectOption(option) {\n var w = document.getElementById('waitingWheelDiv');\n if(w) w.style.display = 'inline';\n var i = document.getElementById('optionSelection');\n i.value = option;\n document.forms['options'].submit();\n return false;\n }\n \x3C/script>\n \n \n \ \ \ \ \n \x3C!-- NOTE: This style portion is identical to cookie pull page, they are not in shared css file because of legacy dependancies for custom themes-->\n \x3C!-- CSS for small 'waiting' wheel -->\n \