
	// ------------------------------------------------------------------------------------
	// openWindow
	// ------------------------------------------------------------------------------------
	// Parameter List:
	//
	//	• sURL			string -- the url of the file whose contents to display in the new window
	//	• nWidth		number -- the width of the new window in pixels
	//	• nHeight		number -- the height of the new window in pixels
	// 	• bResizable	boolean -- 0 or 1, indicates if the window is to be resizable 
	// 	• bStatus		boolean -- 0 or 1, indicates if the window is to have a status bar
	// 	• bMenubar		boolean -- 0 or 1, indicates if the window is to have a menu bar
	// 	• bToolbar		boolean -- 0 or 1, indicates if the window is to have a tool bar 
	// ------------------------------------------------------------------------------------
	// Remarks:
	//
	//	• Creates a new window and puts the contents of the file found at sURL in the window.
	//	• Has options preset regarding the window's menus, toolbars, etc. 
	//	• Centers the new window on the screen.
	// ------------------------------------------------------------------------------------
	// Requirements:
	//
	//	•
	// ------------------------------------------------------------------------------------
	// History:
	//
	//	• 03.06.2002 -- threedeadflies@hotmail.com -- wrote the function
	// ------------------------------------------------------------------------------------
	//
	function openWindow( sURL, nWidth, nHeight, bResizable, bStatus, bMenubar, bToolbar, bScrollbars, nTop, nLeft, sWindowName) 
	{ 
		var n_Left = 0 ;
		var n_Top = 0 ;
		var i = 0 ;
			
		// if a 'LEFT' value is received, apply it to the window location:
		if(nLeft || (nLeft == 0) )
		{
			n_Left = nLeft ;
		}
		else
		{
			n_Left = ( screen.availWidth - ((nWidth)?nWidth:700) ) / 2  ;  
		}
		
		// if a 'TOP' value is received, apply it to the window location:
		if(nTop || (nTop == 0) )
		{
			n_Top = nTop ;
		}
		else
		{
			n_Top = ( screen.availHeight - ((nHeight)?nHeight:600) ) / 2 ; 
		}
		return( window.open( sURL, (sWindowName?sWindowName:"bananahead"), "resizable=" + ((bResizable)?bResizable:0) + ", status=" + ((bStatus)?bStatus:0) + ", menubar=" + ((bMenubar)?bMenubar:0) + ", toolbar=" + ((bToolbar)?bToolbar:0) + ", left=" + n_Left + ", top=" + n_Top + ", width=" + nWidth + ", height=" + nHeight + ", scrollbars=" + ((bScrollbars)?bScrollbars:0), true ) ) ; 
	} 

