// JavaScript Document
function checkFormNewsletter()
	{
	   	var error_msg = "";
			if (document.formo.nome.value == "" ||  document.formo.nome.value == "nome")
  				error_msg += "\t - Nome\n";
			if (document.formo.cognome.value == "" ||  document.formo.cognome.value == "cognome")
  				error_msg += "\t - Cognome\n";
			if (document.formo.email.value == "" ||  document.formo.email.value == "email")
  				error_msg += "\t - E-Mail\n";
			if (document.formo.consenso.checked != 1 )
  				error_msg += "\t - Informativa sulla privacy\n";
			if (error_msg!="")
				alert("Completare le seguenti informazioni:\n"+error_msg);
			else
			{
				document.formo.submit();
			}
}
function checkFormNewsletterRus()
	{
	   	var error_msg = "";
			if (document.formo.nome.value == "" ||  document.formo.nome.value == "Имя")
  				error_msg += "\t - Имя\n";
			if (document.formo.cognome.value == "" ||  document.formo.cognome.value == "Фамилия")
  				error_msg += "\t - Фамилия\n";
			if (document.formo.email.value == "" ||  document.formo.email.value == "email")
  				error_msg += "\t - E-Mail\n";
			
			if (error_msg!="")
				alert("Заполните следующую информацию:\n"+error_msg);
			else
			{
				document.formo.submit();
			}
}
function checkFormNewsletterEng()
	{
	   	var error_msg = "";
			if (document.formo.nome.value == "" ||  document.formo.nome.value == "name")
  				error_msg += "\t - Name\n";
			if (document.formo.cognome.value == "" ||  document.formo.cognome.value == "surname")
  				error_msg += "\t - Surname\n";
			if (document.formo.email.value == "" ||  document.formo.email.value == "email")
  				error_msg += "\t - E-Mail\n";
			if (error_msg!="")
				alert("Check the following field(s):\n"+error_msg);
			else
			{
				document.formo.submit();
			}
}
function checkFormNewsletterSpa()
	{
	   	var error_msg = "";
			if (document.formo.nome.value == "" ||  document.formo.nome.value == "nombre")
  				error_msg += "\t - nombre\n";
			if (document.formo.cognome.value == "" ||  document.formo.cognome.value == "appelidos")
  				error_msg += "\t - appelidos\n";
			if (document.formo.email.value == "" ||  document.formo.email.value == "email")
  				error_msg += "\t - E-Mail\n";
			if (document.formo.consenso.checked != 1 )
  				error_msg += "\t - Informativo\n";
			if (error_msg!="")
				alert("Compruebe el siguiente campo:\n"+error_msg);
			else
			{
				document.formo.submit();
			}
}

function checkFormCommento()
	{
	   	var error_msg = "";
			if (document.formo2.nome2.value == "")
  				error_msg += "\t - Nome\n";
			if (document.formo2.cognome2.value == "" )
  				error_msg += "\t - Cognome\n";
			if (document.formo2.email2.value == "" )
  				error_msg += "\t - E-Mail\n";
			if (document.formo2.commento2.value == "" )
  				error_msg += "\t - Commento\n";
			if (document.formo2.consenso2.checked != 1 )
  				error_msg += "\t - Informativa sulla privacy\n";
			if (error_msg!="")
				alert("Completare le seguenti informazioni:\n"+error_msg);
			else
			{
				document.formo2.submit();
			}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function checkFormCdC()
	{
	   	var error_msg = "";
			if (document.formcdc.nome.value == "" ||  document.formcdc.nome.value == "nome")
  				error_msg += "\t - Nome\n";
			if (document.formcdc.cognome.value == "" ||  document.formcdc.cognome.value == "cognome")
  				error_msg += "\t - Cognome\n";
			if (document.formcdc.indirizzo.value == "")
  				error_msg += "\t - Indirizzo\n";
			if (document.formcdc.email.value == "" )
  				error_msg += "\t - E-Mail\n";
			if (document.formcdc.scadenza.value == "" )
  				error_msg += "\t - Scadenza carta\n";
			if (document.formcdc.numero.value == "" )
  				error_msg += "\t - Numero carta\n";
			if (document.formcdc.consensocdc.checked != 1 )
  				error_msg += "\t - Informativa sulla privacy\n";
			if (error_msg!="")
				alert("Completare le seguenti informazioni:\n"+error_msg);
			else
			{
				document.formcdc.submit();
			}
}
function checkFormCdCEng()
	{
	   	var error_msg = "";
			if (document.formcdc.nome.value == "" ||  document.formcdc.nome.value == "nome")
  				error_msg += "\t - Name\n";
			if (document.formcdc.cognome.value == "" ||  document.formcdc.cognome.value == "cognome")
  				error_msg += "\t - last name\n";
			if (document.formcdc.indirizzo.value == "")
  				error_msg += "\t - Address\n";
			if (document.formcdc.email.value == "" )
  				error_msg += "\t - E-Mail\n";
			if (document.formcdc.scadenza.value == "" )
  				error_msg += "\t - Expiry date\n";
			if (document.formcdc.numero.value == "" )
  				error_msg += "\t - Card Number\n";
			//if (document.formcdc.consensocdc.checked != 1 )
  				//error_msg += "\t - Informativa sulla privacy\n";
			if (error_msg!="")
				alert("Please complete the following informations:\n"+error_msg);
			else
			{
				document.formcdc.submit();
			}
}