<!--
// Pop up a new window containg an image at URL mylink
function imagePopup(mylink,windowname,windowTitle,imageTitle,width,height)
{
if (!window.focus)return true;
var href;
if (typeof(mylink)=='string')
   href=mylink;
else
   href=mylink.href;
var options='scrollbars=yes,resizable=yes,location=no,status=no,toolbar=no,menubar=no,directories=no';
if (!width) width=100;
if (!height) height=100;
options+=',width='+width;
options+=',height='+height;
if (imageTitle == null)
	imageTitle=windowTitle;
// Open a new blank window
var imagewin=window.open('',windowname,options);
// Write some html into the window to add a title and show the image
imagewin.document.write('<html>\n<head>\n<title>' + windowTitle + '</title>\n');
imagewin.document.write('<SCRIPT LANGUAGE=\"JavaScript\">\n');
imagewin.document.write('function resizeWin()\n{var w=document.getElementById(\'image1\').width; var h=document.getElementById(\'image1\').height; window.resizeTo(w+60,h+190);}\n');
imagewin.document.write('</SCRIPT>\n');
imagewin.document.write('</head>\n<body onload=\"resizeWin()\">\n<div align=\"center\"><img id=\"image1\" src=\"' + href + '\"/>\n<br>\n' + imageTitle + '\n<br>\n<FORM><INPUT TYPE=\"BUTTON\" VALUE=\"Close Window\" onClick=\"window.close()\"></FORM>\n</div>\n</body>\n</html>\n');
imagewin.document.close();
imagewin.focus();
return false;
}
//-->
