function getHTTPObject()
{
	try 
	{ // IE
	    xhttp = new ActiveXObject("Microsoft.XMLHTTP");
	} 
	catch(er)
	{ // Mozilla, Safari, ...
    	xhttp = new XMLHttpRequest();
	}

	return xhttp;
}

var http = getHTTPObject();

function AjaxOpenPage(Url,Metodo,FuncaoRetorno)
{
	http.open(Metodo,Url,true);
	http.onreadystatechange = FuncaoRetorno;
	http.send(null);
}

function postPage(Url,Values,FuncaoRetorno)
{
	http.open("POST",Url,true);
	http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	http.onreadystatechange = FuncaoRetorno;
	http.send(Values);
}





