 /*
=====================================
       Javascript functions for Help Popup Html File
=====================================
*/

/*
 *	name:			openHelpPopupOffScreen
 *	purpose:	Opens window off of screen
 *  params:
 *				- xURL : relative path to Help Popup file
 *				- name : name of popup window
*/
function openHelpPopupOffScreen(xURL, name, width, height)
{
	var options = "width=" + width + ",height=" + height + ",left=0,top=0,resizable=yes,toolbar=no,location=no,directories=no,menubar=no,scrollbars=no";
	window.open(xURL, name, options);
}

function openHelpPopupOffScreenScroll(xURL, name, width, height)
{
	var options = "width=" + width + ",height=" + height + ",left=0,top=0,resizable=yes,toolbar=no,location=no,directories=no,menubar=no scrollbars=yes";
	window.open(xURL, name, options);
}

/*
 *	name:			helpPopupResizeWindow
 *	purpose:	Resizes window
*/
function helpPopupResizeWindow( popupWidth, popupHeight )
{
	if(window.screenLeft != 0 && window.screenTop != 0){
		window.moveTo( 0,0 );	
	}
	window.resizeTo( popupWidth, popupHeight );
}

/*
 *	name:			helpPopupMoveWindow
 *	purpose:	Moves window to the desired Locaton
 *	params:
 *		- horizontalOffset : indicate the number of
 *																pixels to horizontally offset the window
 *																relative to the specified object
 *		- verticalOffset : indicate the number of
 *														pixels to vertically offset the window
 *														relative to the specified object
 *		- reference :	indicates what object to reference and 
 *												what on the object to reference
 *							Possible Values:
 *								- "TOP_LEFT_OF_BROWSER"
 *								- "TOP_LEFT_OF_SCREEN"
 *								- "BOTTOM_RIGHT_OF_SCREEN"
 *								-  anything else
*/
function helpPopupMoveWindow( horizontalOffset, verticalOffset, reference )
{

	window.focus();
	
}