///////////////////////////////////////////////////////////////////////////////
//	EG Systems
//	Standard Site Framework
//	Standard Client Scripting
//	Version 01.00
///////////////////////////////////////////////////////////////////////////////

// Open a new window in the center of the screen for a given URI and with the given dimensions
function OpenNewWindow(strURI, intWidth, intHeight) {
	intTop = (screen.availHeight - intHeight - 50) / 2;
	intLeft = (screen.availWidth - intWidth) / 2;
	window.open(strURI, "",
		"toolbar=no," + 
		"location=no, " + 
		"directories=no," + 
		"status=yes," + 
		"menubar=no," + 
		"scrollbars=yes," + 
		"resizable=yes," + 
		"width=" + intWidth + "," +  
		"height=" + intHeight + "," + 
		"left=" + intLeft + "," + 
		"top=" + intTop
	);
}

// Open a new fixed window
function OpenNewFixedWindow(strURI, intWidth, intHeight) {
	intTop = (screen.availHeight - intHeight - 50) / 2;
	intLeft = (screen.availWidth - intWidth) / 2;
	window.open(strURI, "",
		"toolbar=no," + 
		"location=no, " + 
		"directories=no," + 
		"status=no," + 
		"menubar=no," + 
		"scrollbars=no," + 
		"resizable=no," + 
		"width=" + intWidth + "," +  
		"height=" + intHeight + "," + 
		"left=" + intLeft + "," + 
		"top=" + intTop
	);
}
