// Function to display images in a popup window
// WJMB 2003-12 - 2009-03
function imgWindow(imgurl, win, width, height, restitle, caption, catalogue)
{
	horz = width + 28;
	vert = height + 100;
	imgwin = window.open('', win, 'resizable=no,toolbar=no,menubar=no,width=' + horz + ',height=' + vert);
	imgwin.document.writeln('<html><head><title>' + restitle + '</title><meta http-equiv="imagetoolbar" content="no"></head>');
	imgwin.document.writeln('<body>');
	imgwin.document.writeln('<div align="center"><img src="' + imgurl + '" width="' + width + '" height="' + height + '" alt="' + restitle + '"><div class="caption" style="font:10pt Verdana,Arial,Helvetica,sans-serif;">' + caption + '</div>');
	if (catalogue != undefined && catalogue != '') {
		imgwin.document.writeln('<div style="font:10pt Verdana,Arial,Helvetica,sans-serif;color:#999">' + catalogue + '</div>');
	}
	imgwin.document.writeln('<div class="popupnav" style="margin:12px;width:100px;margin-right:0;"><a href="javascript:window.parent.close();" style="font:bold 8pt Verdana,Arial,Helvetica,sans-serif;">CLOSE</a></div><div style="height:60px"></div></div>');
	imgwin.document.writeln('</body></html>');
	imgwin.document.close();
	if (window.focus) { imgwin.focus(); }
}

