function popup(urlLoc,h,w) {
  _winName = "kep";
  szel=screen.width;
  mag=screen.height;
  fent=(mag-h)/2;
  bal=(szel-w)/2;

  _info  = "toolbar=no";      // yes|no 
  _info += ",location=no";    // yes|no 
  _info += ",directories=no"; // yes|no 
  _info += ",status=no";     // yes|no 
  _info += ",menubar=no";     // yes|no 
  _info += ",scrollbars=no"; // yes|no 
  _info += ",margins=no";  // yes|no 
  _info += ",resizable=no";  // yes|no 
  _info += ",dependent";      // close the parent, close the popup, omit if you want otherwise 
  _info += ",height="+h;
  _info += ",width="+w;
  _info += ",left="+bal;
  _info += ",top="+fent;
  img=new Image();
  img.src=urlLoc;
  DispWin=window.open("",_winName,_info);
  DispWin.document.open();
  DispWin.document.writeln("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">");
  DispWin.document.writeln("<html><head><title>Feki Tüzép - Fertőd :: Fertőszentmiklós</title></head><body style='margin:0;padding:0' background=\""+img.src+"\" onclick='self.close()'></body></html>");
  DispWin.document.close();
//  self.focus();
}

function newWindow(mypage, myname, w, h, scroll) {
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no,scrolling=no'
    win = window.open(mypage, myname, winprops)
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
