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("<HTML><HEAD><TITLE>Szanyi Vendégház</TITLE></HEAD><BODY style='margin:0;padding:0' BACKGROUND=\""+img.src+"\"></BODY></HTML>");
  DispWin.document.close();
  DispWin.document.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(); }
}
