
timeout =5; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=0,top=0,width=" + (WIDTH+0) + ",height=" + (HEIGHT+0);
text = "<html><head><title>PHOTO</title></head><body bgcolor='white'";
if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";
text += "><center><img src='" + URL + "'>";
if (timeout != 0) text +="<font face='arial, helvetica' size='-1'><br><br>Cette fen&ecirc;tre se ferme automatiquement dans " + timeout + " secondes.";
text += "<br><a href='javascript:window.close()';>Fermer la fen&ecirc;tre</a>";
text += "</center></font></body></html>";
preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}

