	var xmlhttp = getXmlHttpRequest();
	
	function getXmlHttpRequest() {
		if (window.XMLHttpRequest) {
			return new XMLHttpRequest();
		} else if (window.ActiveXObject) {
			return new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	
	
function Carrega(url,ID){
  document.getElementById("modelo").innerHTML = "<strong>Carregando...</strong>";
  xmlhttp.open("GET", url + '?id_marca=' + ID, true);
  xmlhttp.onreadystatechange = function(){
  
   if (xmlhttp.readyState == 4){
   
   var texto = xmlhttp.responseText;
   texto = texto.replace(/\+/g," ");
   texto = unescape(texto);
	document.getElementById("modelo").innerHTML = xmlhttp.responseText;
   }
  } 
  xmlhttp.send(null);
 }

function Carrega2(url,ID){
  document.getElementById("cidade_ajax").innerHTML = "<strong>Carregando...</strong>";
  xmlhttp.open("GET", url + '?id_regiao=' + ID, true);
  xmlhttp.onreadystatechange = function(){
  
   if (xmlhttp.readyState == 4){
   
   var texto = xmlhttp.responseText;
   texto = texto.replace(/\+/g," ");
   texto = unescape(texto);
	document.getElementById("cidade_ajax").innerHTML = xmlhttp.responseText;
   }
  } 
  xmlhttp.send(null);
 }

function Carrega4(url,ID){
  document.getElementById("cidade_ajax").innerHTML = "<strong>Carregando...</strong>";
  xmlhttp.open("GET", url + '?regiao=' + ID, true);
  xmlhttp.onreadystatechange = function(){
  
   if (xmlhttp.readyState == 4){
   
   var texto = xmlhttp.responseText;
   texto = texto.replace(/\+/g," ");
   texto = unescape(texto);
	document.getElementById("cidade_ajax").innerHTML = xmlhttp.responseText;
   }
  } 
  xmlhttp.send(null);
 }

function Carrega5(url,ID){
  document.getElementById("marca").innerHTML = "<strong>Carregando...</strong>";
  xmlhttp.open("GET", url + '?id_categoria=' + ID, true);
  xmlhttp.onreadystatechange = function(){
  
   if (xmlhttp.readyState == 4){
   
   var texto = xmlhttp.responseText;
   texto = texto.replace(/\+/g," ");
   texto = unescape(texto);
	document.getElementById("marca").innerHTML = xmlhttp.responseText;
   }
  } 
  xmlhttp.send(null);
 }

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
