// JavaScript Document
	try{
	xmlhttp = new XMLHttpRequest();}catch(ee){try{
	xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{
	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");}
	catch(E){xmlhttp = false;}}}
function ajaxPesquisa(varItem, varValor, pergunta) {
		var page = "processaPesquisa.asp?opcao="+varValor+"&pergunta="+pergunta;
		xmlhttp.open("POST", page ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById(varItem).innerHTML = '<img src="img/loading3.gif" width="15" height="15" />'
		   if(xmlhttp.readyState == 4){
					document.getElementById(varItem).innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
