function LoginF5(){var self=this;
}LoginF5.prototype._loadStep=function(action,params,module){var self=this;
captcha.hide();
var url=inet.generateUrl(action,{},module);
var template=inet.renderTemplate(url,params);
if(template){$("#twoFactorAuth").html(template);
}};
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");
};
}function SessionExpired_CustomizedScreenGet(){return'
Session Expired/Timeout
Due to user inactivity, your session expired. Click the following link to start a new session.
';
}var globalRestartOnSubmit=false;
function sessionTimedOut(){if(("undefined"!=typeof(window.external))&&(undefined!=window.external.WebLogonResetSession)&&(null!=globalInputs)){globalRestartOnSubmit=true;
}else{showSplashLayer("MessageDIV",SessionExpired_CustomizedScreenGet());
}}if(self!=top){top.location=self.location;
}window.onerror=function(){return function(){return;
};
};
var doNotAutoSubmit=false;
var globalFormId="auth_form";
var globalTableId="credentials_table";
var globalSubmitTrId="submit_row";
var globalSavePasswordCheckbox=null;
var globalInputs=null;
var softTokenInput=null;
var softTokenFieldId="";
var softTokenState="";
var softTokenNewPIN="";
if(!softTokenState){softTokenState="SECURID_AUTH_STATE_START";
}function getSoftTokenInput(){var form=document.getElementById(globalFormId);
if(form==null){return null;
}var inputs=form.getElementsByTagName("input");
for(var i=0;
i=2&&inputs[0].name=="_F5_challenge"&&inputs[0].type=="password"){challengeMode=inputs[0];
}var hiddenInput=document.createElement("input");
hiddenInput.setAttribute("type","hidden");
hiddenInput.setAttribute("name","softTokenError");
form.appendChild(hiddenInput);
try{window.external.WebLogonSoftTokenState=softTokenState;
if(softTokenInput!=null){window.external.WebLogonSoftTokenPIN=softTokenInput.value;
var passcode=window.external.WebLogonSoftTokenPasscode;
if(passcode){softTokenInput.value=passcode;
}}else{if(challengeMode){window.external.WebLogonSoftTokenPIN=inputs[0].value;
var passcode=window.external.WebLogonSoftTokenPasscode;
if(passcode){inputs[0].value=passcode;
}}}hiddenInput.value=window.external.WebLogonSoftTokenError;
}catch(e){}return;
}function getFormCompatibility(){var form=document.getElementById(globalFormId);
if(form==null){return null;
}var inputs=[];
var inputsTemp=form.getElementsByTagName("input");
for(var i=0;
i=2&&inputs[0].name=="_F5_challenge"&&inputs[0].type=="password"&&inputs[1].name=="_F5_verify_password"&&inputs[1].type=="password"){if(inputs[0].value!=inputs[1].value){alert("Password and confirmation do not match.");
inputs[0].focus();
return false;
}else{inputs[1].disabled=true;
try{if(window.external){if(undefined!=window.external.WebLogonPassword){window.external.WebLogonPassword=inputs[0].value;
}}}catch(e){}}}return true;
}function masterSubmit(form){if(!verifyNewPassword()){return false;
}OnSubmit();
if(globalRestartOnSubmit){try{window.external.WebLogonAutoLogon=((""!=globalInputs[0].value)&&(""!=globalInputs[1].value));
}catch(e){}window.external.WebLogonResetSession();
return false;
}disableSubmit(form);
return true;
}function showTuring(){var usernames=document.getElementsByName("username");
if(usernames&&usernames.length>0){var imgTuring=document.getElementById("imgTuring");
if(imgTuring){imgTuring.style.display="";
imgTuring.src=configuration.imageUrlPinsafe+"/SCImage?username="+usernames[0].value+"&random="+Math.floor(Math.random()*100000);
}}}function setChallengeFields(secIdchallenge){$("#username").val($("#index_username").val());
if($("#challenge").val()=="RSA"){$("#challenge").attr("message",secIdchallenge);
$("#key").val($("#index_key").val());
}else{$("#challenge").val(secIdchallenge);
}}var QueryString=function(){var query_string={};
var query=window.location.search.substring(1);
var vars=query.split("&");
for(var i=0;
i0){$(".boton_aceptar")[0].value=i18n.msg("defender.accept");
}if($(".boton_cancelar")&&$(".boton_cancelar").size()>0){$(".boton_cancelar")[0].value=i18n.msg("defender.cancel");
}if($(".boton_recargar")&&$(".boton_recargar").size()>0){$(".boton_recargar")[0].value=i18n.msg("defender.load.new.image");
}}function submitFrmCasque(){document.frmCasque.action="/dana-na/download/x.casque?url=/dana-na/auth/welcome.cgi";
document.frmCasque.submit();
}function redirectToSendPush(challenge){var usernames=document.getElementsByName("username");
if(usernames&&usernames.length>0){window.location.href=configuration.mobileUrl+"?username="+usernames[0].value+"&challenge="+challenge+"&returnurl="+window.location.href;
}}var loginF5=new LoginF5();