function buscaDadosAjax(url,pars,idElemento)
{
	var myAjax = new Ajax.Updater(
		idElemento, 
		url, 
		{
			method: 'get', 
			parameters: pars
		});
}

// Adicionado por Manny (Início)

function objetoXmlHttp()
{
	var xmlHttp = null;
	
	try
	{
		xmlHttp = new XMLHttpRequest();
	}
	catch(e)
	{
		try
		{
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	
	return xmlHttp;
}

function atualizarConteudoDiv(nomediv, url)
{ 
	var xmlHttp = objetoXmlHttp();
	
	if(xmlHttp === null)
	{
		alert("Seu browser não suporta HTTP Request");
		return;
	}
	
	xmlHttp.onreadystatechange = function () { statusAlterado(xmlHttp, nomediv); };
	xmlHttp.open("GET", url, true);
	xmlHttp.send(null);
}

function statusAlterado(xmlHttp, nomeDiv)
{ 
	if((xmlHttp.readyState == 4) || (xmlHttp.readyState == "complete"))
	{
		var div = document.getElementById(nomeDiv);
		
		if(div)
		{
			div.innerHTML = xmlHttp.responseText;
		}
	}
}

// Adicionado por Manny (Fim)
