function checkEmail( val )
{
	valore = val.value
	if( valore == '' )
		return true;

	if( valore.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1 )
	{
		alert('La sintassi dell\'indirizzo e-mail\nnon e\' corretta');
		val.focus();
		return false;
	}
	return true;
}