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