// Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

timeout = 7;

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=60,top=60,width=" + (WIDTH+30) + ",height=" + (HEIGHT+40);

text = "<html><head><title>Dit venster sluit zichzelf</title></head><body bgcolor='white'";

if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

text += "><center><img src='" + URL + "'>";

if (timeout != 0) text +="<br><font face='comic sans' size='-1'><font color='red'><i><b>Dit venster sluit zichzelf na " + timeout + " seconden.</b></i></font color></font>";

text += "</center></body></html>";

preview = window.open("", "_blank", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}





// Call: <a href="javascript:Start('<url>', X, Y )"><img src="<url>"></a>
// Call: <a href="javascript:Start('<url>', X, Y )">omschrijving</a>
