function error(tekst) {
	if (errfound) return;
		window.alert(tekst);
errfound = true;
}
function validate() {
	errfound = false;
	var bledy = "";
	with (document.forms[0]) {
		if (imie.value == "")  bledy += "Nie podałeś imienia. \n";
		if (email.value == "")	bledy += "Nie podałeś adresu email.\n";		
                if (tresc.value == "") bledy += "Nie napisałeś treści";
		if (bledy != "")  error(bledy); 
	}
return !errfound;
}
