﻿// JScript File

// Global variables
var busyBox = null;

function hideBusy()
{
    if(busyBox != null)
    {        
        busyBox.Hide();
    }
}

// used to notify the user we're moving to another page.
function showBusy()
{    
    busyBox = new BusyBox('BusyBox1', 'busyBox', 4, 'images/stage', '.png', 500, 100, 75);  //4, gears_ani_  .gif
    busyBox.Show();
    return false;

}

function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}