/* ==========
    
	DisplayPopup.js

	Purpose:
 	  Displays a popup window containing the page defined.

	Revisions:
	  None.

	Usage:
      DisplayPopup( DialogURL, width, height );
	 
	Expected Input:
	  DialogURL    - URL of the page to display
	  DialogWidth  - width, in pixels, to make the window
	  DialogHeight - height, in pixels, to make the window

	Expected Output:
	  None.

	Known Issues:
	  None.

========== */

function DisplayPopup( DialogURL, DialogWidth, DialogHeight ) {
    Settings = "width=" + DialogWidth + ",height=" + DialogHeight + ",scrollbars=auto";
	Dialog = window.open( DialogURL, "Dialog" + DialogWidth, Settings );
	// alert('Name: ' + window.name);
	
	try {
		Dialog.creator = self;
	} catch(error) {
		// nothing
	}
}

function DisplayPopupWithScroll( DialogURL, DialogWidth, DialogHeight ) {
    Settings = "width=" + DialogWidth + ",height=" + DialogHeight + ",scrollbars=yes";
	Dialog = window.open( DialogURL, "Dialog" + DialogWidth, Settings );
	// alert('Name: ' + window.name);
	
	try {
		Dialog.creator = self;
	} catch(error) {
		// nothing
	}
}