var xmlhttp = false;
try {
//Si la versión de Javascript superior a 5.
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    //document.title="Está en Internet Explorer";
} catch (e) {
    try {        
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        //document.title="Está en Internet Explorer";
    } catch (E) {        
        xmlhttp = false;
    }
}
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    xmlhttp = new XMLHttpRequest();
    //document.title="Navegador distinto a Internet Explorer";
}
function hazSolicitud(documentoOrigen, idContenedorDestino) {
	
    var obj = document.getElementById(idContenedorDestino);
    xmlhttp.open("GET", documentoOrigen);
    xmlhttp.onreadystatechange = function() {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            obj.innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
}
