<!-- Begin
timeout =30; // 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+50) + ",height=" + (HEIGHT+55);

text = "<html><head><title>Preview</title></head><body bgcolor='#ff6600'";

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

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

if (timeout != 0) text +="<br><link rel='stylesheet' href='../scripts/acepro.css' type='text/css'><span class='contentBody '>Preview close after " + timeout + " seconds.</span>";

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

preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}
//  End -->
