Hola joja_2!!
Espero que este script sirva para que perdones mi metedura de pata ![borracho](http://static.forosdelweb.com/fdwtheme/images/smilies/borracho.png)
Un saludo!![Adios](http://static.forosdelweb.com/fdwtheme/images/smilies/adios.gif)
Código PHP:
<html>
<head>
<title>Untitled</title>
<script>
function cambio(){
for (a=0;a<document.forms[0].elements.length;a++){
if (document.forms[0].elements[a].checked){document.forms[0].elements[a].checked=false}
else{document.forms[0].elements[a].checked=true}
}}
</script>
</head>
<body>
<form action="">
<input type="checkbox"
name="1"
value="">Opción 1<br>
<input type="checkbox"
name="2"
value="">Opción 2<br>
<input type="checkbox"
name="3"
value="">Opción 3<br>
<input type="checkbox"
name="4"
value="">Opción 4<br>
<input type="checkbox"
name="5"
value="">Opción 5<br>
<input type="button"
value="pincha"
onClick="cambio()">
</form>
</body>
</html>