function validateForm() {
with (document.form1) {
var alertMsg = "Wypełnij poniższe pola:\n";
if (osobaKontaktowa.value == "") alertMsg += "\nOsoba Kontaktowa";
if (email.value == "") alertMsg += "\nE-mail";
if (tel.value == "") alertMsg += "\nTelefon";
if (alertMsg != "Wypełnij poniższe pola:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }