function showImageWindow(imageURL)
{
	var img = new Image();
	img.src = imageURL;

	var win;
	win = window.open("","","width=500,height=500,resizable=1,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,alwaysRaised=1,dependent=1");

	win.document.open();

	win.document.write("<html>\n<script language='javascript'>\nfunction sizeWindow(width, height)\n{NS = (document.layers) ? 1 : 0;\nif(NS){window.innerWidth = width;window.innerHeight = height;}else{window.resizeTo(width, height);}}</script>");
	win.document.write("<body onLoad='sizeWindow(document.imageToDisplay.width+50, document.imageToDisplay.height+100)' link='#663399' vlink='#663399'>\n<table width=100% height=100% border=0 cellspacing=0 cellpadding=0>\n<tr height=100% valign=center align=center>\n<td>\n<img name='imageToDisplay' src='" + imageURL + "' border=0>\n</td>\n</tr>\n<tr height=2% valign=center>\n<td align=center><font face='Arial, Helvetica, sans-serif'><a href='javascript:window.close();'>close window</a></font></td>\n</tr>\n</table>\n</body>\n</html>\n");
	win.document.close();

}