// JavaScript Document
function makeVals(){
	if(document.forms[0].x_rent_or_mortgage.value.length > 0 && document.forms[0].x_real_estate_taxes.value.length > 0 && document.forms[0].x_car_payment1.value.length > 0 && document.forms[0].x_car_payment2.value.length > 0 && document.forms[0].x_gas_for_automobiles.value.length > 0 && document.forms[0].x_automobile_insurance.value.length > 0 && document.forms[0].x_medicaldental_copay.value.length > 0 && document.forms[0].x_prescription_medication.value.length > 0 && document.forms[0].x_ongoing_medical_expense.value.length > 0 && document.forms[0].x_electric.value.length > 0 && document.forms[0].x_gas.value.length > 0 && document.forms[0].x_oil.value.length > 0 && document.forms[0].x_water.value.length > 0 && document.forms[0].x_cable.value.length > 0 && document.forms[0].x_internet.value.length > 0 && document.forms[0].x_telephone.value.length > 0 && document.forms[0].x_cellphone.value.length > 0 && document.forms[0].x_back_tax_payment.value.length > 0 && document.forms[0].x_student_loans.value.length > 0 && document.forms[0].x_other_loan_payments.value.length > 0 && document.forms[0].x_afdc_payments.value.length > 0 && document.forms[0].x_food_stamps.value.length > 0 && document.forms[0].x_disability.value.length > 0 && document.forms[0].x_any_other_income_source.value.length > 0 && document.forms[0].x_retirement_funds.value.length > 0 && document.forms[0].x_other_pensions.value.length > 0){
document.forms[0].monthly_mortgage.value = document.forms[0].x_rent_or_mortgage.value*1 + document.forms[0].x_real_estate_taxes.value*1;
document.forms[0].monthly_auto_payment.value = document.forms[0].x_car_payment1.value*1 + document.forms[0].x_car_payment2.value*1;
document.forms[0].monthly_auto_expense.value = document.forms[0].x_gas_for_automobiles.value*1 + document.forms[0].x_automobile_insurance.value*1;
document.forms[0].monthly_medical_expense.value = document.forms[0].x_medicaldental_copay.value*1 + document.forms[0].x_prescription_medication.value*1 + document.forms[0].x_ongoing_medical_expense.value*1;
document.forms[0].monthly_utilities.value = document.forms[0].x_electric.value*1 + document.forms[0].x_gas.value*1 + document.forms[0].x_oil.value*1 + document.forms[0].x_water.value*1 + document.forms[0].x_cable.value*1 + document.forms[0].x_internet.value*1 + document.forms[0].x_telephone.value*1 + document.forms[0].x_cellphone.value*1;
document.forms[0].other_loans.value = document.forms[0].x_back_tax_payment.value*1 + document.forms[0].x_student_loans.value*1 + document.forms[0].x_other_loan_payments.value*1;
document.forms[0].food_stamps_or_other.value = document.forms[0].x_afdc_payments.value*1 + document.forms[0].x_food_stamps.value*1 + document.forms[0].x_disability.value*1 + document.forms[0].x_any_other_income_source.value*1;
document.forms[0].military_or_other_pensions.value = document.forms[0].x_retirement_funds.value*1 + document.forms[0].x_other_pensions.value*1;
}
else {
	
	}
}
/*
function validateIt(){
/*	v=1;
	for (i=0; i<document.forms[0].elements.length; ++i;){
		if (document.forms[0].elements[i].value.length < 1) {
			v += 1;
		}
	}
	if(v > 0){//
		if (document.forms[0].client_id.value.length < 1) {
		document.getElementById('client_id').style.background='FFFF00';
		}
		else if (document.forms[0].client_id.value.length > 1) {
		document.getElementById('client_id').style.background='FFFFFF';
		}
		if (document.forms[0].name_of_applicant.value.length < 1) {
		document.getElementById('name_of_applicant').style.background='FFFF00';
		}
		else if (document.forms[0].name_of_applicant.value.length > 1) {
		document.getElementById('name_of_applicant').style.background='FFFFFF';
		}
		if (document.forms[0].number_of_dependents.value.length < 1) {
		document.getElementById('number_of_dependents').style.background='FFFF00';
		}
		else if (document.forms[0].number_of_dependents.value.length > 1) {
		document.getElementById('number_of_dependents').style.background='FFFFFF';
		}
		if (document.forms[0].date.value.length < 1) {
		document.getElementById('date').style.background='FFFF00';
		}
		else if (document.forms[0].date.value.length > 1) {
		document.getElementById('date').style.background='FFFFFF';
		}
				if (document.forms[0].name_of_coapplicant.value.length < 1) {
		document.getElementById('name_of_coapplicant').style.background='FFFF00';
		}
		else if (document.forms[0].name_of_coapplicant.value.length > 1) {
		document.getElementById('name_of_coapplicant').style.background='FFFFFF';
		}
		if (document.forms[0].x_rent_or_mortgage.value.length < 1) {
		document.getElementById('x_rent_or_mortgage').style.background='FFFF00';
		}
		else if (document.forms[0].x_rent_or_mortgage.value.length > 1) {
		document.getElementById('x_rent_or_mortgage').style.background='FFFFFF';
		}
		if (document.forms[0].x_real_estate_taxes.value.length < 1) {
		document.getElementById('x_real_estate_taxes').style.background='FFFF00';
		}
		else if (document.forms[0].x_real_estate_taxes.value.length > 1) {
		document.getElementById('x_real_estate_taxes').style.background='FFFFFF';
		}
		if (document.forms[0].x_car_payment1.value.length < 1) {
		document.getElementById('x_car_payment1').style.background='FFFF00';
		}
		else if (document.forms[0].x_car_payment1.value.length > 1) {
		document.getElementById('x_car_payment1').style.background='FFFFFF';
		}
				if (document.forms[0].x_car_payment2.value.length < 1) {
		document.getElementById('x_car_payment2').style.background='FFFF00';
		}
		else if (document.forms[0].x_car_payment2.value.length > 1) {
		document.getElementById('x_car_payment2').style.background='FFFFFF';
		}
		if (document.forms[0].x_gas_for_automobiles.value.length < 1) {
		document.getElementById('x_gas_for_automobiles').style.background='FFFF00';
		}
		else if (document.forms[0].x_gas_for_automobiles.value.length > 1) {
		document.getElementById('x_gas_for_automobiles').style.background='FFFFFF';
		}
		if (document.forms[0].x_automobile_insurance.value.length < 1) {
		document.getElementById('x_automobile_insurance').style.background='FFFF00';
		}
		else if (document.forms[0].x_automobile_insurance.value.length > 1) {
		document.getElementById('x_automobile_insurance').style.background='FFFFFF';
		}
		if (document.forms[0].groceries.value.length < 1) {
		document.getElementById('groceries').style.background='FFFF00';
		}
		else if (document.forms[0].groceries.value.length > 1) {
		document.getElementById('groceries').style.background='FFFFFF';
		}
				if (document.forms[0].monthly_insurance_payments.value.length < 1) {
		document.getElementById('monthly_insurance_payments').style.background='FFFF00';
		}
		else if (document.forms[0].monthly_insurance_payments.value.length > 1) {
		document.getElementById('monthly_insurance_payments').style.background='FFFFFF';
		}
		if (document.forms[0].x_medicaldental_copay.value.length < 1) {
		document.getElementById('x_medicaldental_copay').style.background='FFFF00';
		}
		else if (document.forms[0].x_medicaldental_copay.value.length > 1) {
		document.getElementById('x_medicaldental_copay').style.background='FFFFFF';
		}
		if (document.forms[0].x_prescription_medication.value.length < 1) {
		document.getElementById('x_prescription_medication').style.background='FFFF00';
		}
		else if (document.forms[0].x_prescription_medication.value.length > 1) {
		document.getElementById('x_prescription_medication').style.background='FFFFFF';
		}
		if (document.forms[0].x_ongoing_medical_expense.value.length < 1) {
		document.getElementById('x_ongoing_medical_expense').style.background='FFFF00';
		}
		else if (document.forms[0].x_ongoing_medical_expense.value.length > 1) {
		document.getElementById('x_ongoing_medical_expense').style.background='FFFFFF';
		}
		if (document.forms[0].child_support_paid.value.length < 1) {
		document.getElementById('child_support_paid').style.background='FFFF00';
		}
		else if (document.forms[0].child_support_paid.value.length > 1) {
		document.getElementById('child_support_paid').style.background='FFFFFF';
		}
		if (document.forms[0].other_child_expenses.value.length < 1) {
		document.getElementById('other_child_expenses').style.background='FFFF00';
		}
		else if (document.forms[0].other_child_expenses.value.length > 1) {
		document.getElementById('other_child_expenses').style.background='FFFFFF';
		}
		if (document.forms[0].x_electric.value.length < 1) {
		document.getElementById('x_electric').style.background='FFFF00';
		}
		else if (document.forms[0].x_electric.value.length > 1) {
		document.getElementById('x_electric').style.background='FFFFFF';
		}
		if (document.forms[0].x_gas.value.length < 1) {
		document.getElementById('x_gas').style.background='FFFF00';
		}
		else if (document.forms[0].x_gas.value.length > 1) {
		document.getElementById('x_gas').style.background='FFFFFF';
		}
		if (document.forms[0].x_oil.value.length < 1) {
		document.getElementById('x_oil').style.background='FFFF00';
		}
		else if (document.forms[0].x_oil.value.length > 1) {
		document.getElementById('x_oil').style.background='FFFFFF';
		}
		if (document.forms[0].x_water.value.length < 1) {
		document.getElementById('x_water').style.background='FFFF00';
		}
		else if (document.forms[0].x_water.value.length > 1) {
		document.getElementById('x_water').style.background='FFFFFF';
		}
		if (document.forms[0].x_cable.value.length < 1) {
		document.getElementById('x_cable').style.background='FFFF00';
		}
		else if (document.forms[0].x_cable.value.length > 1) {
		document.getElementById('x_cable').style.background='FFFFFF';
		}
		if (document.forms[0].x_internet.value.length < 1) {
		document.getElementById('x_internet').style.background='FFFF00';
		}
		else if (document.forms[0].x_internet.value.length > 1) {
		document.getElementById('x_internet').style.background='FFFFFF';
		}
		if (document.forms[0].x_telephone.value.length < 1) {
		document.getElementById('x_telephone').style.background='FFFF00';
		}
		else if (document.forms[0].x_telephone.value.length > 1) {
		document.getElementById('x_telephone').style.background='FFFFFF';
		}
		if (document.forms[0].x_cellphone.value.length < 1) {
		document.getElementById('x_cellphone').style.background='FFFF00';
		}
		else if (document.forms[0].x_cellphone.value.length > 1) {
		document.getElementById('x_cellphone').style.background='FFFFFF';
		}
		if (document.forms[0].x_back_tax_payment.value.length < 1) {
		document.getElementById('x_back_tax_payment').style.background='FFFF00';
		}
		else if (document.forms[0].x_back_tax_payment.value.length > 1) {
		document.getElementById('x_back_tax_payment').style.background='FFFFFF';
		}
		if (document.forms[0].x_student_loans.value.length < 1) {
		document.getElementById('x_student_loans').style.background='FFFF00';
		}
		else if (document.forms[0].x_student_loans.value.length > 1) {
		document.getElementById('x_student_loans').style.background='FFFFFF';
		}
		if (document.forms[0].x_other_loan_payments.value.length < 1) {
		document.getElementById('x_other_loan_payments').style.background='FFFF00';
		}
		else if (document.forms[0].x_other_loan_payments.value.length > 1) {
		document.getElementById('x_other_loan_payments').style.background='FFFFFF';
		}
		if (document.forms[0].total_credit_card_minimum_payment.value.length < 1) {
		document.getElementById('total_credit_card_minimum_payment').style.background='FFFF00';
		}
		else if (document.forms[0].total_credit_card_minimum_payment.value.length > 1) {
		document.getElementById('total_credit_card_minimum_payment').style.background='FFFFFF';
		}
		if (document.forms[0].applicants_take_home_pay.value.length < 1) {
		document.getElementById('applicants_take_home_pay').style.background='FFFF00';
		}
		else if (document.forms[0].applicants_take_home_pay.value.length > 1) {
		document.getElementById('applicants_take_home_pay').style.background='FFFFFF';
		}
		if (document.forms[0].coapplicants_take_home_pay.value.length < 1) {
		document.getElementById('coapplicants_take_home_pay').style.background='FFFF00';
		}
		else if (document.forms[0].coapplicants_take_home_pay.value.length > 1) {
		document.getElementById('coapplicants_take_home_pay').style.background='FFFFFF';
		}
		if (document.forms[0].child_support_received.value.length < 1) {
		document.getElementById('child_support_received').style.background='FFFF00';
		}
		else if (document.forms[0].child_support_received.value.length > 1) {
		document.getElementById('child_support_received').style.background='FFFFFF';
		}
		if (document.forms[0].x_afdc_payments.value.length < 1) {
		document.getElementById('x_afdc_payments').style.background='FFFF00';
		}
		else if (document.forms[0].x_afdc_payments.value.length > 1) {
		document.getElementById('x_afdc_payments').style.background='FFFFFF';
		}
		if (document.forms[0].x_any_other_income_source.value.length < 1) {
		document.getElementById('x_any_other_income_source').style.background='FFFF00';
		}
		else if (document.forms[0].x_any_other_income_source.value.length > 1) {
		document.getElementById('x_any_other_income_source').style.background='FFFFFF';
		}
		if (document.forms[0].x_food_stamps.value.length < 1) {
		document.getElementById('x_food_stamps').style.background='FFFF00';
		}
		else if (document.forms[0].x_food_stamps.value.length > 1) {
		document.getElementById('x_food_stamps').style.background='FFFFFF';
		}
		if (document.forms[0].x_disability.value.length < 1) {
		document.getElementById('x_disability').style.background='FFFF00';
		}
		else if (document.forms[0].x_disability.value.length > 1) {
		document.getElementById('x_disability').style.background='FFFFFF';
		}
		if (document.forms[0].x_retirement_funds.value.length < 1) {
		document.getElementById('x_retirement_funds').style.background='FFFF00';
		}
		else if (document.forms[0].x_retirement_funds.value.length > 1) {
		document.getElementById('x_retirement_funds').style.background='FFFFFF';
		}
		if (document.forms[0].x_other_pensions.value.length < 1) {
		document.getElementById('x_other_pensions').style.background='FFFF00';
		}
		else if (document.forms[0].x_other_pensions.value.length > 1) {
		document.getElementById('x_other_pensions').style.background='FFFFFF';
		}
		if (document.forms[0].social_security.value.length < 1) {
		document.getElementById('social_security').style.background='FFFF00';
		}
		else if (document.forms[0].social_security.value.length > 1) {
		document.getElementById('social_security').style.background='FFFFFF';
		}
		if (document.forms[0].reason_for_hardship.value.length < 1) {
		document.getElementById('reason_for_hardship').style.background='FFFF00';
		}
		else if (document.forms[0].reason_for_hardship.value.length > 1) {
		document.getElementById('reason_for_hardship').style.background='FFFFFF';
		}
		alert('Please fill in all required fields.\nFields must have a dollar amount or a 0');
		return false;
		
	/*else if (document.forms[0].policies.checked == false) { 
		alert('You must acknowledge your agreement with the statements above.\n	Please check the box to continue.');

		return false;
	}
}
	else {
		return true;
	}
}
*/
