// Make a pop-up window function

function popUp (photosc, photo, image_width, image_height) {
	
	width = (screen.width / 2)
	height = (screen.height / 2)
	
	//store image dimensions for later use
	window.image_width = image_width
	window.image_height = image_height
	
	// Set the window properties
	window_specs = "location=no, scrollbars=no, menubars=no, toolbars=no, resizable=yes, left=0, top=0, width=" + width + ",height=" + height


	// Set the URL
	image_location = "view_image.php?c=" + photosc + "&n=" + photo  + "&w=" + image_width + "&h=" + image_height

	// Create the pop-up window
	popup_window = window.open(image_location, "Photo", window_specs)
	popup_window.focus()

} // End of function

