
function checkForm() {
	with (document.forms['kontakt']) {
		var alertMsg = "Wypełnij poniższe pola:\n";

		if ((email.value =="Twój adres e-mail") || (email.value == "") || (email.value.indexOf ('@') == -1) || (email.value.indexOf ('.') == -1)) alertMsg += "\nTwój email";
		if ((imie.value == "") ) alertMsg += "\nImię i nazwisko";
		if ((k_kod.value == "") ) alertMsg += "\nKod";
		if ((telefon.value == "")) alertMsg += "\nTelefon";
	}

	

	if (alertMsg != "Wypełnij poniższe pola:\n") {
		alert(alertMsg);
		return false;
	} else {
		return true;
	}

}


