    /////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
   //            JavaScript code for Hall Xtra!            \\
  //  Written by Kevin Stanek of Stanek Software Development  \\
 //                         18 Feb 2003                        \\
/////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

// determine the computer platform
var platMac = (navigator.appVersion.indexOf("Mac") != -1);
var platWin = (navigator.appVersion.indexOf("Win") != -1);

// determine the browser in use
var browNet  = (navigator.appName.indexOf("Netscape") != -1);
var browNet6 = (browNet && navigator.appVersion.substr(0,1) > "4");
var browMic  = (navigator.appName.indexOf("Microsoft") != -1);

var popWin = null;

// -----------------------------------------------
// OpenWin
// -----------------------------------------------
function OpenWin(wd, ht, URL, showBars, winNum)
{
	winLeft = Math.floor((screen.width - wd) / 2);
	if (platMac)
	{
		winLeft -= 8;
	}
	else
	{
		winLeft -= 6;
	}
	if (winLeft < 0)
	{
		winLeft = 0;
	}
	else if (winLeft > screen.width - wd)
	{
		winLeft = screen.width - wd;
		if (platMac)
		{
			if (browNet)
			{
				winLeft -= 12;
			}
			else
			{
				winLeft -= 30;
			}
		}
		else
		{
			winLeft -= 12;
		}
	}
	// form features with which to open the window
	if (browMic || browNet6)
	{
		openFeatures = "height=" + ht;
		openFeatures = openFeatures + ",width=" + wd;
		openFeatures = openFeatures + ",left=" + winLeft;
		openFeatures = openFeatures + ",top=0";
	}
	else
	{
		openFeatures = "innerHeight=" + ht;
		openFeatures = openFeatures + ",innerWidth=" + wd;
		openFeatures = openFeatures + ",screenX=" + winLeft;
		openFeatures = openFeatures + ",screenY=0";
	}
	openFeatures = openFeatures + ",menubar=yes";
	openFeatures = openFeatures + ",resizable=yes";
	openFeatures = openFeatures + ",scrollbars=yes";
	openFeatures = openFeatures + ",status=yes";
	openFeatures = openFeatures + ",toolbar=yes";
	if (showBars)
	{
		openFeatures = openFeatures + ",location=yes";
	}
	else
	{
		openFeatures = openFeatures + ",location=no";
	}

	// open the window
	win = window.open(URL, "__________________________________________________".substr(1,winNum), openFeatures, "");

	// bring the window to the top
	win.focus();

	// in 1 1/2 second, raise the window under Windows
	if (platWin)
	{
		popWin = win;
		setTimeout("OpenWinPop()",1500);
	}
}

// -----------------------------------------------
// OpenWinPop
// -----------------------------------------------
function OpenWinPop()
{
	if (typeof popWin != "undefined")
	{
		if (!popWin.closed)
		{
			popWin.focus();
		}
	}
}

