﻿// JScript File

function ShowPopup(hoveritem,id) 
{ 
    hp = document.getElementById(id); 

    // Set popup to visible 
    if ( hp.style.visibility!= "visible" ) 
    { 
       hp.style.visibility = "visible"; 
    }
} 

function KeepPopup(hoveritem,id) 
{ 
    hp = document.getElementById(id); 

    // Set popup to visible 
    hp.style.top = hoveritem.offsetTop; 
    hp.style.left = hoveritem.offsetLeft; 

    hp.style.visibility = "Visible"; 
} 

function HidePopup(id) 
{ 
    hp = document.getElementById(id); 
    hp.style.visibility = "Hidden"; 
} 

function showhide(id)
{ 
    if (document.getElementById)
    { 
        obj = document.getElementById(id); 
        
        if (obj.style.display == "none")
        { 
            obj.style.display = "";
            obj.text = "hi";
        } 
        else 
        { 
            obj.style.display = "none"; 
            obj.text = "hi";
        } 
    } 
} 

function buttonLite(FRM,BTN)
{
   window.document.forms[FRM].elements[BTN].style.color = "#FFFFFF";
   window.document.forms[FRM].elements[BTN].style.backgroundColor = "#04B422";
}

function buttonDim(FRM,BTN)
{
   window.document.forms[FRM].elements[BTN].style.color = "#EEFFFF";
   window.document.forms[FRM].elements[BTN].style.backgroundColor = "#660000";
}
