
function showImage (url) {
   var img = new Image();
   img.onload = openImageWin;
   img.src = url;
 }
 
function openImageWin () 
{
      NewWindow=open("", "NewWindow", "width=" + this.width + ",height=" + this.height);
      NewWindow.document.open();
      NewWindow.document.write('<html><title>Image viewer</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
      NewWindow.document.write('<a href="javascript: window.close();"><img src='+this.src+' width='+this.width+ 'height='+this.height+' alt='+this.src+' border=0></a>');
      NewWindow.document.write('</body></html>');
      NewWindow.document.close();
      NewWindow.focus();
    } 


function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
