
function validForm()
	{
		

	if (document.mail_form.nome.value == "")
			{ 
			  document.mail_form.nome.focus();
			  document.getElementById("nome").style.borderColor="#FF0000";
			} else  { document.getElementById("nome").style.borderColor="#E7501E";	}
	
	
	if (document.mail_form.cognome.value == "")
			{
              
			  document.mail_form.cognome.focus();
			  document.getElementById("cognome").style.borderColor="#FF0000";
			} else  { document.getElementById("cognome").style.borderColor="#E7501E";	}
			
	if (document.mail_form.ragionesociale.value == "")
			{
              
			  document.mail_form.ragionesociale.focus();
			  document.getElementById("ragionesociale").style.borderColor="#FF0000";
			} else  { document.getElementById("ragionesociale").style.borderColor="#E7501E";	}

				
	if (document.mail_form.telefono.value == "")
			{
              
			  document.mail_form.telefono.focus();
			  document.getElementById("telefono").style.borderColor="#FF0000";
			} else  { document.getElementById("telefono").style.borderColor="#E7501E";	}

	if ((document.mail_form.email.value.indexOf("@") == -1 ) || (document.mail_form.email.value == ""))
			{
              document.mail_form.email.focus();
			  document.getElementById("email").style.borderColor="#FF0000";
			} else  { document.getElementById("email").style.borderColor="#E7501E";	}
	   
	/*   if (! document.mail_form.accetto.checked )
			{
               alert("ATTENZIONE!!! Devi accettare le condizioni relative al trattamento dei dati personali");
			   
			} 
	  
	   else {*/ 
        	
           document.mail_form.action = "public/invio.php";
           document.mail_form.submit();
           
        //}
	}



<!--
var slideShowSpeed = 5000

var crossFadeDuration = 3

var Pic = new Array()

Pic[0] = 'immagini/logo_gamax_unghie.jpg'
Pic[1] = 'immagini/framesi.png'
Pic[2] = 'immagini/evagarden_logo.png'
Pic[3] = 'immagini/COID_OK.png'
Pic[4] = 'immagini/FABBRIMARINE150.png'

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

//-->
