function crearAjax(){
    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') {
         xmlhttp = new XMLHttpRequest();
    }
    return xmlhttp;
}


function mostrarpoblaciones(pagina, cmbDelimitador, divContenedora)
{      
var contenedor = document.getElementById(divContenedora);
contenedor.style.display='inline';

var url_final = pagina+'?valor='+cmbDelimitador;

//Se crea un objeto XMLHttpRequest
var objAjax = crearAjax();                     
objAjax.open("GET", url_final)
objAjax.onreadystatechange = function() {
    //alert (objAjax.readyState);
	if (objAjax.readyState == 4) {
    //Se escribe el resultado en la capa contenedora      
	//alert ('ahora');
    contenedor.innerHTML = objAjax.responseText;
    }
}
objAjax.send(null);
}