/*function getXmlHttpRequest()
{
	var httpRequest = null;
	try
	{
		httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e)
	{
		try
		{
			httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (e)
		{
			httpRequest = null;
		}
	}
	if (!httpRequest && typeof XMLHttpRequest != "undefined")
	{
		httpRequest = new XMLHttpRequest();
	}
	return httpRequest;
}

function getHttpResponseText(url)
{
	try
	{
		xmlhttp = getXmlHttpRequest();

		xmlhttp.open("GET", url, false);
		xmlhttp.send(null);
		return xmlhttp.responseText;
	}
	catch (e)
	{
		return e.description;
	}
}*/

function getXmlHttpRequest()
	{
		var httpRequest = null;
		try
		{
			//Firefox,Opera 8.0+,Safari
			httpRequest = new XMLHttpRequest();
		}
		catch (e)
		{
			try
			{
				//IE6.0+
				httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (e)
			{
				try
				{
					//IE5.5+
					httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (e)
				{
					httpRequest = null;
				}
			}
		}
		if (!httpRequest && typeof XMLHttpRequest != "undefined")
		{
			httpRequest = new XMLHttpRequest();
		}
		return httpRequest;
	}
	function getHttpResponseText(url)
	{
		try
		{
			xmlhttp = getXmlHttpRequest();

			xmlhttp.open("GET", url, false);
			xmlhttp.send(null);
			return xmlhttp.responseText;
		}
		catch (e)
		{
			return e.description;
		}
	}

function AutoKeepSession()
{
	try
	{
		getHttpResponseText("/AjaxService.aspx?action=keepsession&rnd=" + Math.random().toString());
	}
	catch (e)
	{
		//alert(e.description);
	}
	setTimeout('AutoKeepSession()', 10 * 60 * 1000);
}

function StartAutoKeepSession()
{
	setTimeout('AutoKeepSession()', 5 * 60 * 1000);
}