﻿ //if the update is from event manager 
 function checkReload(){
	if(window.opener){
		 window.opener.location.reload(true);
		 window.close();
	}
 }
//alert page timeout	
 var intTimerID1,intTimerID2;
function alertTimeout(intTimeLeft)
{	
	var intMillSec=parseInt(intTimeLeft) * 60 * 1000
	intTimerID1 = setTimeout('showMeg();',intMillSec);
}
function showMeg()
{
 var Meg="You have 10 minutes remaining to submit this form. \nIf you exceed this amount of time without submitting, the information you provided will not be saved."

 clearTimeout(intTimerID1);
//for timeout message
//Ramazan Aksoy 01/08/2002
 var intNewMS = 10 * 60 * 1000;
 intTimerID2 = setTimeout('showTimeout();',intNewMS);
 alert(Meg);
}

function showTimeout()
{		 
	var Meg="Your session has now expired. Please exit this page and begin again.\nPlease note that will be asked to login again."
	alert(Meg);
	clearTimeout(intTimerID2);
}
