function goAjax(url,div,param) {
	 
//alert('url='+url+' div='+div+' Param='+param);

	var xmlhttp=false;
	try { 
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
		} catch (e) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
		} catch (e) { 
			xmlhttp = false; 
		} 
	} 
	
	
	if  (!xmlhttp && typeof  XMLHttpRequest != 'undefined' ) { 
		try  { 
			xmlhttp = new  XMLHttpRequest(); 
		} catch  (e) { 
			xmlhttp = false ; 
		} 
	} 
	
	xmlhttp.open("GET", url , true);
	xmlhttp.onreadystatechange = function() {	
	if (xmlhttp.readyState==4) {
		retorno = xmlhttp.responseText;
		document.getElementById(div).innerHTML = retorno;
		if (param == 'cat'){
			document.getElementById("cidade").innerHTML = 'Escolha o estado';
		}
	}else{
		document.getElementById(div).innerHTML = '<div align="center" style="position:relative"><img src="images/carregando.gif" ></div>';
	}
}
xmlhttp.send(null);


var xmlhttpRand=false;
try { 
    xmlhttpRand = new ActiveXObject("Msxml2.XMLHTTP"); 
} catch (e) {
    try {
        xmlhttpRand = new ActiveXObject("Microsoft.XMLHTTP"); 
    } catch (e) { 
        xmlhttpRand = false; 
    } 
} 


if  (!xmlhttpRand && typeof  XMLHttpRequest != 'undefined' ) { 
    try  { 
        xmlhttpRand = new  XMLHttpRequest(); 
    } catch  (e) { 
        xmlhttpRand = false ; 
    } 
} 

		xmlhttpRand.open("GET", 'mais.asp' , true);
        xmlhttpRand.onreadystatechange = function() {	
        if (xmlhttpRand.readyState==4) {
			retorno = xmlhttpRand.responseText;
			//document.all('rand').innerHTML = retorno;
			document.getElementById('rand').innerHTML = retorno;
   		 }else{
		document.getElementById('rand').innerHTML = '<div align="center" style="position:relative"><img src="images/carregando.gif" ></div>';
		
		}
    }
        xmlhttpRand.send(null);
    }



//funcao para trabalhar o menu destinos

function menus(url,div,param,url2,div2,param2) {
	 
//alert('url='+url+' div='+div+' Param='+param);

	var xmlhttp=false;
	try { 
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
		} catch (e) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
		} catch (e) { 
			xmlhttp = false; 
		} 
	} 
	
	if  (!xmlhttp && typeof  XMLHttpRequest != 'undefined' ) { 
		try  { 
			xmlhttp = new  XMLHttpRequest(); 
		} catch  (e) { 
			xmlhttp = false ; 
		} 
	} 
	xmlhttp.open("GET", url , true);
	xmlhttp.onreadystatechange = function() {	
	if (xmlhttp.readyState==4) {
		retorno = xmlhttp.responseText;
		document.getElementById(div).innerHTML = retorno;
	}else{
		document.getElementById(div).innerHTML = '<div align="center" style="position:relative"><img src="images/carregando.gif" ></div>';
	}
}
xmlhttp.send(null);



//segunda url com segunda div
	var xmlhttp2=false;
	try { 
			xmlhttp2 = new ActiveXObject("Msxml2.XMLHTTP"); 
		} catch (e) {
		try {
			xmlhttp2 = new ActiveXObject("Microsoft.XMLHTTP"); 
		} catch (e) { 
			xmlhttp2 = false; 
		} 
	} 
	
	if  (!xmlhttp2 && typeof  XMLHttpRequest != 'undefined' ) { 
		try  { 
			xmlhttp2 = new  XMLHttpRequest(); 
		} catch  (e) { 
			xmlhttp2 = false ; 
		} 
	} 
	xmlhttp2.open("GET", url2 , true);
	xmlhttp2.onreadystatechange = function() {	
	if (xmlhttp2.readyState==4) {
		retorno = xmlhttp2.responseText;
		document.getElementById(div2).innerHTML = retorno;
	}else{
		document.getElementById(div2).innerHTML = '<div align="center" style="position:relative"><img src="images/carregando.gif" ></div>';
	}
}
xmlhttp2.send(null);














}

