
function Start(URL, WIDTH, HEIGHT, TITLE) {
timeout = 0; // Close window after __ number of seconds?  0 = do not close, anything else = number of seconds
x = (screen.width-WIDTH)/2;
y = (screen.height-(HEIGHT+110))/2;
windowprops = "left=" + x + ",top=" + y + ",scrollbars=no,resizable=yes,width=" + WIDTH + ",height=" + HEIGHT;
text = "<html><head><title>" + TITLE ;
if (timeout != 0) text +="  - closes after " + timeout + " sec.";
text +="</title></head>";
text +="<body onload='self.focus();' bgcolor='FEEABE' link='FF0000' vlink='FF0000'";
if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");top.window.focus();\"";
text += "><div align='center'><img src='" + URL + "'>";
text += "<p style='margin-top:4;margin-bottom:0;'><a href='javascript:void(0);' onclick='window.close();'><b style='font: bold 20px Arial,Helvetica,sans-serif;'>close window</b></a>";
text += "</div></body></html>";
preview = window.open("", "preview", windowprops);
preview.moveTo(x,y);
preview.window.focus();
preview.document.open();
preview.document.write(text);
preview.document.close();
}
