Mortgage Loan Calculator
<script language=javascript>
<!--
function ProcessForm (form)
{
var score=0,temp=0,temp1=0,rate=0,i=0,temp2=0,temp3=0;
rate = form.c3.value/100;
Score = Form.c1.value * rate;
TEMP2 = 1 + rate;
Temp3 = Temp2;
for (i=1;i<form.c2.value;i++)
{
TEMP2 = Temp2 * Temp3;
}
Temp1 = temp2-1;
Score = score * TEMP2/TEMP1;
Form.result.value = score;
}
-->
</SCRIPT>
<script language=javascript>
function runjs1 (obj) {dj1=parsefloat (obj.dj1.value)
Chsh1=parseint ( Obj.chsh1.value)/10
Nsh1=parseint (obj.nsh1.value)
Qsh=12*nsh1
{if (nsh1<6) lx=parsefloat (0.0477)
if (nsh1>=6) lx=parsefloat (0.0504)}
YLX=LX/12
Mj1=parsefloat (obj.mj1.value)
Fkz1=dj1*mj1
dkz1= FKZ1*CHSH1
yj1= (ylx/(1/(Math.pow (1+ylx,qsh))) *dkz1
Hkz1=yj1*qsh
Obj.dkz1.value=math.round (dkz1* 100,5)/100
Obj.shf1.value=math.round ((FKZ1-DKZ1) *100,5)/100
Obj.yj1.value=math.round (yj1*100,5)/100
Obj.fkz1.value=math.round (fkz1*100,5)/100
Obj.lxfd1.value=math.round ((HKZ1-DKZ1) *100,5)/100
Obj.hkz1.value=math.round (hkz1*100,5)/100}
</script>
<table cellspacing=1 cellpadding=5 width= "100%" Align=center
Border=0>
<form name=formt action= "" method=post>
<TBODY>
<tr bgcolor= #ffffff >
<TD width= "52%" height=110 align= "left"
Bgcolor= "#ffffff" class=font> Unit Price:
<input maxlength=6
size=10 name=dj1>/<br> Area: <input maxlength=7
size=10
Name=mj1> <BR> loan-to-value ratio: <select style= "Font-size:
12px "size=1
name=chsh1> <option value=8 selected>8 Cheng </OPTION>
<option
Value=7>7 </OPTION> <option value=6>6 </OPTION>
<option
Value=5>5 </OPTION> <option value=4>4 </OPTION>
<option
Value=3>3 into </OPTION> <option value=2>2
</OPTION></SELECT>
<BR>
Year of Mortgage: <select style= "font-size:12px" size=1
Name=nsh1>
<option value=2>2 Year (phase 24) </OPTION> <option
Value=3>3 year (36) </OPTION> <option value=4>4 Year (48
Period) </OPTION>
<option value=5>5 Year (phase 60) </OPTION> <option
Value=6>6 Year (72) </OPTION> <option value=7>7 Year (84
Period) </OPTION>
<option value=8>8 Year (phase 96) </OPTION> <option
Value=9>9 year (phase 108) </OPTION> <option
VALUE=10>10 year (phase 120) </OPTION> <option value=15
SELECTED>15 year (phase 180) </OPTION> <option
VALUE=20>20 year (phase 240) </OPTION> <option
VALUE=25>25 year (phase 300) </OPTION> <option
Value=30>30 year (360) </OPTION></SELECT> </TD>
<TD class=font width= "48%" rowspan=2> the total amount of room money: <input
size=10
Name=fkz1> <BR> Total loans: <input size=10 name=dkz1>
RMB <BR> downpayment Payment:
<input size=10 name=shf1> Yuan <BR> monthly repayment: <input
size=10 name=yj1>
Total <BR> repayment: <input size=10 name=hkz1> Yuan <BR> payment
Interest Payment: <input size=10
Name=lxfd1> Yuan </TD></TR>
<tr bgcolor= #ffffff >
<TD width= "52%" Height=36><input onclick=runjs1
(this.form) Type=button value= start calculation name=math1>
<input Type=reset value= Recalculation name=submit21>
</TD></TR></FORM></TBODY></TABLE>