var xmlHttp;

//=============================================================
function createXMLHttprequest(){
if(window.ActiveXObject){
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if(window.XMLHttpRequest){
xmlHttp = new XMLHttpRequest();	
}
}//fim da função
//=============================================================

//=============================================================
function RequisicaoResultadoSite(ide,idcat){
	createXMLHttprequest();
	
	var ide = ide;
	var idcat = idcat;
	
	var url = "detalhe_evento_cat_res.php";
	url  = url+"?ideve="+ide+"&idcat="+idcat;
	
	FechaExibicao();
	ExibeGif();
	
	xmlHttp.onreadystatechange = ExibeRes;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);

}//fim da função
//=============================================================
function ExibeRes(){
	 if(xmlHttp.readyState == 4){
		if(xmlHttp.status == 200){
			FechaGif();
			AbreExibicao();
			document.getElementById("recebe_res").innerHTML = xmlHttp.responseText;
		    }
		}
	}//fim da função
//=============================================================

//=============================================================
function ExibeGif(){
	
	document.getElementById("recebe_res_loader").style.display="inline";
	
	}
//=============================================================
function FechaGif(){
	document.getElementById("recebe_res_loader").style.display="none";
	}

//=============================================================

//=============================================================
function FechaExibicao(){
	document.getElementById("recebe_res").style.display="none";
	}

//=============================================================

//=============================================================
function AbreExibicao(){
	document.getElementById("recebe_res").style.display="inline";
	}

//=============================================================














