function info() { 

	var RAGSOC_TRA = document.form1.RAGSOC_TRA.value;

	var EMAIL_TRA = document.form1.EMAIL_TRA.value;

	var TELEFONO_TRA = document.form1.TELEFONO_TRA.value;

	var PAGANTE = document.form1.PAGANTE.value;
	
	

	 if (RAGSOC_TRA == "" || RAGSOC_TRA == "undefined") {

		   document.form1.RAGSOC_TRA.className="require";

		   document.form1.RAGSOC_TRA.focus();

		   return false;

        }

		

	  if ((EMAIL_TRA == "") || (EMAIL_TRA == "undefined")) {
		alert("Attenzione!\nDevi inserire un indirizzo di posta elettronica.");
		document.form1.EMAIL_TRA.value = "";
		document.form1.EMAIL_TRA.focus();

		return false;
	}

	if(controllaMail(EMAIL_TRA) == false){
		alert("Attenzione!\nInserire un indirizzo email corretto.");
		document.form1.EMAIL_TRA.select();
		return false;
	}

	function controllaMail(EMAIL_TRA){
	var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
 
	if (!email_reg_exp.test(EMAIL_TRA) || (EMAIL_TRA == "") || (EMAIL_TRA == "undefined")) {
		return false;
	}
}

		

	 if (TELEFONO_TRA == "" || TELEFONO_TRA == "undefined") {

		   document.form1.TELEFONO_TRA.className="require";

		   document.form1.TELEFONO_TRA.focus();

		   return false;

        }

		//Controlla che il Telefono sia composto da soli caratteri numerici e dai caratteri /, (, ),-,+
    var checkOK = "0123456789-/-()+";
    var checkStr = document.form1.TELEFONO_TRA.value;
    var allValid = true;
    for (i = 0; i < checkStr.length; i++)
   {
      ch = checkStr.charAt(i);
      for (j = 0; j < checkOK.length; j++)
        if (ch == checkOK.charAt(j))
         break;
      if (j == checkOK.length)
     {
        allValid = false;
        break;
      }
    }
    if (!allValid)
    {
      alert("Il campo TELEFONO deve contenere SOLO NUMERI e puo' contenere solo i seguenti  \ / - ( ) + \ caratteri speciali\.");      
document.form1.TELEFONO_TRA.focus();
      return (false);
     } 


	 if (PAGANTE == "" || PAGANTE == "undefined") {

		   document.form1.PAGANTE.className="require";

		   document.form1.PAGANTE.focus();

		   return false;

        }		

	 

        else {

			document.form1.submit();			

        }

  }




