Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/09/2006, 06:33
Avatar de ZiTAL
ZiTAL
 
Fecha de Ingreso: marzo-2004
Ubicación: Bermio (Bizkaia)
Mensajes: 1.545
Antigüedad: 21 años
Puntos: 62
;)

haber si te gusta esto:
Código HTML:
<html>
<head>
<script type="text/javascript">
 function SeparaDNI(esto)
  {
   var numeros=esto.value.substr(0,9);
   numeros=parseInt(numeros);
   var letra=esto.value.substr(9,1);
   alert(numeros);
   alert(letra);
  }
</script>
</head>
<body>
<form name="formu">
 <input type="text" name="dni" onCLick="SeparaDNI(this)"/>
</form>
</body>
</html> 
__________________
http://zital.no-ip.org
____________________

Euskerie ahuen eta bijotzan