// imagewindow('imagefilename.jpg'); 
function imagewindow(iURL) {
	valw = 680;
  valh = 520; 
  vali = iURL;
  
  newwin=window.open('','new3','width=' + valw + ',height=' + valh + '');
	with(newwin.document) {
	  writeln('<HTML><HEAD><TITLE>' + vali + '</TITLE>');
		
    writeln('<style>img { border-width:1px; border-color:#eeeeee; }</style>');
		writeln('</HEAD>');
		writeln('<BODY BGCOLOR="#aaaaaa" LINK="#666666" VLINK="#666666"  leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">');
		writeln('<center>');
      
		writeln('<a href="javascript:self.close()" title="click to close window"><img src="' + iURL + '" border="0"></a>');
	
		writeln('</center>');
		writeln('<script>window.focus();<\/script>');
    writeln('</BODY>');
		writeln('</HTML>');
		close();
  }
	newwin.focus();
}


