<!-- 

var intMin,intSec;

function startTimer(TimeOut) 
{
	if (document.forms[0].txtTimer)
	{
		intMin=1 * getMinutes(TimeOut);
		intSec=0 + getSeconds(TimeOut);
		repeatTimer(); 
	}
}
	
function getMinutes(time)
{
	for(var i=0;i<time.length;i++)
		if(time.substring(i,i+1)==":") 
			break;
			
	return(time.substring(0,i)); 
}

function getSeconds(time)
{
	for(var i=0;i<time.length;i++) 
		if(time.substring(i,i+1)==":") 
			break;
			
	return(time.substring(i+1,time.length)); 
}
	
function showTimer(Min,Sec)
{
	var strTimer;
	
	if(Min<=9)
		strTimer=" 0";
	else 
		strTimer=" ";
	
	strTimer += Min + ":";
	
	if(Sec<=9) 
		strTimer += "0" + Sec;
	else 
		strTimer += Sec;
		
	return(strTimer); 
}


function repeatTimer() 
{
	intSec--;
	if(intSec==-1) 
	{ 
		intSec=59; 
		intMin--; 
	}
	
	document.forms[0].txtTimer.value = showTimer(intMin,intSec);
	
	if((intMin==0) && (intSec==0))
		alert("Session time out. Please login again.");
	else 
		startTimer = setTimeout("repeatTimer()",1000); 
}
	
//-->