function Validator(theForm)
{
	
	if (theForm.COGNOME.value == "")
		{
      			alert("Il campo 'COGNOME' è obbligatorio");
	  		theForm.COGNOME.focus();
			return (false);
		}
	else
		{
			cogn=theForm.COGNOME.value.toUpperCase();
			//alert (cogn);
			if (cogn.indexOf(' VIAGRA ')>-1)	return (false);
			if (cogn.indexOf(' VIAGRA')>-1)	return (false);
			if (cogn=='VIAGRA')	return (false);


			if (cogn.indexOf(' CIALIS ')>-1)	return (false);
			if (cogn.indexOf(' CIALIS')>-1)	return (false);
			if (cogn=='CIALIS')	return (false);

		}



	if (theForm.NOME.value == "")
		{
			alert("Il campo 'Nome' è obbligatorio");
			theForm.NOME.focus();
			return (false);
		}
	else
		{
			nome=theForm.NOME.value.toUpperCase();
			//alert (cogn);
			if (nome.indexOf(' VIAGRA ')>-1)	return (false);
			if (nome.indexOf(' VIAGRA')>-1)	return (false);
			if (nome=='VIAGRA')	return (false);


			if (nome.indexOf(' CIALIS ')>-1)	return (false);
			if (nome.indexOf(' CIALIS')>-1)	return (false);
			if (nome=='CIALIS')	return (false);

		}

	  if (theForm.EMAIL.value == "")
		{
			alert("Il campo Email  è obbligatorio");
			theForm.EMAIL.focus();
			return (false);
		}

	  if (theForm.NALBO.value == "")
		{
			alert("Il campo Numero di Albo  è obbligatorio");
			theForm.NALBO.focus();
			return (false);
		}

	  if (theForm.PROVALBO.value == "")
		{
			alert("Il campo Prov. Albo  è obbligatorio");
			theForm.PROVALBO.focus();
			return (false);
		}






}