function create_picture_window (image, width, height) {
    width = width + 50;
    height = height + 70;
	if (width>(screen.width-100)) {
		width = screen.width - 100;
	}
	if (height>(screen.height-100)) {
		height = screen.height - 100;
	}
    if (window.popup_window && !window.popup_window.closed) {
        window.popup_window.resizeTo (width, height);
    } 
	var window_specs = "location=no, scrollbars=yes, menubars=no, toolbars=no, resizable=yes, left=0, top=0, width=" + width + ", height=" + height;
	var url = "show_image.php?image=" + image;
	popup_window = window.open(url, "PictureWindow", window_specs);
	popup_window.focus();
}


