generally not a good idea to have IDs starting with numbers, but if you were to go that way you could reduce your entire jQuery to:
Code:
$(document).ready( function() {
$('a').click(function () {
var cb='#'+this.className.substr(-1);
$(cb).attr("checked", !$(cb).is(':checked'));
});
});