/* selva  - For Session Timeout Automatically*/

var timerone;
var timertwo;
function  JSsessionTimeOut(redirect, delay){
   //alert(delay)
   JSsessionTimeOut1(redirect, delay);
   timerone = window.setTimeout('timeoutSession()', (delay-3)* 60 * 1000);
}
function timeoutSession(){
   document.getElementById("logout_alert").style.display = 'block';
   document.getElementById('logout_alert').style.visibility = 'visible';
}
function resetSessionTimeout(redirect, delay) {
		window.clearTimeout(timertwo);
		window.clearTimeout(timerone);
		JSsessionTimeOut(redirect, delay);
//		http://sys158/entrustet_new/login/1
}

function  JSsessionTimeOut1(redirect1, delay){
   timertwo = window.setTimeout('timeoutSession1("'+redirect1+'")', delay* 60 * 1000);
}
function timeoutSession1(redirect1){
   self.location = redirect1;
}

