/**
 * Retorna el objeto identificado por la cadena 'id'
 *
 * @param id
 * @return Object
 */
function getElement(id) {
    return document.getElementById? document.getElementById(id) : document.all? document.all(id) : null;
}

/**
 * Obtiene la altura del contenido de oIframe.
 *
 * @param oIframe iframe
 * @return int indica la profundidad del contenido del iframe.
 */
function getIFRAME_doc_height(oIframe) {
    return (document.body && document.body.scrollHeight)? oIframe.document.body.scrollHeight : oIframe.document.height? oIframe.document.height : null;
}


/**
 * Función que recalcula el tamaño para el iframe 'iframe_id' ajustandolo a su
 * contenido.
 *
 * @param iframe_id (String) id del iframe
 */
function IFRAME_size_to_content(iframe_id) {
    /*
    var oIframe = frames[iframe_id];
    if (typeof oIframe!= 'undefined') {
        var wid = getElement(iframe_id).offsetWidth;
        var hgt = getIFRAME_doc_height(oIframe);

        if (hgt < 500)
            hgt = 500;

        if (wid && hgt)
            oIframe.resizeTo(wid,hgt);
    }
    */
}


function insertIt() {
    var _y = document.getElementById('MenuIzdo');
    var _x = window.frames[0].document.body.innerHTML;
}

