 
			
				10/03/2005, 12:25
			
			
			     |  
        |     Moderador extraterrestre   |    |    Fecha de Ingreso: diciembre-2001  Ubicación: Madrid  
						Mensajes: 6.987
					  Antigüedad: 23 años, 10 meses Puntos: 61     |        |  
      Este no te serviría, no?     Código PHP:     <html>
 <head>
 <title>Untitled</title><script>
 maximo=5
 c=0;
 function prueba(esto){
 c+=(esto.checked)?1:-1;
 if(c>maximo){
 alert("No chequee más de "+maximo+"!");
 esto.checked=false;
 c-=1;
 }
   }
   </script>
 </head>
   <body>
 <form action ="javascript:alert('Mandandooo!!!')" name="aa323" >
 <input type="checkbox" name="pedpe1" onclick="prueba(this)"><br />
 <input type="checkbox" name="pedpe2" onclick="prueba(this)"><br />
 <input type="checkbox" name="pedpe3" onclick="prueba(this)"><br />
 <input type="checkbox" name="pedpe4" onclick="prueba(this)"><br />
 <input type="checkbox" name="pedpe5" onclick="prueba(this)"><br />
   <input type="submit" name="pepe"></form>
     </body>
 </html> 
            
				__________________  Cómo escribir 
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.            |