function privacyValidator(idPush)
	{
	accept = document.getElementById('accept').checked
		if (accept == true)
		{
		document.getElementById(idPush).disabled = false;
		
		}
	
		if (accept == false)
		{
		document.getElementById(idPush).disabled = true;
		
		}
	
	}


function isNotValidEmail(elem) {
	var str = elem.value;
	var re  = /\b[a-z0-9._%-]+@[a-z0-9._%-]+\.[a-z0-9._%-]{2,4}\b/;
	if (!str.match(re))
		return false;
	else
		return true;
}

function formContactValidator(theForm)
{

  if (theForm.email.value == "")
  {
    alert('la mail è obbligatoria');
    theForm.email.focus();
    return (false);
  }
	
	if (!isNotValidEmail(document.forms['formmodule'].elements['email']))
	{
	
		alert("il formato dell'email non è corretto");
		return false;
	}
	
  return (true);
}


function formRetailerValidator(theForm)
{

  

  if (theForm.EMail.value == "")
  {
    alert('La mail è obbligatoria');
    theForm.EMail.focus();
    return (false);
  }
	
	if (!isNotValidEmail(document.forms['formretailer'].elements['EMail']))
	{
		alert("il formato dell'email non è corretto");
		return false;
	}
	
	
  
  return (true);
}