// JavaScript Document

function popImage(imageName, imageW, imageH)
{
	newIm=window.open('','a',"width="+imageW+",height="+imageH);
	newIm.document.open();
	newIm.document.write('<body style="margin:0; padding:0" bgcolor=#000000 onBlur="self.close()">');
	newIm.document.write('<div style="height:100%; width:100%; vertical-align:middle; text-align:center">');
	newIm.document.write('<img src="'+imageName+'"');
	newIm.document.write(' style="cursor:crosshair" title="Click to close" onClick="self.close()"></div></body>');
	newIm.document.write('<script language="JavaScript">');
	newIm.document.write('window.moveTo((screen.width-'+imageW+')/2,(screen.height-'+imageH+')/2);</script>');
	newIm.document.close();
	newIm.focus();
}
