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 seleccionarcategoria(pagina, cmbDelimitador, divContenedora)
{      
var contenedor = document.getElementById(divContenedora);
var url_final = pagina+'?valor='+cmbDelimitador;

//Se crea un objeto XMLHttpRequest
var objAjax = crearAjax();                     
objAjax.open("POST", url_final)
objAjax.onreadystatechange = function() {
    if (objAjax.readyState == 4) {
    //Se escribe el resultado en la capa contenedora      
    contenedor.innerHTML = objAjax.responseText;
	//alert(objAjax.responseText);

    }
}
objAjax.send(null);
}