Can this Jquery function that changes the state of checkboxes be improved?

Printable View