var hiba;

function checkform () {

  hiba = false;

  if ((document.forms.foglalas.nev.value == "") || (document.forms.foglalas.telszam.value == "") || (document.forms.foglalas.lakcim.value == "")) {
    hiba = true;
  }

  if (hiba == true) {
    alert("Hiba! Nem töltött ki minden szükséges mezőt!");
    return false;
  }

  return true;

}
