function create_window (image, width, height) {

    // Add some pixels to the width and height.
    width = width + 25;
    height = height + 50;
    
    // If the window is already open, resize it to the new dimensions.
    if (window.popup_window && !window.popup_window.closed) {
        window.popup_window.resizeTo (width, height);
    } 
    
    // Set the window properties.
	var window_specs = "location=no, scrollbars=no, menubars=no, toolbars=no, resizable=yes, left=0, top=0, width=" + width + ", height=" + height;
	
	// Set the URL.
	var url = "image_window.php?image=" + image;
	
	// Create the pop-up window.
	popup_window = window.open(url, "PictureWindow", window_specs);
	popup_window.focus();
	
} // End of function.

