|    
			
				20/06/2007, 10:49
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: marzo-2006 
						Mensajes: 12
					 Antigüedad: 19 años, 7 meses Puntos: 0 |  | 
  |  Re: Utilidades para formularios  
  Hola, mira tengo un script muy bueno para restringir la entrada en un campo text y es este:
 <script type="text/javascript">
 <!--
 var letters=' ABCÇDEFGHIJKLMNÑOPQRSTUVWXYZabcçdefghijklmnñopqrst  uvwxyzàáÀÁéèÈÉíìÍÌïÏóòÓÒúùÚÙüÜ'
 var numbers='1234567890.'
 var signs=',.:;@-\''
 var mathsigns='+-=()*/'
 var custom='<>#$%&?¿'
 var estrictnumbers='1234567890'
 
 function alpha(e,allow) {
 var k;
 k=document.all?parseInt(e.keyCode): parseInt(e.which);
 return (allow.indexOf(String.fromCharCode(k))!=-1);
 }
 
 function initialCap(field) {
 field.value = field.value.substr(0, 1).toUpperCase() + field.value.substr(1);
 }
 // -->
 </script>
 ....
 <input name="txtRUC" type="text" id="txtRUC" onKeyPress="return alpha(event,numbers)">
 <input name="txtNombre" type="text" id="txtNombre" onKeyPress="return alpha(event,letters)">
 <input name="txtTelefono" type="text" id="txtTelefono" onKeyPress="return alpha(event,estrictnumbers)">
 ....
 
 Suerte!
     |