﻿function ViewEvento(CD_PAGINA, CD_EVENTO)
{
    if(CD_PAGINA == null)
        location.href = 'View.aspx?CD_EVENTO=' + CD_EVENTO;
    else
    {
        var url = new String(parent.location.href);
        url = url.toUpperCase();
        if(url.indexOf('DEFAULTWCM') != -1)
            parent.location.href = '../../DefaultWCM.aspx?wcmp=' + CD_PAGINA + '&CD_EVENTO=' + CD_EVENTO;
        else
            parent.location.href = '../../Default.aspx?wcmp=' + CD_PAGINA + '&CD_EVENTO=' + CD_EVENTO;
    }
}

function ViewOutrosEventos(CD_PAGINA)
{
    ViewEvento(CD_PAGINA, '');
}
