function chkVer(imagename,objectsrc){
	var n=navigator.appName
	var v=parseInt(navigator.appVersion)
	var browsok=((n=="Netscape")&&(v>=3))
	var browsok2=((n=="Microsoft Internet Explorer")&&(v>=4))
	if ((browsok)||(browsok2))
	document.images[imagename].src=eval(objectsrc+".src")
}
function ShowTimeoutWarning(){
	if(confirm("For security purposes you will automatically be logged out in 5 minutes.\nClick OK to add additional time to your session\nor CANCEL to allow the system to log out out now.")){
		PopUp('AddSessionTime.asp','AddSessionTime','toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=no,width=1,height=1,left=1, top=1,screenX=1,screenY=1')
		setTimeout( 'ShowTimeoutWarning();', SessionTimeout );
	}else{
		location="Logout.asp"
	}
}
function TestPop() {
	TestPopup = window.open('','','height=1,width=1');
	TestString = TestPopup;
	TestPopup.close();
}
function TestPopResult() {
	if(TestString == 'failed' || TestString == null)
	{
		alert('Warning:  Some areas of the admin require pop-up windows.\nYou currently have a pop-up blocker enabled and this may cause errors within this site\'s admin.\nPlease disable your pop-up blocker before continuing.');
	}
}
var TestString = 'failed';
function ShowImage(boxLocation){
	var bw = navigator.appName;
	if (bw == "Microsoft Internet Explorer"){
		document.all["TextImage"+boxLocation+"a"].style.display = "none";
		document.all["TextImage"+boxLocation+"b"].style.display = "block";
		document.all["Area"+boxLocation].value="2"
	} else {
		document.getElementById("TextImage"+boxLocation+"a").style.display = "none";
		document.getElementById("TextImage"+boxLocation+"b").style.display = "block";
		eval('document.Alstom.Area'+boxLocation+'.value = "2"');
		
		//window.document["TextImage"+boxLocation+"a"].display = "none";
		//window.document["TextImage"+boxLocation+"b"].display = "block";
		//window.document["Area"+boxLocation].value="2"
	}
}
function ShowText(boxLocation){
	var bw = navigator.appName;
	if (bw == "Microsoft Internet Explorer"){
		document.all["TextImage"+boxLocation+"b"].style.display = "none";
		document.all["TextImage"+boxLocation+"a"].style.display = "block";
		document.all["Area"+boxLocation].value="1"
	} else {
		document.getElementById("TextImage"+boxLocation+"a").style.display = "block";
		document.getElementById("TextImage"+boxLocation+"b").style.display = "none";
		eval('document.Alstom.Area'+boxLocation+'.value = "1"');
		
		//window.document["TextImage"+boxLocation+"b"].display = "none";
		//window.document["TextImage"+boxLocation+"a"].display = "block";
		//window.document["Area"+boxLocation].value="1"
	}
}
function ShowNone(boxLocation){
	var bw = navigator.appName;
	if (bw == "Microsoft Internet Explorer"){
		document.all["TextImage"+boxLocation+"a"].style.display = "none";
		document.all["TextImage"+boxLocation+"b"].style.display = "none";
		document.all["Area"+boxLocation].value="0"
	} else {
		document.getElementById("TextImage"+boxLocation+"a").style.display = "none";
		document.getElementById("TextImage"+boxLocation+"b").style.display = "none";
		eval('document.Alstom.Area'+boxLocation+'.value = "0"');
		
		//window.document["TextImage"+boxLocation+"a"].display = "none";
		//window.document["TextImage"+boxLocation+"b"].display = "none";
		//window.document["Area"+boxLocation].value="0"
	}
}
function ShowAll(boxLocation){
	var bw = navigator.appName;
	if (bw == "Microsoft Internet Explorer"){
		document.all["TextImage"+boxLocation+"a"].style.display = "none";
		document.all["TextImage"+boxLocation+"b"].style.display = "block";
		document.all["Area"+boxLocation].value="3"
	} else {
		document.getElementById("TextImage"+boxLocation+"a").style.display = "none";
		document.getElementById("TextImage"+boxLocation+"b").style.display = "block";
		eval('document.Alstom.Area'+boxLocation+'.value = "3"');
		
		//window.document["TextImage"+boxLocation+"a"].display = "none";
		//window.document["TextImage"+boxLocation+"b"].display = "block";
		//window.document["Area"+boxLocation].value="3"
	}
}
setTimeout( 'ShowTimeoutWarning();', SessionTimeout );