function imgDisplayPopup(url)
{
  var imageWindow = window.open(url,'image','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
  imageWindow.focus();
}


function folderPopup(url)
{
  var win = window.open(url, 'folder');
  win.focus();
}


  // This function goes into the attic. It's sole purpose now is to be backwards compatible. RIP.
function imgPopup(url)
{
  var imageWindow = window.open('','image','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');

  html =   "<html><head><title></title>" 
         + "<style>\n" 
         + "body { margin: 0px; }\n" 
         + "</style>\n" 
         + "</head><body onload='window.resizeTo(document.image.width,document.image.height)'>"
         + "<img src=\"" + url + "\" border=\"0\" name=\"image\" />"
         + "</body></html>";

  imageWindow.document.open();
  imageWindow.document.write(html);
  imageWindow.document.close();

  imageWindow.focus();
}



