<!--navigation_functions.js-->
<!--start-->

// 9/30/2004. PH. The following function is to be called by deprecated pages. There
// are 4 function parameters:
//		1. showTimer. A string with value 'true' or anything else.  If 'true',
//					  then function will update a SPAN element identified by
//					  the second parameter timeCounterName.
//		2. timeCounterName. A string holding the SPAN element ID. This SPAN
//					  element's innerHTML will be updated with the countdown
//					  timer number.  I.e. 3, 2, 1, 0.  It'll only be updated
//					  by the function/SetTimeOut if the first parameter is 'true'
//		3. numSeconds. A number that determines how long to wait before
//					  the page automatically forwards the user to the new page.
//					  It is also used for the countdown.
//		4. newURL. A string indicating the relative path to the new page.
function ForwardUserToNewPage(showTimer, timeCounterName,numSeconds,newURL) {
	var newStatement='';
	var timeOutID;
	//First set the forwarding timer - this is where the page will 
	//autoforward to after time is up.
	newStatement='document.location = "'+ newURL +'"';
	timeOutID=setTimeout(newStatement, numSeconds*1000);
	
	//Now set the timer for the countdown sequence.  But only if caller says to.
	showTimer=showTimer.toLowerCase();
	if (showTimer=='true'||showTimer=='yes') {
	//alert(showTimer);
		for (t=0; t<=numSeconds; t++) {
			currentTime=numSeconds-t;
			newStatement='document.getElementById("'+timeCounterName+'").innerHTML='+currentTime+';';
			setTimeout(newStatement, (t)*1000);
			//document.getElementById(idName).innerHTML=currentTime;
		}
	}
	return timeOutID;
}	


// 9/30/2004 PH. THis function is called to stop the timeOut from executing

<!--end-->

