function ujablak(mit,hova,w,h) {
  ablakneve = window.open(mit, hova, "resizable=1,status=0,menubar=0,scrollbars=yes,location=0,toolbar=0,width="+w+",height="+h+",left=0,top=0");
  ablakneve.moveTo((screen.width/2)-(w/2),(screen.height/2)-(h/2));
}

function teljesablak(mit,hova,kepx,kepy) {
  kepx = parseInt(kepx) + 20;
  kepy = parseInt(kepy) + 25;
  ablakneve = window.open(mit, hova, "menubar=0,width="+kepx+",height="+kepy+",left=0,top=0,statusbars=no");
  ablakneve.moveTo((screen.width/2)-(kepx/2),(screen.height/2)-(kepy/2));
  ablakneve.moveTo((screen.width/2)-(kepx/2),(screen.height/2)-(kepy/2));
}

function ablakbezar(){
window.close();
}

function okbe(){
document.images["okgomb"].src = "/OK_lenyomva.gif";
}

function okki(){
document.images["okgomb"].src = "/OK_alap.gif";
}


function rand(x)
  {
  par = Math.floor((Math.random()*x));

  return(par);
  }

function hetimenu(nyelven)
  {
  //alert(document.links[0]);
  //document.links[0]="http://www.infopark-budapest.hu/adatok/menu_m.xls?frissitsen="+rand(1000000000);
  window.location="http://www.infopark-budapest.hu/adatok/menu_"+nyelven+".xls?frissitsen="+rand(1000000000);
  }
  


  
function kepcsere()
  {
  document.images["webcam"].src = "http://www.infopark-budapest.hu/webcam/image.jpg?frissitsen="+rand(1000000000);
  }

function idodolog()
  {
  kepcsere();
  setTimeout("idodolog()",1000);
  }

