Hola
Carxl
Prueba este ejemplo:
Código PHP:
<html>
<head>
<script type="text/javascript">
function marcar(obj) {
for (i=0; ele = obj.form.elements[i]; i++)
if (ele.type=='checkbox')
ele.checked = obj.checked;
}
</script>
</head>
<body>
<form name="f1">
Todos: <input type="checkbox" onclick = "marcar(this)" /><br />
<input type="checkbox" /><br />
<input type="checkbox" />
</form>
<form name="f2">
Todos: <input type="checkbox" onclick = "marcar(this)" /><br />
<input type="checkbox" /><br />
<input type="checkbox" />
</form>
</body>
</html>
Saludos,