function miracaracter(e) {
    tecla = (document.all) ? e.keyCode : e.which;
    if (tecla==8) return true; //TECLA DE BORRAR (RETROCESO)
    if (tecla==0) return true; //TECLAS ESPECIALES COMO CURSORES, SUPRIMIR, TABULADOR ...
    //if (tecla==45 || tecla==46 || tecla==64) return true; //guión, punto, arroba
    if(tecla==43) return true;
            patron = /\d/; // Solo acepta numeros
            //patron = /\w/; // Solo acepta numeros
            te = String.fromCharCode(tecla);
    return patron.test(te);
}
