|    
			
				06/08/2002, 13:42
			
			
			  | 
  |   |  |  |  |  Fecha de Ingreso: noviembre-2001 Ubicación: Buenos Aires 
						Mensajes: 1.190
					 Antigüedad: 23 años, 11 meses Puntos: 1 |  | 
  |  Re: Ayuda con javita  
  intenté adaptarlo pero me salio mal :(
 
 <html>
 <head>
 <script language="JavaScript">
 <!--
 
 function completito(frm){
 
 if (agrega.txt1.value == "")  {
 alert("el campo txt1 no puede estar vacio");
 agrega.txt1.focus();
 return false;
 }
 
 var a=0,b=0
 for(var z =0;z<frm.elements.length;z++)
 if(frm.elements[z].type=="checkbox"){b++
 if(!frm.as[z].checked)a++}
 if(a==b)
 {
 alert("Debes de seleccionar Un CheckBox");
 return false
 }
 
 
 if (agrega.txt2.value == "")  {
 alert("el campo txt2 no puede estar vacio");
 agrega.txt2.focus();
 return false;
 }
 return true;
 
 }
 
 
 //-->
 </script>
 </head>
 
 <body bgcolor="#FFFFFF" text="#000000">
 <form name="agrega" method="POST" action="http://www.infobae.com/interior/nota.php" onsubmit="return completito(this)">
 <table width="60%" border="0" cellspacing="5" cellpadding="5" align="center">
 <tr align="center">
 <td>
 <input type="text" name="txt1">
 </td>
 <td>
 <input type="checkbox" name="checkbox" value="cualquier cosa">
 <input type="checkbox" name="checkbox" value="cualquier cosa">
 <input type="checkbox" name="checkbox" value="cualquier cosa">
 </td>
 <td>
 <input type="text" name="txt2">
 </td>
 </tr>
 <tr align="center">
 <td>&nbsp;</td>
 <td>
 <input type="submit" name="Submit" value="validar">
 </td>
 <td>&nbsp;</td>
 </tr>
 </table>
 </form>
 </body>
 </html>
 
     |