function sololetras(e){
tecla = (document.all) ? e.keyCode : e.which;
if ((tecla==8) || (tecla==9)) return true;  
    patron =/[A-Za-z��\sñÑ]/; 
    te = String.fromCharCode(tecla); 
    return patron.test(te); 
}
function solonumeros(e){
tecla = (document.all) ? e.keyCode : e.which;
if ((tecla==8) || (tecla==9)) return true; 
    patron = /[\d-]/;
    te = String.fromCharCode(tecla); 
    return patron.test(te); 
}
function alfanumerico(e){
tecla = (document.all) ? e.keyCode : e.which;
if ((tecla==8) || (tecla==9)) return true; 
   patron = /[\w\sñÑ]/; 
    te = String.fromCharCode(tecla); 
    return patron.test(te); 
}
function entenviar(e){
tecla = (document.all) ? e.keyCode : e.which;
if (tecla=13) submit();
}
