
$(function(){
	$('input.selectall').click(function() {
		$('input.' + $(this).attr('class').split(' ')[1]).attr('checked', this.checked);
	});
})
