function openCenteredWindow(url, windowName, width, height, otherParams, theOpener)
{

	var winX = Math.round(((window.screenX || window.screenLeft || 0)/2) - (width/2));
	var winY = Math.round((screen.availHeight/2) - (height/2));
	
	var params = "width=" + width + ",innerWidth=" + width + ",height=" + height + 
			",innerHeight=" + height + ",left=" + winX + ",top=" + winY;

	if(otherParams)
		params += "," + otherParams;
	
	if(!theOpener)
		theOpener = window;
		
	var win = theOpener.open(url, windowName, params);
	win.focus();
	
	return win;
	
}
