
function Preview( URL, WIDTH, HEIGHT) {

	windowprops = "left=50,top=50,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50);

	text = "<html><head><title>Preview</title>"
         + "<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\" />"
         + "</head><body><center>"
         + "<img src='" + URL + "' /><br />"
		 + "<a href=\"javascript:window.close();\">[close]</a>"
	     + "</center></body></html>";

	preview = window.open("", "preview", windowprops);
	preview.document.open();
	preview.document.write(text);
	preview.document.close();
}
