﻿
function readMore(ctrl)
{
    document.getElementById(ctrl).style.display = document.getElementById(ctrl).style.display == "none" ? "" : "none";
}

function popUp(url, name, width, height)
{
    str = "height=" + height + ",width=" + width + ",scrollbars=0";
    if (parseInt(navigator.appVersion) > 3)
        str += ",left=" + (screen.width - width) / 2 + ",top=" + parseInt((screen.height - height) / 3);

    win = window.open(url, name, str);
    win.focus();
}

function showImage(id)
{
    for (var i = 1; i <= 19; i++)
    {
        try
        {
            document.getElementById("trImage" + i).style.display = "none";
        }
        catch (e) { }
    }

    document.getElementById("trImage" + id).style.display = "";
}

function insertAudit(name) 
{
    PageMethods.AuditAction(name);
}
