'; // end of html if (form.showAmort.checked == true) { // if user checked the show amortization box then open window and show table var amortWindow = window.open("", "Amortization", "width=650, height=600, scrollbars=1, resizeable=1, location=0"); amortWindow.document.open(); amortWindow.document.write(html); amortWindow.documnet.close(); } } } // resets the form values to default and erases values function resetMortgageForm(form) { form.loanAmount.value = "0"; form.interestRate.value = "0.0"; form.numYears.value = "0"; form.moPayment.value = ""; form.moPrincipalAdded.value = "0"; form.showAmort.checked = false; form.amortByMonth.disabled=true; form.amortByYear.disabled=true; form.amortByYear.checked=true; form.amortByMonth.checked=false; } // disables amortization options when 'show amortization table' option is unchecked and vice versa function enableDisableFields(form) { if (form.showAmort.checked) { form.amortByMonth.disabled=false; form.amortByYear.disabled=false; } else { form.amortByMonth.disabled=true; form.amortByYear.disabled=true; form.amortByYear.checked=true; form.amortByMonth.checked=false; } } // make sure the amortization by month is unchecked when choosing the amortization by year function amortByYearCheck(form) { form.amortByYear.checked=true; form.amortByMonth.checked=false; } // make sure the amortization by year is unchecked when choosing the amortization by month function amortByMonthCheck(form) { form.amortByMonth.checked=true; form.amortByYear.checked=false; }
Mortgage Calculator
Principal Loan Amount
$
Interest Rate (ex: 6.25)
Monthly Principal Added
$
Loan Term (years)
Est. Monthly Payment
$
Show Amortization Table
By Month
By Year
Calculator by Zapus