// JavaScript Document

var notimeout_timer = setInterval("send_notimeout()",120000);
send_notimeout();

function nt_createXML()
{
var xmlhttp=false;
if (window.XMLHttpRequest)
	{
  	xmlhttp=new XMLHttpRequest();		
	}
	else{
		try{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e){
		try{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  		}
		catch (E){
			xmlhttp = false;
		}
	}	
}
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
	{
	xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp; 
}

function send_notimeout(data_processor,method,query)
{
	//alert("URL = : " + data_processor + query);	
	//in_ajax = true;
	xmlhttp=nt_createXML();
	xmlhttp.open("GET", "/notimeout.php");
	xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	
		
		xmlhttp.onreadystatechange =function()
		{
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
		{
			
			//alert(xmlhttp.responseText);
			nt_process_xml_response(xmlhttp);
			
		}
		}	
	xmlhttp.send("still_here=true");
}

function nt_process_xml_response(xml){
	var output = xml.responseText;
//	alert("Output from no timeout = " + output);
	}
