var good;
function revisaDireCorreo(field) {
// la siguente expresión debe estar en la misma línea de código
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail){
   good = true
} else {
   alert('Por favor, introduce un correo-e válido')
   field.focus()
   field.select()
   good = false
   }
}

u = window.location;
m = "Un amig@ tuyo te ha recomendado esta Web...";
function mailThisUrl(){
   good = false
   revisaDireCorreo(document.eMailer.address)
   if (good){
      // the following expression must be all on one line...
      window.location = "mailto:"+document.eMailer.address.value+"?subject="+m+"&body="+document.title+" "+u;
   }
}