/*---------------------------------------------------------------------------
Version 2.6
Cross-Platform DHTML Functions And Global Variables
LastMod: 20/05/2002   Author: Chris Drake

function addOnloadFunction(arefFunction)
function callOnloadFunctions()
function displayPopupWindow(astrURL,astrName,aintWidth,aintHeight)
---------------------------------------------------------------------------*/

//---------------------------------------------------------------------------
// Adds a reference to a function to the list to be run when the page loads.
function addOnloadFunction(arefFunction) {
	// Mac IE 4.5 will crash when testing 'window.onload'.
	if (gblnMac && gblnAll && !gblnDOM) {
		window.onload = callOnloadFunctions;
		garrrefOnloadFunctions[garrrefOnloadFunctions.length] = arefFunction;
	}
	else if (window.onload) {
		if (window.onload != callOnloadFunctions) {
			garrrefOnloadFunctions[0] = window.onload;
			window.onload = callOnloadFunctions;
		}
		garrrefOnloadFunctions[garrrefOnloadFunctions.length] = arefFunction;
	}
	else window.onload = arefFunction;
}
//---------------------------------------------------------------------------
// Calls each of the functions in the 'garrrefOnloadFunctions' array.
function callOnloadFunctions() {
	for (var i = 0; i < garrrefOnloadFunctions.length; i++) garrrefOnloadFunctions[i]();
}
//---------------------------------------------------------------------------
// Opens up a standard popup window for a given URL.
function displayPopupWindow(astrURL,astrName,aintWidth,aintHeight) {
	var objWindow;     // New window object
	var strOptions;    // Options for opening window
	var intPositionLeft = (screen.width - aintWidth) / 2;
	var intPositionTop = (screen.height - aintHeight) / 2;

	strOptions = "width=" + aintWidth + ",height=" + aintHeight +
	             ",dependent=true,resizable=yes,scrollbars=yes" +
	             ",toolbar=no,location=no,menubar=no,status=no" +
	             ",left=" + intPositionLeft + ",screenx=" + intPositionLeft +
	             ",top=" + intPositionTop + ",screeny=" + intPositionTop;

	objWindow = window.open(astrURL,"win" + astrName,strOptions,false);
	objWindow.focus();
}
//---------------------------------------------------------------------------

// Declare browser testing variables.
var gblnAll    = (document.all) ? true : false;                  // 'document.all' support
var gblnLayers = (document.layers) ? true : false;               // 'layers' support
var gblnDOM    = (document.getElementById) ? true : false;       // 'getElementById' support
var gblnMac    = (navigator.appVersion.indexOf("Mac") != -1);    // True for Apple Macintosh

// Declare combination variables.
var gblnDHTML      = (gblnAll || gblnLayers || gblnDOM);       // DHTML support
var gblnDOMOnly    = (gblnDOM && !(gblnAll || gblnLayers));    // 'getElementById' ONLY

// Declare array of references to functions to be run when the page loads.
var garrrefOnloadFunctions = new Array();