function sprawdz()
{
  email = document.getElementById('email').value;
  person = document.getElementById('person').value;
  wiadomosc = document.getElementById('wiadomosc').value; 
  var regex = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;
  var odp = regex.test(email);
  if (!person) {
	  alert('Prosze wpisac Imie i Nazwisko');
	  return false;
  }
  if (!odp) {
	  alert('Niepoprawny adres e-mail !');
	  return false;
  }
  if (!wiadomosc) {
	  alert('Prosze wpisac tresc wiadomosci');
	  return false;
  } else {
	  return true;
  }
}
