
<!-- 
 function calc(amount)
{
  
 document.write(' <TABLE BORDER=0 CELLPADDING=1 CELLSPACING=0>');
 document.write(' <TR>');
 document.write('  <TD BGCOLOR=#000000>');
 document.write('	<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>');
 document.write('         <TR>');
 document.write('           <TD BGCOLOR=#C0C0C0>');
 document.write('		<TABLE BORDER=1 CELLPADDING=4 CELLSPACING=1>');
 document.write('		<FORM NAME="frmCalc" STYLE="display:inline">');
 document.write('			<TR ALIGN=left VALIGN=middle>');
				 
 document.write('				<TD NOWRAP><FONT SIZE=2>House Price</FONT></TD>');
 document.write('				<TD NOWRAP>');
 document.write('					<INPUT TYPE=text NAME=price SIZE=8 VALUE="' + amount + '" onChange="if(CheckAllFields(this.form)) { if(ReadDollarField(this) < ReadDollarField(this.form.downpay)) { this.form.downpay.value = this.value; RecalcDownPayPerc(this.form) } RecalcMonthlyPay(this.form); } else this.value=cache;" onFocus="cache=this.value"><BR>');
 document.write('				</TD>');
				 
 document.write('				<TD NOWRAP><FONT SIZE=2>Down Payment</FONT></TD>');
 document.write('				<TD NOWRAP><FONT SIZE=2>');
 document.write('					<INPUT TYPE=text NAME=downpay SIZE=8 VALUE="0.0" onChange="if(CheckAllFields(this.form)) { RecalcDownPayPerc(this.form); RecalcMonthlyPay(this.form); } else this.value=cache" onFocus="cache=this.value">, or<BR>');
 document.write('					<INPUT TYPE=text NAME=downpayperc SIZE=5 VALUE="5" onChange="if(CheckAllFields(this.form)) { RecalcDownPayAmount(this.form); RecalcMonthlyPay(this.form); } else this.value=cache" onFocus="cache=this.value">%<BR>');
 document.write('				</FONT></TD>');
 document.write('			</TR>');
 document.write('			<TR ALIGN=left VALIGN=middle>');
				 
 document.write('				<TD NOWRAP><FONT SIZE=2>Loan Term</FONT></TD>');
 document.write('				<TD NOWRAP><FONT SIZE=2>');
 document.write('					<INPUT TYPE=text NAME=termMonths SIZE=4 VALUE="300" onChange="if(CheckAllFields(this.form)){recalcTermYears(this.form);RecalcMonthlyPay(this.form);} else this.value=cache;" onFocus="cache=this.value">');
 document.write('					months, or<BR>');
 document.write('					<INPUT TYPE=text NAME=termYears SIZE=3 VALUE="25" onChange="if(CheckAllFields(this.form)) {recalcTermMonths(this.form);RecalcMonthlyPay(this.form);} else this.value=cache;" onFocus="cache=this.value">');
 document.write('					years.<BR>');
 document.write('				</FONT></TD>');
				 
 document.write('				<TD NOWRAP><FONT SIZE=2>Annual Interest Rate</FONT></TD>');
 document.write('				<TD NOWRAP><FONT SIZE=2>');
 document.write('					<INPUT TYPE=text NAME=intYear SIZE=4 VALUE="0.0" onChange="if(CheckAllFields(this.form)) {RecalcMonthlyPay(this.form);} else this.value=cache" onFocus="cache=this.value">%<BR>');
 document.write('				</FONT></TD>');
 document.write('			</TR>');
 document.write('			<TR ALIGN=left VALIGN=middle>');
				 
 document.write('				<TD NOWRAP><FONT SIZE=2><B>Monthly Payment</B></FONT></TD>');
 document.write('				<TD NOWRAP><FONT SIZE=2>');
 document.write('					<INPUT TYPE=text NAME=payMonth SIZE=8 VALUE="" onChange="if(CheckAllFields(this.form)) RecalcDownPay(this.form); else this.value=cache;" onFocus="cache=this.value"><BR>');
 document.write('				</FONT></TD>');

 document.write('			<TD COLSPAN=2 ALIGN=center VALIGN=middle>');
 document.write('				<INPUT TYPE=button VALUE="Calculate" CLASS=buttonFAH onClick="RecalcMonthlyPay(document.frmCalc)" onFocus="this.blur()">');
 
 document.write('			</TD></TR>');
 document.write('		</FORM>');
 document.write('	     </TABLE>');
 document.write('	</TD></TR></TABLE>');
 document.write('</TD></TR></TABLE>');
}

 // -->

