jQuery at its best:
if ($(this).is(":not(:checked)")) { ... }
Code that reads like English is great. Actually, this is meant to be the promise of
RoR. I ought to look into that properly at some point. Was put off by the horrific mess of inline event handlers that it produced though; maybe that's changed?