﻿// Archivo JScript

String.prototype.trim = function(){ return this.replace(/^s+|s+$/g,'') }   

function presentarMensajeCargando()
{
    if (document.getElementById("cargando") != undefined)
    {
        document.getElementById("cargando").style.width = (document.getElementById("contenido").clientWidth + 50) + "px";
        document.getElementById("cargando").style.height = (document.getElementById("contenido").clientHeight + 40) + "px";
        document.getElementById("cargando").style.display = "block";
    }
}
function quitarMensajeCargando()
{
    document.getElementById("cargando").style.display = "none";
}

function xGetElementById(e) {
    if (typeof (e) != 'string') return null;
    if (document.getElementById) e = document.getElementById(e);
    else if (document.all) e = document.all[e];
    else e = null;
    return e;
}
