function Inserisci()	
	{
		a = document.frm01.s_email.value;
		
		if( document.frm01.s_nome.value=="")
	    {   alert("Inserire il nome !!!");
	        document.frm01.s_nome.focus();
	        document.frm01.s_nome.select();
		}	
		else if( document.frm01.s_cognome.value=="")
	    {   alert("Specificare il cognome !!!");
	        document.frm01.s_cognome.focus();
	        document.frm01.s_cognome.select();
		}				
		
		else if (a == "")
	    {   alert("Inserire l'e-mail !!!");
	        document.frm01.s_email.focus();
	        document.frm01.s_email.select();
		}
		else if (a!="" && !isEmail(a))
	    {   alert("L'e-mail non è corretta!");
	        document.frm01.s_email.focus();
	        document.frm01.s_email.select();
		}
		
		/*
		else if (document.frm01.s_telefono.value== "" || isNaN(document.frm01.s_telefono.value) ){
		alert("Il numero di telefono non è corretto.");
	        document.frm01.s_telefono.focus();
	        document.frm01.s_telefono.select();		
		}		
*/

								
		
		else if(document.frm01.consenso.checked==false)
		{   alert("E' necessario dare il consenso!");
	        document.frm01.consenso.focus();
	        document.frm01.consenso.select();
		}												
		
		else
		{
		document.frm01.submit();
		}
	}
	
	
	function isEmail(email)
	{
	        invalidChars = " /:,;"
	        for(i=0;i<invalidChars.length;i++)
	
	        {
	                badChar = invalidChars.charAt(i)
	
	                if(email.indexOf(badChar,0)>-1)
	                        return false
	        }
	        atPos = email.indexOf("@",1)
	        if (atPos == -1)
	                return false
	        if (email.indexOf("@",atPos +1)>-1)
	                return false
	        periodPos = email.indexOf(".",atPos)
	        if (periodPos ==-1)
	                return false
	        if (periodPos+3 > email.length)
	                return false
	        return true
	}