function popup(url,width,height) {
  var winHeight; 
  var winWidth; 

  var magnification = 1;
  width = parseInt(width) * magnification;
  height = parseInt(height) * magnification;

  winHeight = parseInt(height)+80;
  winWidth = parseInt(width)+80;

  myWindow = window.open("","image","alwaysRaised=1,dependent=1,titlebar=0,menubar=0,location=0,status=0,scrollbars=1,width="+winWidth+",height=" + winHeight);
  myWindow.document.write("<center><img src="+url+" width="+width+" height="+height+">");
  myWindow.document.write("<br><br><input type=button name=close value=close onclick='window.close()'></center>");
  myWindow.document.close();
}