<!-- Original:  Ronnie T. Moore, Editor, Edited: Paul L. White -->
<!-- Web Site:  The JavaScript Source -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL,SB, WIDTH, HEIGHT,TITLE, HDR) {
var winl = (screen.width-[WIDTH+50])/2;
  var wint = (screen.height-[HEIGHT+120])/2;
  
windowprops = "scrollbars=" + SB + ", resizable=yes,location=no,toolbar=no,menubar=no,left=" + winl + ",top=" + wint + ",width=" + (WIDTH+50) + ",height=" + (HEIGHT+120);

text = "<html><head><title>" + TITLE + "</title><link href='res/styles/YodelQueenSite.css' rel='stylesheet'></head><body";

if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

text += "><CENTER><H1>"  + HDR + "</H1></CENTER><BR><center><img src='" + URL + "'>";

if (timeout != 0) text +="<br><font face='arial, helvetica' size='-1'>Preview closes after " + timeout + " seconds.</font>";

text += "</center></body></html>";

preview = window.open("","preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}
//  End -->

