<!--
var timerID = 0;
var tStart  = null;

function UpdateTimer() {
   if(timerID) {
      clearTimeout(timerID);
      clockID  = 0;
   }

   if(!tStart) tStart   = new Date();

   var   tDate = new Date();
   var   tDiff = tDate.getTime() - tStart.getTime();

   tDate.setTime(tDiff);
	var Mins = 19 - tDate.getMinutes();
	var Secs = 60 - tDate.getSeconds();
	
	if (Mins <= 0 && Secs <=1) document.location.href="logout.asp";
	
	if (Secs==60 && Mins >= 0) {
	Secs = 0
	Mins = Mins+1
	}
	
	
	if( Mins < 10 ) Mins = "0" + Mins;
	if( Secs < 10 ) Secs = "0" + Secs;	
   document.getElementById("TimeOutTimer").value = "" + Mins + ":" + Secs;
   timerID = setTimeout("UpdateTimer()", 1000);
   
}

function Start() {
   tStart   = new Date();
   document.getElementById("TimeOutTimer").value = "20:00";

   timerID  = setTimeout("UpdateTimer()", 1000);
}

function Stop() {
   if(timerID) {
      clearTimeout(timerID);
      timerID  = 0;
   }

   tStart = null;
}

function Reset() {
   tStart = null;

   document.getElementById("TimeOutTimer").value = "20:00";
}

function ConfirmDelete(RedirectPath) {
	if(confirm('Are you sure you wish to delete this record?')) {
		document.location.href=RedirectPath
	}
}
function HighlightLine(DivId) {
	alert(DivId);
	document.getElementById(DivId).style.color = "#FF1122";
	var elt = document.getElementById(DivId);
var out = "";
var st = elt.style;
var z;
var cs = window.getComputedStyle(z, null);
for (x in st)
  out += "  " + x + " = '" + st[x] + "' > '" + cs[x] + "'\n";

}







