function checkform(theForm) {

	if (!theForm.nome.value) {
		alert("Non hai inserito il tuo nome!");
		theForm.nome.focus();
		return (false);
	}

	if (!theForm.cognome.value) {
		alert("Non hai inserito il tuo cognome!");
		theForm.cognome.focus();
		return (false);
	}

	if (!theForm.datanascita.value) {
		alert("Non hai specificato la data di nascita!");
		theForm.datanascita.focus();
		return (false);
	}

	if (!theForm.indirizzo.value) {
		alert("Non hai specificato l'indirizzo!");
		theForm.residenza.focus();
		return (false);
	}
	
	if (!theForm.citta.value) {
		alert("Non hai specificato la cittā!");
		theForm.citta.focus();
		return (false);
	}
	
	if (!theForm.provincia.value) {
		alert("Non hai specificato la provincia!");
		theForm.provincia.focus();
		return (false);
	}

	if (!theForm.cap.value) {
		alert("Non hai specificato il CAP!");
		theForm.cap.focus();
		return (false);
	}

	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (!filter.test(theForm.email.value))
	{
		alert("L'indirizzo e-mail non č valido!");
		theForm.email.focus();
		return (false);
	}

	if (!theForm.telefono.value) {
		alert("Non hai specificato il numero di telefono!");
		theForm.telefono.focus();
		return (false);
	}

	if ( (!theForm.pagamento[0].checked) && (!theForm.pagamento[1].checked) ) {
		alert("Il metodo di pagamento non č stato specificato!");
		return (false);
	}
	
	if (!theForm.quantita.value) {
		alert("Non hai specificato il numero di Abbonami(ami) che vuoi acquistare!");
		theForm.quantita.focus();
		return (false);
	}

}
