function getMunicipio(idEstado, idMunicipioChecked){
	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) {      		
      		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;
      			
      			if (parseInt(id) != idMunicipioChecked) {      			
                    targetSelect.options[indice+1] = new Option (nome, id, false);
      			} else {
      			   targetSelect.options[indice+1] = new Option (nome, id, true);
      			}
      		}
      	}
   	}	
	xmlHttp.open("GET","ajaxMunicipio.php?searchID="+idEstado,true);
 	xmlHttp.send(null);
}
