<!-- 
/*
------------------------------------------------------------------------------
File Name: window_lib.js
Company: pH2 Enterprises
Author: Phillip J. Henslee II <ph2@ph2enterprises.com> ©2002
Purpose: Window Functions (Pop up windows) 
Functions: None
Date Created: August 5, 2002
Last Modified: August 5, 2002
Dependent Files: config.js
File Status: Optional
------------------------------------------------------------------------------
*/

/* 
------------------------------------------------------------------------
Function openWin
Purpose: opens new browser windows
Arguments: 5
Arg 0: thePage - Name of the file to open
Arg 1: winname - Name of the window
Arg 2: iwidth - width of the window
Arg 3: iheight - height of window
Arg 4: scroll - show scrollbars YES OR NO
------------------------------------------------------------------------
*/  
function openWin(thepage,winname,iwidth,iheight,scroll) {
   
	if (parseInt(navigator.appVersion) >= 4) {
	
		var winl = (screen.width - iwidth) / 2;
		var wint = (screen.height - iheight) / 2;
		winargs = 'height='+iheight+',width='+iwidth+',top='+wint+',left='+winl+',scrollbars='+scroll
		win = window.open(thepage,winname,winargs)
		
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } 
		} 
      	else
		{
		winargs = 'height='+iheight+',width='+iwidth+ ', scrollbars='+scroll
		window.open(thepage,winname,winargs)
		}
}

// -->









