//=============================================================================
//	Name:		script-01v100.js
//	Author:		Irina Zlobina
//	Date:		1-04-2003
//	Description:	Utility functions Set 1
//	Version:	1.00
//=============================================================================

//=============================================================================
//	Function:	popWindow
//	Description:	Pop Window Function 
//			  popes a window of a right size and loads the HTML
//                        window is opened and closed to support IE and NN 
//                        crossplatform resizing and alway create a single window
//
//		Defaults:	width     = 600
//				hight     = 400
//				toolbar   = no
//				menubar   = no
//				scrollbar = no
//				Other defaults are not parameterised
//=============================================================================
function popWindow(html_url, width, height, toolbar, menubar, scrollbar) {

  // ------------  Set Window format, use default if no values supplied ------------
  windowFormat = ""
  windowFormat = windowFormat + "width=" + (width ? width : 600)
  windowFormat = windowFormat + ",height=" + (height ? height : 400)
  windowFormat = windowFormat + ",toolbar=" + (toolbar ? "yes" : "no")
  windowFormat = windowFormat + ",menubar=" + (menubar ? "yes" : "no")
  windowFormat = windowFormat + ",scrollbars=" + (scrollbar ? "yes" : "no")
  windowFormat = windowFormat + ",resizable=no"
  windowFormat = windowFormat + ",directories=no"
  windowFormat = windowFormat + ",location=no"
  windowFormat = windowFormat + ",status=no"
  windowName = "htmlWin";

  // ------------  Open Window -----------------------------------------------------

  wref = window.open (html_url, windowName,windowFormat);
  wref.focus();

  // -------------------------------------------------------------------------------
}

