function check1(){
  if($("#hely1").val()=='') return false;
  if($("#hely2").val()=='') return false;
  if($("#dt1").val()=='') return false;
  if($("#dt2").val()=='') return false;
  if($("#t1").val()=='') return false;
  if($("#t2").val()=='') return false;
  if($("#t3").val()=='') return false;
  if($("#t4").val()=='') return false;
  return true;
}

function check2(){
  ok=true
  if ($("#nev").val()=='') {
    $("#bnev").text("Kötelező megadni a teljes nevet!")
    $("#bnev").css("display","none")
    ok=false
  }else{$("#bnev").text("")}

  if ($("#tel").val()=='') {
    $("#btel").text("Kötelező megadni a telefonszámot!")
    $("#btel").css("display","none")
    ok=false
  }else{$("#btel").text("")}

  m = $('#mail').val()
  if (m=='') {
    $('#bmail').text("Kötelező megadni az e-mail címet!")
    $("#bmail").css("display","none")
    return false
  }
  kp=m.indexOf("@")
  pp=m.lastIndexOf(".")
  if (kp<1||pp-kp<2) {
    $('#bmail').text("Az e-mail cím nem helyes!")
    $("#bmail").css("display","none")
    ok=false
  }else{
    $('#bmail').text("")
  }
  return ok
}
function check2_ro(){
  ok=true
  if ($("#nev").val()=='') {
    $("#bnev").text("Acordarea numelui complet este obligatoriu!")
    $("#bnev").css("display","none")
    ok=false
  }else{$("#bnev").text("")}

  if ($("#tel").val()=='') {
    $("#btel").text("Acordarea numărului de telefon este obligatoriu!")
    $("#btel").css("display","none")
    ok=false
  }else{$("#btel").text("")}

  m = $('#mail').val()
  if (m=='') {
    $('#bmail').text("Acordarea addresa de e-mail este obligatoriu!")
    $("#bmail").css("display","none")
    return false
  }
  kp=m.indexOf("@")
  pp=m.lastIndexOf(".")
  if (kp<1||pp-kp<2) {
    $('#bmail').text("Adresa de e-mail nu este correct!")
    $("#bmail").css("display","none")
    ok=false
  }else{
    $('#bmail').text("")
  }
  return ok
}
function check2_eng(){
  ok=true
  if ($("#nev").val()=='') {
    $("#bnev").text("You must enter your full name!")
    $("#bnev").css("display","none")
    ok=false
  }else{$("#bnev").text("")}

  if ($("#tel").val()=='') {
    $("#btel").text("You must enter a phone number")
    $("#btel").css("display","none")
    ok=false
  }else{$("#btel").text("")}

  m = $('#mail').val()
  if (m=='') {
    $('#bmail').text("You must enter your e-mail address!")
    $("#bmail").css("display","none")
    return false
  }
  kp=m.indexOf("@")
  pp=m.lastIndexOf(".")
  if (kp<1||pp-kp<2) {
    $('#bmail').text("The e-mail address is not correct!")
    $("#bmail").css("display","none")
    ok=false
  }else{
    $('#bmail').text("")
  }
  return ok
}
