var sw = screen.width;
var sh = screen.height;

	if (sw >= 800)
			{
			var x = ((sw-253)/2)-5;
			var y = ((sh-311)/2)-25;
			}
	else
			{
			var x = 0;
			var y = 0;
			}

timeout = 0; // Close window after __ number of seconds?  0 = do not close, anything else = number of seconds

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=0,top=0,scrollbars=no,width=" + (WIDTH) + ",height=" + (HEIGHT);
text = "<html><head><title>proTHIK: Before and After Treatment";
if (timeout != 0) text +="  - closes after " + timeout + " sec.";
text +="</title></head><body onBlur=this.close(); bgcolor='000000'";
if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");top.window.focus();\"";
text += " leftmargin='0' topmargin='0' marginheight='0' marginwidth='0'><center><img src='" + URL + "'>";
text += "</center></body></html>";
preview = window.open("", "preview", windowprops);
preview.moveTo(x,y);
preview.window.focus();
preview.document.open();
preview.document.write(text);
preview.document.close();
}



