// JavaScript Document
function sessionExpire(sessionTimeOut, alertSecs)
{
	var timeDiff = (sessionTimeOut - alertSecs)/60/1000;
	//var ans = alert("As part of the website's security policy,  all connections are terminated after " + (sessionTimeOut/60/1000) + " minutes of inactivity.  This prompt is meant to inform you that you must begin using the web site within the next " + timeDiff + " minutes, or you will be required to log in again.");
	var ans = alert("As part of the website's security policy,  all connections are terminated after 60 minutes of inactivity.  This prompt is meant to inform you that you must begin using the web site within the next 5 minutes, or you will be required to log in again.");
					
//"There is a timeout on the system after a " + (sessionTimeOut/60/1000) + " minute period of inactivity. Your session is about to expire in " + timeDiff + " minutes. Please commit your changes or refresh the page to keep your session active.");

	/*if (ans)
	{
		//var oImage = new Image;
		//oImage.src = "add.gif?" + Math.random(); // Added random URL so that image is not cached.
		//document.getElementById('img1').src='/vao_admin/images/spacer.gif?' + Math.random();
		sswndw = window.open ("renewsession.cfm", "sswndw", "width=20,height=20"); 
		sswndw.close();
		
		setTimeout("sessionExpire(" + sessionTimeOut + ", " + alertSecs + ");", alertSecs);			
	}*/
}

function popupWin(url, winName, features)
{
	if (!features)
		features = 'height=200,width=400,scrollbars=yes';
	
	win = window.open(url, winName, features);
	win.focus();
}

function launchLMS()
{
	popupWin('index.cfm?action=secure.catalog', 'winAloLms', 
			 'height=600,width=800,scrollbars=yes,resizable=yes,toolbar=yes,location=yes,menubar=no,titlebar=no');
}
