function dynamic_forms(){
	$('.fn_toggleCheckboxes').click(function() {		
		if($(this).attr('checked')) {
			$(this).closest('form').find('input[type=checkbox]').not($(this)).attr('checked', 'checked');
		}
		else {
			$(this).closest('form').find('input[type=checkbox]').not($(this)).removeAttr('checked', 'checked');
		}
	});
	$('.fn_clearAll').click(function() {
		$('.fn_toggleCheckboxes').removeAttr('checked');
	});
};