function validar(e) { 
    tecla = (document.all) ? e.keyCode : e.which; 
    if (tecla==8) return true; 
    patron =/[@.:-Ñ-ñ_ A-Za-z\w]/; 
    te = String.fromCharCode(tecla); 
    return patron.test(te); 
} 
