function openNewWindow ( sURL, sTitle, iWidth, iHeight) {

/****************************************************************************************
status  	The status bar at the bottom of the window.
toolbar 	The standard browser toolbar, with buttons such as Back and Forward.
location 	The Location entry field where you enter the URL.
menubar 	The menu bar of the window
directories The standard browser directory buttons, such as What's New and What's Cool
resizable 	Allow/Disallow the user to resize the window.
scrollbars 	Enable the scrollbars if the document is bigger than the window
height 		Specifies the height of the window in pixels. (example: height='350')
width 		Specifies the width of the window in pixels.
****************************************************************************************/


	var popupWin;
	var sOptions;
	
	sOptions = "";
	sOptions += "status=0, ";
	sOptions += "toolbar=0, ";
	sOptions += "location=0, ";
	sOptions += "menubar=0, ";
	sOptions += "directories=0, ";
	sOptions += "resizable=1, ";
	sOptions += "scrollbars=0 ";
	
	if ( iHeight >= 0 ) {
		sOptions += ", height=" + iHeight;
	}

	if ( iWidth >= 0 ) {
		sOptions += ", width=" + iWidth;
	}
	
	popupWin = window.open( sURL, sTitle, sOptions)
	return popupWin;

}
