ah, l' alert
Originariamente inviato da Xinod
codice:
function verifyCheckboxes(f){
  var fEls=f.elements,valid=true;
  for(var k=0,l=fEls.length;k<l;++k){
    if(fEls[k].type=='checkbox' && !fEls[k].checked){
      valid=false;
      var invalidCheck=fEls[k].value.spit('_')[1];
      alert("il checkbox numero "+invalidCheck+" non e' segnato");
      break;
    }
  }
  return valid
}
<form ... onsubmit="return verifyCheckboxes(this)">