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

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

text = "<html><head><title>TradeMark Homes Photo Gallery</title></head><body bgcolor='#000000' link='#FFFFFF' vlink='#BD8900' alink='#BD8900' onblur='self.close()'";

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

text += "><center><img src='" + URL + "' border=1 alt='TradeMark Homes (A Joe Pucci Jr. Custom Home)'>";

if (timeout != 0) text +="<br><font face='times, serif' size='2'>Preview closes after " + timeout + " seconds.</font>";

text += "<br><br><font face='times, serif' size='2'><a href='javascript:window.close();'>Close Window</a></font></center></body></html>";

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