function getMunicipio(idEstado){
	var xmlHttp = RequestHttp();
	var targetSelect = document.getElementById("cidadeCliente");
	//clean(targetSelect);
	xmlHttp.onreadystatechange=function(){
    	
    	if (xmlHttp.readyState < 4) {
    	
    		targetSelect.options[1] = new Option("Carregando...", "", true);
    	
    	}
    	
    	if(xmlHttp.readyState==4)
      	{
      		//alert (xmlHttp.responseText);
      		var xmlDoc=xmlHttp.responseXML;
      		targetSelect.options[1] = null;
      		
      		var Total = xmlDoc.getElementsByTagName('total')[0].childNodes[0].nodeValue;
      		var indice = 0;
      		for (indice = 0; indice < Total; indice++){
      			var nome = xmlDoc.getElementsByTagName('nome')[indice].childNodes[0].nodeValue;
      			var id = xmlDoc.getElementsByTagName('id')[indice].childNodes[0].nodeValue;
      			targetSelect.options[indice+1] = new Option (nome,id,false);
      		}
      	}
   	}	
	xmlHttp.open("GET","/sistemas/imobiliaria/ajaxMunicipio.php?searchID="+idEstado,true);
 	xmlHttp.send(null);
}

