function checkContactForm(form) {
  if (form.message.value.length<1) {
      alert("Proszę wypełnić pole 'Treść pytania'.");
      return false;
  }
  if ((form.name.value.length<1)) {
      alert("Proszę wypełnić pole 'Imię i nazwisko'.");
      return false;
  }
  if ((form.phone.value.length<1) && (form.email.value.length<1)) {
      alert("Proszę wypełnić pole 'Telefon' lub pole 'Email'.");
      return false;
  }
  return true;
}

