timeout =0;
function Start(URL, WIDTH, HEIGHT) {
windowprops = "left="+(screen.width-WIDTH)/2+',top='+(screen.height-HEIGHT)/2+",width=" + (WIDTH+0) + ",height=" + (HEIGHT+0);
text = "<html><head><title>ÅÂÐÎÑÏÎÐÒ</title></head><body topmargin='0' leftmargin='0' bgcolor='white'";
if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";
text += "><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();
}
