//Matteo Scandolara - Dicembre2003 - Rel.1. - Check Mail for Sendmail.php

function CheckValidity(theDoc)
{
	//Controllo presenza caratteri all'interno della casella "email"
	var email = theDoc.form.Email.value;
	if( email == "" )
	{
		alert( "Inserire un valore nella casella Email.");
		theDoc.form.Email.focus();
		return( false );
	}

	//Controllo presenza caratteri all'interno della casella "Attivitą"
	var att = theDoc.form.Attivita.value;
	if( att == "" )
	{
		alert( "Inserire l'attivitą svolta dalla propria azienda.");
		theDoc.form.Attivita.focus();
		return( false );
	}
}

function CheckLybroWeb(theDoc)
{
	//Controllo presenza di Username e Password per Lybroweb
	var user = theDoc.form.Username.value;
	var pwd = theDoc.form.Password.value;
	if( user == "" )
	{
		alert( "Inserire un valore nella casella Codice Cliente." );
		theDoc.form.Username.focus();
		return(false);
	}
	if( pwd == "" )
	{
		alert( "Inserire un valore nella casella Password." );
		theDoc.form.Password.focus();
		return(false);
	}
}
