function window_open(window_url, window_name, window_width, window_height, window_statusbar) {

			if(window.open) {

				return window.open(window_url,window_name,"width="+window_width+",height="+window_height+",status="+window_statusbar+",resizable=yes");

			}

		}

		

		// Function that writes dynamic html content to a window

		function document_write(target_window, html_text) {

			if(target_window) {

				target_window.focus();

				target_window.document.open();

				target_window.document.write(html_text);

				target_window.document.close();

			}

		}

		

	    function image_enlarge(image_name, image_legend, window_title,width,height) {

			thePic = window_open("","",width,height,"yes");

			document_write(thePic, "<html><head><title>Picture</title></head><body bgcolor=\"#FFFFFF\" text=\"#000000\" leftmargin=\"15\" topmargin=\"15\" marginwidth=\"0\" marginheight=\"0\" onBlur=\"window.close()\"><a href=\"#\" onclick=\"window.close()\"><img src=\""+image_name+"\"  border=\"0\" title=\""+window_title+"\"> </a><br><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">"+image_legend+"<br><div align=\"center\"><a href=\"#\" onclick=\"window.close()\">Close Window</a></div></font></body></html>");

		}

		

		function image_enlargeWithText(image_name, image_legend, window_title,width,height) {

			thePic = window_open("","",width,height,"yes");

			document_write(thePic, "<html><head><title>Picture</title></head><body bgcolor=\"#FFFFFF\" text=\"#000000\" leftmargin=\"15\" topmargin=\"15\" marginwidth=\"0\" marginheight=\"0\" onBlur=\"window.close()\"><a href=\"#\" onclick=\"window.close()\"><img src=\""+image_name+"\"  border=\"0\" title=\""+window_title+"\"> </a><br><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">"+image_legend+"<br><div align=\"center\"><a href=\"#\" onclick=\"window.close()\">Close Window</a></div></font></body></html>");

		}

		

