Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/10/2010, 08:24
Avatar de _cronos2
_cronos2
Colaborador
 
Fecha de Ingreso: junio-2010
Mensajes: 2.062
Antigüedad: 13 años, 10 meses
Puntos: 310
Respuesta: Automatizar sistema de facturacion

Prueba con esto:
Código Javascript:
Ver original
  1. function aMays(e, elemento) {
  2.  tecla=(document.all) ? e.keyCode : e.which;
  3.  if(tecla == 49){
  4.   elemento.value = "01";
  5.   alert("HOLA");
  6.   document.getElementById('cod1').focus();
  7.   document.getElementById('cod1').value="";
  8.  }
  9. }
Saludos (:
__________________
" Getting older’s not been on my plans
but it’s never late, it’s never late enough for me to stay. "
Cigarettes - Russian Red