$(document).ready(function() {
   
   // register the 'select all' checkbox
   $('form .checkboxes input[value="all"]').click(function() {
      
      if ($(this).attr('checked')) {
         
         $('form .checkboxes input[value!="no"]').attr('checked', 'checked');
         $('form .checkboxes input[value="no"]').removeAttr('checked');
         
      } else {
         
         $('form .checkboxes input[value!="no"]').removeAttr('checked');
      }
   });
});