 <!-- 
/*
-------------------------------------------------------------------------
File Name: pH2.Utility.js
Company: ph2enterprises
Author: Phil Henslee <ph2@ph2.us> ©2003
Purpose: utility class
Date Created: April 26, 2003
Last Modified: April 26, 2003
Required Files: config.js
File Status: Optional
------------------------------------------------------------------------
*/

/*
------------------------------------------------------------------------
** Create pH2 Utility Class
------------------------------------------------------------------------
*/

	pH2.Utility = function(){
	}

/* 
------------------------------------------------------------------------
Method: loadURL
Purpose: load URL in browser curent window or target window
Arguments: 1
Arg 0: thePage - Name of the file to open
------------------------------------------------------------------------
*/  

pH2.Utility.prototype.loadURL = function(s){
	
	var tempStr = s;
        var strPos = tempStr.indexOf(",");
	var myLen = tempStr.length;
	
	if (strPos != -1){
		var sURL = tempStr.slice(0,strPos)
		var sTarget = tempStr.slice(strPos +1 , myLen)
	 }
	 else
	 {
		var sURL = tempStr
		var sTarget  = 'self';
	 }
	
	if ( sTarget != -1){
	
		if (sTarget == "_blank"){
		
	        window.open(sURL);
	        	
	    }else{
	      	
	      	window.parent[sTarget].location.href=sURL;
	    }
	 }    	
}



/* 


// ** Create Instance of Ph2 Utility object
pH2.Utility = new pH2.Utility();

/* 
------------------------------------------------------------------------
Function: goMenu(theMenu)
Purpose: loads selected URL from select menu
Arguments: 1
Arg 0: theMenu  the name of the select menu (this)
------------------------------------------------------------------------
*/ function goMenu(theMenu){

	var strURL = theMenu.options[theMenu.selectedIndex].value
	if (strURL != 'null'){
	window.parent.location.href = strURL;
	}
	
}

// -->
