
function OpenWindow(sUrl,nHeight,nWidth)
{
	/*	
	Opens a window containing page 'sURL', at the width and height given
	The window always opens without a toolbar, menubar or location
	It is not resizable, but scrollbars are included as is the status bar.
	*/

	var sOptions = "";
	
	//Make sure that parameter values are correct
	if (sUrl+""=="") return (0);
	if (isNaN(parseInt(nHeight))) return (0);
	if (isNaN(parseInt(nWidth))) return (0);
	
	//Set the options for height and width
	sOptions = "height="+parseInt(nHeight)+",width="+parseInt(nWidth);
	//Add the other window options
	sOptions = sOptions+",scrollbars=yes,status=yes,resizable=no,toolbar=no,menubar=no,location=no"	
	
	//Open the window
	window.open(sUrl,null,sOptions);
}


function OpenWindow2(sUrl, nWidth, nHeight, sResizable)
{
	/*	
	Opens a window containing page 'sURL', at the width and height given
	The window always opens without a toolbar, menubar or location
	It is optionally resizable, but scrollbars are included as is the status bar.
	*/

	var sOptions = "";
	
	//Make sure that parameter values are correct
	if (sUrl+""=="") return (0);
	if (isNaN(parseInt(nHeight))) return (0);
	if (isNaN(parseInt(nWidth))) return (0);
	
	//Set the options for height and width
	sOptions = "height="+parseInt(nHeight)+",width="+parseInt(nWidth);
	//Add the other window options
	sOptions = sOptions+",scrollbars=yes,status=yes,resizable=" + sResizable + ",toolbar=no,menubar=no,location=no"	
	
	//Open the window
	window.open(sUrl,null, sOptions);
}