// JavaScript Document

    function CheckMail( field ){
	
	var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);

	if (goodEmail)
		{
              //controllo che la mail non vontenga il www.
			  if ( field.value.toLowerCase().indexOf("www.")>=0 ) {
				return false;
			  }else{return true}
   		
		}
	else
		{
   		return false;
   		}
		
	}

