function fotopopup(file, x, y, title) {
  var a = window.open('', 'Zoom', 'width=' + x + ',height=' + y);
  a.document.write('<html><head><title>' + title + '</title></head>');
  a.document.write('<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>');
  a.document.write('<img src=\"' + file + '\">');
  a.document.write('</body></html>');
}

