// JavaScript Document
<!-- // This is the HTML Generator for Portfolio pages code // -->


timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL,newText) {
<!--windowprops = "left=10,top=10,width=" + (WIDTH+10) + ",height=" + (HEIGHT+10);-->
windowprops = "left=10,top=10,width=800,height=670, scrollbars=yes, resizable=yes" ;
text = "<html><head><title>Chicago History Museum: Great Chicago Stories</title><LINK rel='stylesheet' href='../style/popup.css' type='text/css'><LINK rel='stylesheet' type='text/css' href='../style/print.css' media='print'><script type='text/javascript' src='../js/onblur.js'></script></head><body onload='initiateSelfClosing()' BGCOLOR='#9BC440' LEFTMARGIN='0' TOPMARGIN='0' MARGINHEIGHT='0' MARGINWIDTH='0' MARGINHEIGHT='0' MARGINWIDTH='0'";

if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', '," + timeout*1000 + ");\"";

text += ">";

text +="<div align='center' id='columnMain'>";

text += "<img src='" + URL + "' style='' galleryimg='no'>";
text += "<p>" + newText + "</p>"
text += "<p class='closewindow'><a href='' onClick='self.close()' class='indexwhite'>close window</a></p>";
/*
text += "<p class='small'><a href='' onClick='self.close()' class='indexwhite'>close window</a> after " + timeout + " seconds.</font></div>";*/

text += "</div></body></html>";

preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}
