//
// Nethics snc
// Autore: 			Daniele Radogna
// Data ultima modifica:	21/2/2001
//
// Questo file e' stato realizzato da Nethics snc
// 
// Per poterlo utilizzare correttamente occorre includere nel file HTML i seguenti tag:
// <SCRIPT language="Javascript1.1" type="text/javascript"  src="checkfm.js"> </SCRIPT>
//	Subito sotto il tag BODY
//
// Il tag <form> DEVE includere (attenzione al nome del form)
// <form name="mailmod" onsubmit='return check()'>
// 	oltre, ovviamente, i corretti method="..." action="..." name="..." 
//
//
//
//

 
function check()
{
	var elenco = "Unfilled fields: ";
	var flag = false;

	if (document.mailmod.nome.value == "")
	{
		elenco += " nome";	
		flag=true;
	}
	 
	 
	if (document.mailmod.mitt.value == "")
	{
		elenco += " mitt ";	
		flag=true;
	}
	
	 
	if (document.mailmod.messaggio.value == "")
	{
		elenco += " messaggio ";	
		flag=true;
	}
	
	if (flag)
	{
		elenco += ".\nPlease, provide the required input values to submit the form";
		window.alert (elenco);
		return false;
	}
	return true;
}

 