  	var IDLE_TIME = 600000;
  	var timerID = -1;
  	
  	function resetTimer() {
  		if (timerID != -1) {
  			clearTimeout(timerID);
  			startTimer();
  		}
  	}
 	
  	function startTimer() {
  		timerID = window.setTimeout("timeOut()",IDLE_TIME);
  	}
 	
  	function timeOut() {
  		if (timerID != -1) {
			logsubmit.a.value='x'
			logsubmit.submit();
  			clearTimeout(timerID);
  		}
  	}

var WindowObjectReference;

function openRequestedPopup()
{
var xmlhttp1=false;
	if(window.XMLHttpRequest)
	{
    	try 
			{
				xmlhttp1 = new XMLHttpRequest();
			} 
			catch(e) 
				{
				 if(window.ActiveXObject) 
					{
       				try 
						{
						xmlhttp1 = new ActiveXObject("Msxml2.XMLHTTP");
						} 
					catch(e) 
						{
        				try 
							{
							xmlhttp1 = new ActiveXObject("Microsoft.XMLHTTP");
							} 
							catch(e) 
							{
								xmlhttp1 = false;
							}
						}
					}
				}
	}
	else if(window.ActiveXObject) 
	{
       	try {
        	xmlhttp1 = new ActiveXObject("Msxml2.XMLHTTP");
      		} 
			catch(e)
				{
        		try 
					{
          			xmlhttp1 = new ActiveXObject("Microsoft.XMLHTTP");
        			} 
					catch(e) 
					{
          			xmlhttp1 = false;
        			}
				}
    }
	if (xmlhttp1)
	 {
		xmlhttp1.onreadystatechange =  processReqChange;
		xmlhttp1.open("GET","logb.asp",true);
		xmlhttp1.send("");
	}
		 function processReqChange() {
			 if(xmlhttp1.readyState == 4)
			 {
				//alert(xmlhttp1.responsetext)
			 }
    }
	 
  }
//enter limit in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var parselimit
var parselimit1
var par
var i
function begintimer1()
{
	if (document.validate.text2.value==1)
	{
		parselimit1=1
		par=540
		i=1
		document.validate.text2.value=2
	}
	if(parselimit1==par)
	{
		i=i+1
		par=540*i
		var xmlhttp1=false;
	if(window.XMLHttpRequest)
	{
    	try 
			{
				xmlhttp1 = new XMLHttpRequest();
			} 
			catch(e) 
				{
				 if(window.ActiveXObject) 
					{
       				try 
						{
						xmlhttp1 = new ActiveXObject("Msxml2.XMLHTTP");
						} 
					catch(e) 
						{
        				try 
							{
							xmlhttp1 = new ActiveXObject("Microsoft.XMLHTTP");
							} 
							catch(e) 
							{
								xmlhttp1 = false;
							}
						}
					}
				}
	}
	else if(window.ActiveXObject) 
	{
       	try {
        	xmlhttp1 = new ActiveXObject("Msxml2.XMLHTTP");
      		} catch(e) {
        	try {
          		xmlhttp1 = new ActiveXObject("Microsoft.XMLHTTP");
        	} catch(e) {
          		xmlhttp1 = false;
        	}
		}
    }

	if (xmlhttp1)
	 {
		xmlhttp1.onreadystatechange =  processReqChange;
		xmlhttp1.open("GET","logb.asp",true);
		xmlhttp1.send("");
	 }
		function processReqChange() 
		{
			 if(xmlhttp1.readyState == 4)
			 {
				//alert(xmlhttp1.responsetext)
			 }
		}
	 
  }


/*
//WindowObjectReference = window.open("logout2.asp", "CNN_WindowName","menubar=no,location=yes,resizable=no,scrollbars=no,status=no,width=20,height=20,left=10,top=1110");
var xmlhttp=false;
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
xmlhttp.open("GET","logb.asp",true);
xmlhttp.send(null); 
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
//WindowObjectReference = window.open("logout2.asp", "CNN_WindowName","menubar=no,location=yes,resizable=no,scrollbars=no,status=no,width=10,height=10,left=10,top=1110");
  }
 }
 if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  xmlhttp = new XMLHttpRequest();
  xmlhttp.open("GET","logb.asp",true);
xmlhttp.send(null); 
}
 
}

*/
if (!document.images)
return
if (parselimit1==3000)
parselimit1==1
else{ 
parselimit1+=1
setTimeout("begintimer1()",1000)
}
}

function openWin(uri){
		var myBars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
		var myOptions = 'scrollbars=yes,width=200,height=200,top=200,left=300,resizeable=no';
		var myFeatures = myBars + ',' + myOptions;
		childWin = open(uri,"Add",myFeatures);
	}
	function openWin1(uri)
{
		var myBars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
		var myOptions = 'scrollbars=yes,width=500,height=500,top=200,left=300,resizeable=no';
		var myFeatures = myBars + ',' + myOptions;
		childWin = open(uri,"Add",myFeatures);
}
function openWin2(uri)
{
		var myBars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
		var myOptions = 'scrollbars=yes,width=650,height=700,top=200,left=300,resizeable=no';
		var myFeatures = myBars + ',' + myOptions;
		childWin = open(uri,"Add",myFeatures);
}
function openWin3(uri)
{
		var myBars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
		var myOptions = 'scrollbars=yes,width=700,height=150,top=200,left=300,resizeable=no';
		var myFeatures = myBars + ',' + myOptions;
		childWin = open(uri,"Add",myFeatures);
		return false;
}
function KeyChk()
{
	if ( (event.keyCode==78) && (event.ctrlKey) ) 
	{
			// alert ("Sorry, not allowed!")
			return false;
	}
}
function confirmLeave() 
{
   if (event.clientY < 0) {
    // event.returnValue = 'You have not logged out, it is recommended that you click the Logout Link on your browser and logout for Accurate Time Calculation!?';
	 openRequestedPopup()
   }
}