<!-- 
/*
------------------------------------------------------------------------------
File Name: pH2.window.js
Company: ph2enterprises
Author: Phil Henslee <ph2@ph2.us> ©2003
Purpose: Window Functions (Pop up windows) 
Functions: None
Date Created: April 25, 2003
Last Modified: April 25, 2003
Required Files: config.js
File Status: Optional
------------------------------------------------------------------------------
*/

/*  ------------------------------------------
     ** Create window class 
    ------------------------------------------
*/ 

	 pH2.WindowManager = function(){
		 
	 }

/* 
------------------------------------------------------------------------
Method open
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
------------------------------------------------------------------------
*/  
pH2.WindowManager.prototype.open = function(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)
		}
}

// Create instance of WindowManger Object
   pH2.Window = new pH2.WindowManager();

// -->









