function setTallyDefaults(){
	//set to checked
	$('#estimateType1').attr('checked', true);
	$('#estimateType2').attr('checked', true);
	$('#approvalStatus1').attr('checked', true);
	$('#processType1').attr('checked', true);
	//set to false
	$('#approvalStatus2').attr('checked', false);
	$('#approvalStatus3').attr('checked', false);
	$('#processType2').attr('checked', false);
	//disable the check boxes
	$('#estimateType1').attr('disabled', "true");
	$('#estimateType2').attr('disabled', "true");
	$('#approvalStatus1').attr('disabled', "true");
	$('#approvalStatus2').attr('disabled', "true");
	$('#approvalStatus3').attr('disabled', "true");
	$('#processType1').attr('disabled', "true");
	$('#processType2').attr('disabled', "true");

}

$(document).ready(
		function(){
			//To deal with the page refreshing
			if ($('#tally1').is(':checked')) {
				setTallyDefaults();
			}
			$('#tally1').click(
					function(){
						if ($('#tally1').is(':checked')) {
							setTallyDefaults();
						} else {
							$('#estimateType1').removeAttr('disabled');
							$('#estimateType2').removeAttr('disabled');
							$('#approvalStatus1').removeAttr('disabled');
							$('#approvalStatus2').removeAttr('disabled');
							$('#approvalStatus3').removeAttr('disabled');
							$('#processType1').removeAttr('disabled');
							$('#processType2').removeAttr('disabled');
						}
					});
		});


