<!---  
 /***************************************************************************
 *	countdown.js
 *
 *	AUTHOR:
 *	jim fincane 03.28.02
 *
 *	DO NOT EDIT BELOW HERE
 *	current revision $Revision: 1.3 $
 *	on branch $Name:  $
 *	latest change by $Author: jimf $ on $Date: 2003/11/03 17:25:49 $
 *	DO NOT EDIT ABOVE HERE 
 *  
 *	DESCRIPTION:
 *	js code that counts down from last page request to session timeout,
 *	pops up alert box when timeout has been reached.
 *
 *	PARAMETERS: 
 *
 ****************************************************************************/
//---> 

var root       = "";
var host       = "";
var startday   //= new Date();
var clockStart //= startday.getTime();
//var TIME_TO_GO = 10;
var TIME_TO_GO = 5400; //90 mins

function updateCountdown() 
{ 
	var myTime    = new Date(); 
	var timeNow   = myTime.getTime();  
	var timeDiff  = timeNow - clockStart; 
	this.diffSecs = timeDiff/1000; 
	return(this.diffSecs); 
} 

function getSecs(A) 
{
	if (A == 0) return;
	if (A == 1)
	{
		startday   = new Date();
		clockStart = startday.getTime();
	}
	
	var mySecs  = updateCountdown(); 
	var mySecs1 = "" + mySecs;
	
	mySecs1= mySecs1.substring(0,mySecs1.indexOf("."));
	
	//alert(root + ' - ' + mySecs1 + ' - ' + TIME_TO_GO)
	
	if(mySecs1 > TIME_TO_GO || mySecs1 < 0)
	{
		alert("You have been inactive for 90 minutes.\nAs a security measure you have been logged out.\nPlease click OK to log in again.");
		
		if (root == "")
			location.href = "act/act_logout.cfm";
		else
			location.href = "../act/act_logout.cfm";
	}
	
	window.setTimeout('getSecs(2)',1000);
}

<!--- 
 /***************************************************************************
 *	DO NOT EDIT BELOW HERE
 * 	$Log: countdown.js,v $
 * 	Revision 1.3  2003/11/03 17:25:49  jimf
 * 	- edited host var, added quotes
 * 	
 * 	Revision 1.2  2003/11/03 17:11:17  jimf
 * 	- changed comments from javascript type to cf
 * 	type as this page is included via cf, not via a js tag
 * 	src attribute
 * 	- changed call to location.href to path relative to
 * 	root, as hostname will be variable when we set up
 * 	failover and test
 * 	- added host var to js
 * 	
 * 	Revision 1.1.1.1  2003/10/31 21:51:54  jimf
 * 	initial import of current live site
 * 	
 * 	DO NOT EDIT ABOVE HERE
 * 	
 ****************************************************************************/
//--->