
function getXmlhttp(){
	var xmlhttp;
	try{
		xmlhttp = new XMLHttpRequest();
	}catch(ee){
		try{
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try{
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(E){
				xmlhttp = false;
			}
		}
	}
	return xmlhttp;
}


function acaoAjax(url){
	var xmlhttp = getXmlhttp();
    xmlhttp.open("GET", url,true);
    xmlhttp.send(null)
}


function selectAjax(url, container){
	var xmlhttp = getXmlhttp();
    xmlhttp.open("GET", url,true);
	xmlhttp.onreadystatechange = sendAlert;
    xmlhttp.send(null)
}
function sendAlert() {
        if (xmlhttp.readyState==4){
            var texto=xmlhttp.responseText
            texto=texto.replace(/\+/g," ")
            texto=unescape(texto)
			if (xmlhttp.status >= 200) 
			{//alert(xmlhttp.responseText);
			pageTracker._trackPageview("/ingressonamao/ajax" );}            
			else 
			{alert('Erro!');} 
        }
    }