/* <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
BHA Window Open Function
This function will Open up a new Window in the middle of the page.

Properties:
[.open] ([url],[name][w][h][scroll])


BHA_WindowOpen( 'New url to open',
				'New name of window',
				Width of New Window,
				Height of New Window,
				'Yes or No for scroll bar')
			
** NOTE all strings must be enclosed in "" or ''

How to Access the BHA Window Open Function:

Put this in the page to access the BHA browser object.
<script language="javascript" src="/systems/global/scripts/BHA_WindowOpen.js"></script>

Example:

Pseudo Call,
<a href="javascript:BHA_WindowOpen('myURL.asp','newWin',444,444,'yes')">Open Window</a>

Event Call,
onlick = "BHA_WindowOpen('MyOtherURL.asp','AnotherWin',500,600,'no')"
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>*/

function BHA_WindowOpen(url,name,w,h,scroll)
{
	var win = null;
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar=no,location=no,status=no,menubar=no,resizable=no,dependent=no'
	win=window.open(url,name,settings);
	
	if(parseInt(navigator.appVersion) >= 4)
	{
		win.focus();
	}
}  
