function SendContactFormValidate(id){
	var f = document.getElementById(id);
	var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
	
	if (f.name.value == "" || (f.name.value == "undefined")){
		alert('Attenzione ! Campo Nome obbligatorio');
		f.name.focus();
		return false;
	}
	if (f.email.value == "" || (f.email.value == "undefined")){
		alert('Attenzione ! Campo E-mail obbligatorio');
		f.email.focus();
		return false;
	}
	else{
		if(!email_reg_exp.test(f.email.value)){
			alert("Attenzione ! Inserire un indirizzo E-mail corretto.");
			f.email.select();
			return false;
		}		
	}
	if (f.tel.value == "" || (f.tel.value == "undefined")){
		alert('Attenzione ! Campo Recapito Telefonico obbligatorio');
		f.tel.focus();
		return false;
	}
	if (f.text.value == "" || (f.text.value == "undefined")){
		alert('Attenzione ! Campo Testo obbligatorio');
		f.text.focus();
		return false;
	}	
	
	
	var flag = document.getElementById('accept_0').checked;
	if (flag == true){
		alert('Attenzione ! E\' necessario ACCETTARE le condizioni sul trattamento dei dati personali');
		return false;
	}	
	/**/
	return confirm("Vuoi procedere con l\'invio dei dati ?");
	 
}

