Que tal amigos
 
Tengo un select o combo independiente  el cual en vez de cambiar totalmente me guarda los valores anteriores. ¿Que es lo que hago mal ?
 
 
xmlHttp.open("GET","SelectMuestraMunicipios.php?id  EstadoBuscar=" + idEstadoBuscar,false);
					xmlHttp.onreadystatechange=function()
					{
 
if (xmlHttp.readyState==4)
						{
											if(xmlHttp.status==200)
											{
															try
															{
																var xmlResponse= xmlHttp.responseXML;
																xmlRoot=xmlResponse.documentElement;
																MunicipioXML=xmlRoot.getElementsByTagName("Municip  io");
																idMunicipioXML=xmlRoot.getElementsByTagName("idMun  icipio");
 
																idMunicipio.disabled=false;
																idMunicipio.options[0].text="Seleccione uno...";
 
																			for(var i=0;i<=MunicipioXML.length;i++)
																			{
																				var nuevaOpcion=document.createElement("option");
																				nuevaOpcion.value=idMunicipioXML[i].childNodes[0].nodeValue;
																				nuevaOpcion.innerHTML=MunicipioXML[i].childNodes[0].nodeValue;
																				idMunicipio.appendChild(nuevaOpcion);
																				//y.options[i+1]= new Option(AgenciaXML.item(i).firstChild.data);
																			}
															}
												catch(e){ }
 
											}
											else{
											alert("hay un problema al tratar de recuperar los datos: \n"+xmlHttp.statusText);
											}
 
							}//cerramos readystate 4
 
				}//cerramos funcion
			xmlHttp.send(null); 
   
 

