function validator(theForm) {
	var error = "";
	var digits = "0123456789+-";


if (theForm.jmeno.value == "") {
	error += "Vyplnte prosim Vase jmeno.\n";
}
if (theForm.email.value == "") {
	error += "Vyplnte prosím Vas E-mail.\n";
}
if ((theForm.email.value.indexOf ('@',0) == -1 || theForm.email.value.indexOf ('.',0) == -1) && theForm.email.value != "") {
	error += "Vyplňte prosím Vas E-mail korektne.\n";
}
if (theForm.telefon.value == "" || theForm.telefon.value == "+420" || theForm.telefon.value == "+420 ") {
	error += "Vyplnte prosim Vase kontaktni cislo.\n";
}
if (error != "") {
	alert(error);
	return (false);
}
else {
}
}

