ma hai cambiato qui il nomeForm con il nome del tuo form?
var f=document.nomeForm;
non so da cosa altro potrebbe dipendere
copia/incolla questa e dimmi se funziona
ciaocodice:<html> <head> <title></title> <script type="text/javascript"> <!-- function checkAll(c,ckname){ var flag=c.checked; var f=document.nomeForm; if(f.elements[ckname].length){ for(var k=0;k<f.elements[ckname].length;k++){ f.elements[ckname][k].checked=flag; } } else{ f.elements[ckname].checked=flag; } } //--> </script> </head> <body> <form name="nomeForm"> <input type="checkbox" name="inviosms" /> <input type="checkbox" name="inviosms" /> <input type="checkbox" name="inviosms" /> <input type="checkbox" name="inviosms" /> <input type="checkbox" name="inviosms" /> <input type="checkbox" name="inviosms" /> <input type="checkbox" name="inviosms" /> <input type="checkbox" name="inviosms" /> <hr /> <input type="checkbox" onclick="checkAll(this,'inviosms')" /> </form> </body> </html>

Rispondi quotando