Con otra funcion de javascript que creo que es mas sencilla tampoco me hace nada.....
Código HTML:
<script >
function grupo(cual, estado) {
if (cual=='todos1') {
document['forms']['permisos']['sel1']['disabled'] = estado;
document['forms']['permisos']['sel2']['disabled'] = estado;
}
}
</script >
<form name='permisos' action="?act=3" method="post">
<table border="1" width="100%">
<TR>
<TD>Nombre:</TD><td><input type='text' name='nombre' size="100%" maxlength="15"></td>
</TR>
<TR>
<TD>Descripcion:</TD><td><input type='text' name='descripcion' size="100%" maxlength="70"></td>
</TR>
<tr>
<TD colspan="2">Asignar Permisos:
<table border="1" width="50%">
<TR>
<td><INPUT type='checkbox' onkeyup=grupo(todos1,this.value=='')>AREA INFORMACION</TD>
</TR>
<TR>
<TD> <INPUT type='checkbox' name='sel1' disabled>Noticias</TD>
</TR>
<TR>
<TD> <INPUT type='checkbox' name='sel2' >Agenda</TD>
</TR>
<TR>
<TD><INPUT type='checkbox' name='todos2'>FORO</TD>
</TR>
<TR>
<TD><INPUT type='checkbox' name='todos3' onclick=marcar(this.parentNode,this)>AREA COLEGIADO</TD>
</TR>
<TR>
<TD> <INPUT type='checkbox' name='sel3'>Revista Prensa</TD>
</TR>
<TR>
<TD> <INPUT type='checkbox' name='sel4'>Listas de correo</TD>
</TR>
<TR>
<TD> <INPUT type='checkbox' name='sel5'>Consultar BD</TD>
</TR>
<TR>
<TD> <INPUT type='checkbox' name='sel6'>Gestor de correo</TD>
</TR>
<TR>
<TD><INPUT type='checkbox' name='todos4'>MISCELÁNEA</TD>
</TR>
<TR>
<TD><INPUT type='checkbox' name='todos5'>GESTIONAR BD</TD>
</TR>
<TR>
<TD><INPUT type='checkbox' name='todos6' onclick="marcar(this.parentNode,this)">GESTIONAR CONTENIDOS</TD>
</TR>
<TR>
<TD> <INPUT type='checkbox' name='sel8'>Gestionar Noticias</TD>
</TR>
<TR>
<TD> <INPUT type='checkbox' name='sel9'>Gestionar Eventos</TD>
</TR>
<TR>
<TD> <INPUT type='checkbox' name='sel10'>Gestionar Perfiles</TD>
</TR>
</table>
</TD>
</tr>
<TR>
<TD> <INPUT type='submit' name='enviar' value="Enviar"></TD>
</TR>
</table></form>