﻿<!--
function ResizeFirstPage()
{
    try
    {
        if (window==parent) return -1;
        if (parent.frames.length==0) return -1;
        parent.document.getElementById('FrmForum').style.height=document.body.scrollHeight+20;
    }
    catch(ex)
    {
        alert(ex.description);
    }
}

function LoginResizeTable()
{
    try
    {
        var tdLogin=document.getElementById('tdContainerLogin');
        if (document.all)
        {
            tdLogin.style.width=document.body.clientWidth+'px';
            tdLogin.style.height=document.body.clientHeight+'px';
        }
        else
        {
            tdLogin.style.width=window.innerWidth+'px';
            tdLogin.style.height=window.innerHeight+'px';
        }
    }
    catch(ex)
    {
        alert(ex.description);
    }
}

function AbrirNoticia(IdNoticia)
{
    try
    {
        var w=window.open('DetalleNoticia.aspx?n=' + IdNoticia,'wndDetalleNoticia','width=800,height=600,resizable=yes,scrollbars=yes');
        w.focus();
    }
    catch(ex)
    {
        alert(ex.description);
    }
}

function EnlargeImage(ImgSrc)
{
    try
    {
        if (document.all) window.open('MostrarImagen.aspx?' + ImgSrc,'ImgNoticia','width=800px,height=600px,resizable=yes,scrollbars=yes',true);
        else window.open(ImgSrc,'ImgNoticia','width=800px,height=600px,resizable=yes,scrollbars=yes',true);
    }
    catch(ex)
    {
        alert(ex.description);
    }
}
-->