function controlla(form)
	{
	var flagErrore = 0;
	var EmailAddr = form.email.value;
    var Filtro = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;

	var alertString = "Attenzione!\nPer proseguire e' necessario specificare:";

	if(form.nome.value == "")
	{	alertString = alertString + "\n- Nome";
		flagErrore = 1;
	}
		if(form.cognome.value == "")
	{	alertString = alertString + "\n- Cognome";
		flagErrore = 1;
	}
	if(form.indirizzo.value == "")
	{	alertString = alertString + "\n- Indirizzo";
		flagErrore = 1;
	}
	if(form.telefono.value == "")
	{	alertString = alertString + "\n- Numero di Telefono";
		flagErrore = 1;
	}
	if(isNaN(form.telefono.value))
	{	alertString = alertString + "\n- Il Numero di Telefono deve essere composto da cifre";
		flagErrore = 1;
	}	
	if(form.corso.value == "")
	{	alertString = alertString + "\n- Corso che si desidera frequentare";
		flagErrore = 1;
	}
	if (Filtro.test(EmailAddr))
      alertString = alertString
   else
      {
      alertString = alertString + "\n- Un indirizzo email corretto";
	  flagErrore = 1;
      }
 
 /*if(form.email.value == "")
	{	alertString = alertString + "\n- E-mail";
		flagErrore = 1;
	}
	if(form.email.value != "" && form.email.value.indexOf("@") < 0)
	{
		alertString = alertString + "\n- Un indirizzo email corretto";
		flagErrore = 1;
		var chiocciola  = 1;
	}

	if(form.email.value != "" && form.email.value.indexOf(".") < 0)
	{
		if(chiocciola != 1)
		{
		alertString = alertString + "\n- Un indirizzo email corretto";
		flagErrore = 1;
		}
	}
  if(isNaN(form.carkit.value))
	{	alertString = alertString + "\n- Il campo Carkit puņ contenere solo numeri";
		flagErrore = 1;
	}	

	if(isNaN(form.adattatori.value))
	{	alertString = alertString + "\n- Il campo adattatori puņ contenere solo numeri";
		flagErrore = 1;
	}
	if(form.adattatori.value != "" && isNaN(form.adattatori.value) == false && form.modello.value == "")
	{	alertString = alertString + "\n- Hai indicato il numero di adattatori desiderati ma non il modello di cellulare";
		flagErrore = 1;
	}
*/
	if (form.PRIVACY[0].checked == false)
	{	alertString = alertString + "\n- La Privacy deve essere accettata";
		flagErrore = 1;	
	}

	if(flagErrore == 1)
	{	alert(alertString);
		return false;
	}
	else
return true;
}

