


timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL, hname ,WIDTH, HEIGHT, mess)
{
windowprops = "left=100,top=30,width=" + (WIDTH) + ",height=" + (HEIGHT);

text = "<html><head><title>" + hname + "  </title></head><body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' bgcolor='#FFFFCC' onLoad='self.focus()'";



// if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

text += "><table width='' height='' border='7' cellpadding='0' cellspacing='0' bordercolor='#FF0000' bordercolordark='#006600' bordercolorlight='#66FF66'><tr><td><img src='" + URL + "'>";



// if (timeout != 0) text +="<br><font face='arial, helvetica' size='-1'>Preview closes after " + timeout + " seconds.</font>";

text += "</td></tr></table><table><tr><td width='90%'><p align='justify'><span style='font-family: Arial, Helvetica, Verdana; font-size: 10pt'> " + (mess) + " </span></p></td></tr></table></body></html>"


preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
//preview.document.close();
}


