timeout =30; // Close window after __ number of seconds?

// 0 = do not close, anything else = number of seconds



function Start(URL, WIDTH, HEIGHT) {

windowprops = "left=72,top=24,width=" + (WIDTH+45) + ",height=" + (HEIGHT+45);



text = "<html><head><title>Large View</title></head><body bgcolor='#f3eeed'";



if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";



text += "><center><img src='" + URL + "'>";



if (timeout != 0) text +="<br><br><font face='arial, helvetica' size='-1'>Large view closes automatically after " + timeout + " seconds.</font>";



text += "</center></body></html>";



preview = window.open("", "preview", windowprops);

preview.document.open();

preview.document.write(text);

preview.document.close();

}
