﻿function validate(theForm) {

	if (theForm.name.value == "")
  	{
    alert("Il tuo Nome è richiesto. Grazie!\nYour Name Request Thanks!");
    theForm.name.focus();
    return (false);
  	}
  
  	if (theForm.email.value == "")
  	{
    alert("E mail richiesta. Grazie!\nE mail Request. Thanks!");
    theForm.email.focus();
    return (false);
  	  }
 	 if (theForm.email.value.indexOf('@',0) == -1 ||
    theForm.email.value.indexOf('.',0) == -1) 
 	 {
    alert("Email non valida!\nInvalid E mail!")
    theForm.email.select();
    theForm.email.focus();
    return false;
	}
   	if (theForm.stati.selectedIndex==0)
   	{
    alert("Nazione richiesta. Grazie!\nNation Request. Thanks!");
    theForm.stati.focus();
    return (false);
  	}

	if (theForm.comments.value == "")
  	{
    alert("Commento richiesto. Grazie!\nComments Request. Thanks!");
    theForm.comments.focus();
    return (false);
  	}
		return (true);
  }


