function part1_calc_total() {
		var total;
		total = numeric(document.part1_calc.txt_mortage_rent.value);
		total = total + numeric(document.part1_calc.txt_car_payment.value);
		total = total + numeric(document.part1_calc.txt_rrsp_resp.value);
		total = total + numeric(document.part1_calc.txt_loan_payments.value);
		total = total + numeric(document.part1_calc.txt_utilities.value);
		total = total + numeric(document.part1_calc.txt_phone_cable.value);
		total = total + numeric(document.part1_calc.txt_car_expenses.value);
		total = total + numeric(document.part1_calc.txt_insurance.value);
                total = total + numeric(document.part1_calc.txt_health.value);
		total = total + numeric(document.part1_calc.txt_food.value);
		total = total + numeric(document.part1_calc.txt_clothing.value);
		total = total + numeric(document.part1_calc.txt_property_taxes.value);
		total = total + numeric(document.part1_calc.txt_childcare.value);
		total = total + numeric(document.part1_calc.txt_entertainment.value);
		total = total + numeric(document.part1_calc.txt_other.value);
		document.part1_calc.txt_additional_total.value = total;
	}
	function part2_calc_total() {
		var total;
		total = numeric(document.part2_calc.txt_individual.value);
		total = total + numeric(document.part2_calc.txt_group.value);
		total = total + numeric(document.part2_calc.txt_association.value);
                total = total + numeric(document.part2_calc.txt_business.value);
                total = total + numeric(document.part2_calc.txt_unearned.value);
		total = total + numeric(document.part2_calc.txt_spouse.value);
		document.part2_calc.txt_monthly_total.value = total;
	}
	function part3_calc_total() {
		var part1 = document.part1_calc.txt_additional_total.value;
		var part2 = document.part2_calc.txt_monthly_total.value;
		document.part3_calc.txt_total.value = (part1 - part2);
	}
        function dump_1() {
		document.part1_calc.reset();
        }
        function dump_2() {
		document.part2_calc.reset();
        }
	function dump_all() {
		document.part1_calc.reset();
		document.part2_calc.reset();
		document.part3_calc.reset();
	}
	function numeric(value) {
		var whole_number;
		if (value.length == 0) {
			whole_number = 0;
		} else {
			whole_number = parseInt(value);
		}
		return whole_number;
	}




var frmvalidator  = new Validator("part1_calc");
 	frmvalidator.addValidation("txt_mortage_rent","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_car_payment","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_rrsp_resp","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_loan_payments","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_utilities","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_phone_cable","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_car_expenses","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_insurance","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
        frmvalidator.addValidation("txt_health","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_food","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_clothing","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_property_taxes","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_childcare","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_entertainment","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_other","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");




var frmvalidator  = new Validator("part2_calc");
 	frmvalidator.addValidation("txt_individual","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_group","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_association","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
        frmvalidator.addValidation("txt_business","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
        frmvalidator.addValidation("txt_unearned","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");
	frmvalidator.addValidation("txt_spouse","numeric", "Enter whole numbers in each field. Do not enter commas, decimals or spaces.");



