// JavaScript Document

var url_situacion = "php/situacion_main.php";  
var http_generico = getXmlHttpObject(); 


function sendQuerystringSituacion(){ 
    http_contacto_resultados.open("GET", url_situacion, true); 
    http_contacto_resultados.onreadystatechange = handleHttpResponseSituacion; 
    http_contacto_resultados.send(null); 
} 


function handleHttpResponseSituacion(){ 
    if (http_contacto_resultados.readyState == 1){ 
        document.getElementById('situacion').innerHTML = "Cargando Plano..."; 
    } 

    if (http_contacto_resultados.readyState == 4){ 
        results = http_contacto_resultados.responseText; 
        document.getElementById('situacion').innerHTML = results; 
    } 
} 



function getXmlHttpObject(){ 
    var xmlhttp; 

    /*@cc_on 
    @if (@_jscript_version >= 5) 
    try{ 
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
    } 
    catch (e){ 
    try{ 
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
    } 
    catch (e){ 
    xmlhttp = false; 
    } 
    } 
    @else 
    xmlhttp = false; 
    @end @*/ 

    if (!xmlhttp && typeof XMLHttpRequest != 'undefined'){ 
        try{ 
            xmlhttp = new XMLHttpRequest(); 
        } 
        catch (e){ 
            xmlhttp = false; 
        } 
    } 
    return xmlhttp; 
} 
