function checkForm(myForm) {

	var nonWhiteSpace = /\S/;
	var isEmail=/^\w(\.?[\w-])*@\w(\.?[\w-])*\.[a-z]{2,6}(\.[a-z]{2})?$/i;
	
	field = document.getElementById("firstName");
  	fieldLabel = 'nome';
  	if (!nonWhiteSpace.test(field.value)) {
   		alert('Devi compilare il campo "'+fieldLabel+'"');
    	field.value='';
    	field.focus();
    	return false;
  	}

	field = document.getElementById("lastName");
  	fieldLabel = 'cognome';
  	if (!nonWhiteSpace.test(field.value)) {
   		alert('Devi compilare il campo "'+fieldLabel+'"');
    	field.value='';
    	field.focus();
    	return false;
  	}
	
	field = document.getElementById("stateOrProvince");
  	fieldLabel = 'nazione';
 	
	if (field.selectedIndex == 0) {
		alert('Devi selezionare un '+fieldLabel+'');
		field.focus();
		return false;
  	}
	
	document.change.textNazione.value  = document.change.stateOrProvince.options[document.change.stateOrProvince.selectedIndex].text; 
	
	field = document.getElementById("email");
  	fieldLabel = 'email';
  	if (!nonWhiteSpace.test(field.value)) {
   		alert('Devi compilare il campo "'+fieldLabel+'"');
    	field.value='';
    	field.focus();
    	return false;
  	}
	if (!isEmail.test(field.value)) {
		alert('Campo "'+fieldLabel+'" non valido');
		field.focus();
		return false;
  	}
	
	field = document.getElementById("motiveOfRequest");
  	fieldLabel = 'argomento';
	if (field.selectedIndex == 0) {
		alert('Devi selezionare un '+fieldLabel+'');
		field.focus();
		return false;
  	}
	
	/*field = document.getElementById("subject");
  	fieldLabel = 'oggetto';
  	if (!nonWhiteSpace.test(field.value)) {
   		alert('Devi compilare il campo "'+fieldLabel+'"');
    	field.value='';
    	field.focus();
    	return false;
  	}*/
	
	field = document.getElementById("txtMessage");
  	fieldLabel = 'messaggio';
  	if (!nonWhiteSpace.test(field.value)) {
   		alert('Devi compilare il campo "'+fieldLabel+'"');
    	field.value='';
    	field.focus();
    	return false;
  	}
	
	field = document.getElementById("privacyCheck1");
  	fieldLabel = 'privacy';
	if ( field.checked!=true ){
		alert("Devi consentire il trattamento dei tuoi dati.");
    	field.focus();
		return false;
	}	
	/*var textMessage=document.getElementById("subject").value+"\n\n"+document.getElementById("textMessage").value;
	document.getElementById("textMessage").value=textMessage;
	document.getElementById("subject").value="Richiesta informazioni da www.togo.it";*/
}
