function popUpImage(imageName, width, height) {
	var left;
	var top;
	//half the screen width minus half the new window width (plus 5 pixel borders).
	left = (window.screen.width - width) / 2;
	//half the screen height minus half the new window height (plus title and status bars).
	top = (window.screen.height - height) / 2;
	
	var day = new Date();
	var id = day.getTime();
	window.open("popupimage.php?height=" + (height - 40) + "&width=" + (width - 25) + "&img=" + imageName, "" + id, "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + width + ",height=" + height + ",left = " + left + ",top = " + top);
}
