
/***********************************************
 * HelpWindow - this object represents a small
 * child window, usually containing a help page,
 * hence the name.
 ***********************************************/

// This is the public constructor for the HelpWindow Object.
function HelpWindow(URL, name, top, left, width, height)
{
	// First, build the mode string.
	this.strMode = "toolbar=no,scrollbars=yes,dependent=yes,hotkeys=yes";

	// Add window size
	this.strMode += ",height=" + height + ",width=" + width;

	// Add window position
	this.strMode += ",screenX=" + left + ",screenY=" + top;

	// Now open the window using the pre-built mode string.
	this.wnd = window.open(URL, name, this.strMode);
	this.wnd.focus();
	this.close = _CloseHelpWindow;
}

// This function closes the window associated with this object
function _CloseHelpWindow()
{
	this.wnd.close();
}

/***************************************************************************/

/* Redirect - this function changes the current location
   to the specified URL */

function Redirect(URL)
{
	window.location.href = URL;
}


// Status - set the text of the statusbar to the specified string

function Status(strText)
{
	window.status = strText;
}
