﻿// JScript File

function Showmeat(id, dx, dy)
{
    var div1 = document.getElementById(id);
    div1.style.visibility = 'visible';
    div1.style.position = 'absolute';
    div1.style.left = xMousePos + dx;
    div1.style.top = yMousePos + dy;
}

function Hideme(id)
{
    var div1 = document.getElementById(id);
    div1.style.visibility = 'hidden';
    div1.style.position = 'absolute';
    div1.style.left = 0;
    div1.style.top = 0;
}

function ToggleTable(tableName)
{
    var table = document.getElementById(tableName)
    for(i=1; i<table.rows.length; i++)
    {
        if(table.rows[i].style.display == "")
            table.rows[i].style.display = "none";
        else
            table.rows[i].style.display = "";
    }
    
    table.scrollIntoView('');
}

