function check(AdresEmail, Tresc)
{
		var TestEmail = /^[^@]+@([a-z0-9\-]+\.)+[a-z]{2,4}$/i;
		var Wynik = AdresEmail.match(TestEmail);

		if (Wynik == null)
		{
				alert("Podany adres e-mail nie jest prawidłowy");
				return false;
		}
		else {
														
				if ((Tresc == null) || (Tresc ==""))
				{
						alert("Proszę wpisać treść wiadomości");
						return false;
				} else return true;
		}
				
}