timeout =0; // Close window after __ number of seconds? 0 = do not close, anything else = number of seconds
function Start(URL, WIDTH, HEIGHT) {
	windowprops = "left=1,top=1,width=" + (WIDTH+6) + ",height=" + (HEIGHT+6);
	text = "<html><head><title>Image</title></head><body bgcolor='#b44025' leftmargin='0' topmargin='3'";
	if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";
	text += "><center><img src='" + URL + "'>";
	text += "<br><a href='' onclick='window.close()' style='color:#F0C89F;font-family:arial,Helvetica,sans-serif;font-size:12px;font-weight:bold;text-decoration:none;'>Close Window</a>";
	if (timeout != 0) text +="<br><font face='arial, helvetica' size='-1'>Preview closes after " + timeout + " seconds.</font>";
	text += "</center></body></html>";
	preview = window.open("", "preview", windowprops);
	preview.document.open();
	preview.document.write(text);
	preview.document.close();
}