function sprawdz(AForm)
{
        if (!AForm.imie.value) {
            alert("Prosze podać imię!");
            return false;
        }
        if(!AForm.nazwisko.value)
        {
            alert("Prosze podać nazwisko!");
            return false;   
        } 
        if(!AForm.kod.value)
        {
            alert("Prosze podać kod pocztowy!");
            return false;   
        }
        if(!AForm.adres.value)
        {
            alert("Proszę podać adres!");
            return false;   
        }
        if(!AForm.miasto.value)
        {
            alert("Proszę podać miejscowość!");
            return false;   
        }
        if(!AForm.elements['tresc'].value)
        {
                  alert("Proszę wpisać treść!");
                  return false;      
        }        
        w= /^[a-zA-Z0-9ąćęłńóśżźĄĆĘŁŃÓŚŻŹ]{1,30}@[a-zA-Z0-9ąćęłńóśżźĄĆĘŁŃÓŚŻŹ]+(\.[a-zA-Z0-9ąćęłńóśżźĄĆĘŁŃÓŚŻŹ]+)+$/;
        j=AForm.email.value.match(wzor);
        if(j == null)
        {
            alert("Proszę podać poprawny adres e-mail!");
            return false; 
        }

        return true;
}
