function OpenWindowCentered(theURL,winName, width, height) {
	var aw = screen.availWidth - 10;
	var xc = (aw - width) / 2;
	features = "menubar,status,scrollbars,resizable, top=0, left=" + xc + ",screenX=" + xc+", width=" + width + ", height=" + height;
	window.open(theURL,winName,features);

}