var execManterSessao, msIntervalo;
execManterSessao = false;

function manterSessao()
{
	if (execManterSessao)
		return;
	execManterSessao = true;

	var xmlHttp = getAjaxObj();
	if (xmlHttp == null) 
	{
		alert('Seu navagador não suporta AJAX!');
		return;
	}

	xmlHttp.onreadystatechange = function() {
		if (xmlHttp.readyState == 4) 
		{
			//alert(xmlHttp.responseText);
			execManterSessao = false;
		}
	}
	
	xmlHttp.open('GET', '/Top/ManterSessao.asp?sid='+Math.random(), true);
	xmlHttp.send(null);
}

function manterSessao2()
{
	if (execManterSessao)
		return;
	execManterSessao = true;

	var xmlHttp = getAjaxObj();
	if (xmlHttp == null) 
	{
		alert('Seu navagador não suporta AJAX!');
		return;
	}

	xmlHttp.onreadystatechange = function() {
		if (xmlHttp.readyState == 4) 
		{
			alert(xmlHttp.responseText);
			execManterSessao = false;
		}
	}
	
	xmlHttp.open('GET', '/Top/ManterSessao.asp?sid='+Math.random(), true);
	xmlHttp.send(null);
}

