Hola
CarlaMedina
Te pongo un ejemplo para invertir los checkbox:
Código PHP:
<html>
<head>
<script>
function inver(frm) {
for (i=0; ele=frm.elements[i]; i++)
if(ele.type=='checkbox')
ele.checked = !ele.checked;
}
</script>
</head>
<body>
<form>
<input type="checkbox" />
<input type="checkbox" />
<input type="checkbox" />
<input type="button" value="Invertir" onclick="inver(this.form)" />
</form>
</body>
</html>
El resto te lo dejo para que te entretengas un ratillo.
Saludos,