// JavaScript Document
function sprawdz_formularz(AForm)
{

    if(!AForm.imie.value)
	{
	alert('Prosze wypelnic pole "Imię"');
	return false;
	}
	
	if(!AForm.tresc.value)
	{
	alert('Prosze wypelnic pole "Treść"');
	return false;
	}
   	
    reg3 = /^[a-zA-Z0-9ąćęłńśżźĄĆĘŁŃŚŻŹ.]{1,30}@[a-zA-Z0-9aceln�szzACELN�SZZ]+(\.[a-zA-Z0-9ąćęłńśżźĄĆĘŁŃŚŻŹ]+)+$/;
    wyn3 = AForm.email.value.match(reg3);
    if (wyn3 == null) 
	{
        alert("Prosze podac poprawny adres email. " +
              "Poprawny adres musi zawierac malpe " +
              "oraz co najmniej dwa czlony nazwy serwera, " +
              "np. a@b.c lub ala@ma.kota.czarnego.com ");
        return false;
    }
	
    return true;
}

