function error(tekst) {
	if (errfound) return;
		window.alert(tekst);
errfound = true;
}
function validate() {
	errfound = false;
	var bledy = "";
	var formu = document.forms.zapyt;
	
		if (formu.imie.value == "")  bledy += "Nie podałeś imienia. \n";
		if (formu.email.value == "")  bledy += "Nie podałeś adresu e-mail. \n";
		if (formu.temat.value == "")  bledy += "Nie podałeś tematu wiadomości. \n";
		if (formu.tresc.value == "")  bledy += "Nie podałeś treści.";
	
		if (bledy != "")  error(bledy); 
	
return !errfound;
}