﻿function show()
{
//alert("enter show");
var browser = navigator.appName;
var ua = navigator.userAgent;
//alert(browser);
//alert(ua);
if(ua.indexOf("MSIE") != -1){
alert("In every job on this earth there is a kind of punishment or suffering.\nFor military there is war.\nFor web developers there is more than a punishment and that is IE6,IE7,IE8");
}
//obj = document.getElementById('subprogs');
if(ua.indexOf("MSIE") != -1){
alert(document.all['subprogs'].style.visibility);
document.all['subprogs'].style.visibility = "visible";
//obj.style.visibility="block";
}else{
obj.style.display="block";
}
}

function dontshow()
{
//alert("enter show");
obj = document.getElementById('subprogs');
obj.style.display="none";
}

function showspt()
{
//alert("enter show");
obj = document.getElementById('subprogstop');
obj.style.display="block";
}

function dontshowspt()
{
//alert("enter show");
obj = document.getElementById('subprogstop');
obj.style.display="none";
}

function showsub(){
obj = document.getElementById('sub');
obj.style.display="block";
}
function sessions()
{
	
	setTimeout('sessionWarning()', sTimeout);
	
	
	function sessionWarning() {
	var temp1=new Date();
		temp=confirm('Your Log In session is going to time out. Click OK to continue!');	
		
		if(temp==true)
		{
			var temp2=new Date();
			if((temp2-temp1)/(1000)>=59)
			{
				alert('Sorry your session has expired');
				location.reload(true);
			}
			else
			{
				location.reload(true);
			}
				
		 
		}
		setTimeout('TimeOutWarning()',sTimedout);
	}
}
function TimeOutWarning() {
	temp=true;
	alert('Your session expired!');	
	window.location = "OnlineIndex.cfm"
}

