<!-- Original:  Ronnie T. Moore, Editor -->
<!-- Web Site:  The JavaScript Source -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->



timeout = 0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function openPicture(URL,TITLE, PICTEXT, WIDTH, HEIGHT) 
{
	windowprops = "left=50,top=50,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50) + ",resizable=yes,scrollbars=yes";

	text = "<html><head><title>" + TITLE + "</title><link type='text/css' rel='stylesheet' href='css/style.css'></head><body bgcolor='white'";

	if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

	text += "><center><img src='" + URL + "'>";

	text +="<p>" + PICTEXT + "<br><br> <div class='hintText'> - Hint: Lukk vindu etter du har sett ferdig - </div></p>";

	text += "</center></body></html>";

	preview = window.open("", "preview", windowprops);
	preview.document.open();
	preview.document.write(text);
	preview.document.close();
}
