Tip: you can modify some code before running
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" type="text/css" href="style.css" /><script language="javascript">Rhb = new Array (440.104, 301.103, 231.7, 190.136, 163.753, 144.08, 129.379, 117.991, 108.923, 101.542, 95.425, 90.282, 85.902, 82.133, 78.861, 75.997, 73.473, 71.236, 69.241, 67.455, 65.848, 64.397, 63.082, 61.887, 60.798, 59.802, 58.890, 58.052, 57.282) yhz = new Array (1.978, 2.9344, 3.8699, 4.7847, 5.6794, 6.5544, 7.4102, 8.2472, 9.0657, 9.8662, 10.6491, 11.4148, 12.1636, 12.8959, 13.6121, 14.3126, 14.9977, 15.6677, 16.3229, 16.9637, 17.5904 4, 18.8028, 19.389, 19.9624, 20.5231, 21.0715, 21.6078, 22.1323) function chk01 () {if (parseFloat (document. myform. rg01.value) <4.7) alert ("-- you are sure to" + parseFloat (document. myform. rg01.value) + "ten thousand yuan? -- "+" Nn "+" you do not yet have the ability to buy a house. "+" nn "+" we suggest accumulating savings or raising more funds. ") If (parseFloat (document. myform. rg01.value)> 10000) alert (" Are you sure you have a purchase fund of more than 0.1 billion yuan? ");} Function chk02 () {if (parseFloat (document. myform. rg03.value)> parseFloat (document. myform. rg02.value) * 0.7) {alert ("your estimated monthly household spending on purchasing a house has exceeded 70% of your monthly household income, "+" nn "+" are you sure it will not affect your normal living and consumption? "+" Nn "+" we recommend that you set this parameter to 40% ("+ parseFloat (document. myform. rg02.value) * 0.4 + "RMB) around")} function chk03 () {if (document. myform. rg01.value = "") alert ("Please fill in the funds available for purchasing a house") elseif (document. myform. rg02.value = "") alert ("fill in current household income") elseif (document. myform. rg03.value = "") alert ("Please fill in the estimated monthly household purchase expenses") elseif (document. myform. rg06.value = "") alert ("fill in the area of the house you plan to purchase") elsechk04 ()} function chk04 () {js00 = parseFloat (document. myform. rg01.value) * 1000 0js01 = parseFloat (document. myform. rg03.value) js02 = Math. round (js01/rhb [parseInt (document. myform. rg04.options [document. myform. rg04.selectedIndex]. value)/12-2]) * required js03 = parseFloat (document. myform. rg06.value) if (js02> js00 * 3.2) js02 = js00 * 3.2document.myform.rg07.value = Math. round (js02 + 0.8 * js00) x 100)/100document. myform. rg08.value = Math. round (parseFloat (document. myform. rg07.value)/js03 * 100)/100if (js03 <120 ) Document. myform. rg10.value = Math. round (parseFloat (document. myform. rg07.value) * 2)/100elsedocument. myform. rg10.value = Math. round (parseFloat (document. myform. rg07.value)-parseFloat (document. myform. rg08.value) * 120) * 4 + parseFloat (document. myform. rg08.value) * 120*2)/100document. myform. rg11.value = Math. round (parseFloat (document. myform. rg07.value) * 2)/100document. myform. rg12.value = Math. round (parseFloat (role en T. myform. rg07.value) * 20)/100document. myform. rg13.value = Math. round (Math. round (parseFloat (document. myform. rg07.value) * 0.05)/100 * yhz [parseInt (document. myform. rg04.options [document. myform. rg04.selectedIndex]. value)/12-2] * 100)/100document. myform. rg14.value = Math. round (parseFloat (document. myform. rg07.value) * 0.3)/100document. myform. rg15.value = "200 ~ 500 "}</script><style type="text/css"><!--body,td,th {font-size: 9pt;}--></style></head><body topmargin=5 marginheight=5 leftmargin=5 marginwidth=5><center><div class="jsq_bg clearfix"> <div class="jsq_right"><table width="294" border="0" cellspacing="0" cellpadding="0" background="#fff"> <form name=myform> <tr><td height="20"></td></tr><tr> <td></td> </tr> <tr> <td><table width="380" border=0 align="center" cellpadding=0 cellspacing=0><tr valign=top><td align=center><table width=380 border=0 cellpadding=0 cellspacing=0><tr valign=bottom><td width=365 valign="top"><table width=380 border=0 cellpadding=5 cellspacing=1 bgcolor="#F8E1CD"><tr> <td height=26 align="left" bgcolor="#FFFBF7">Funds available for purchasing a house:<input size=10 name=rg01 onblur=chk01()>RMB</td></tr><tr> <td height=26 align="left" bgcolor="#FFFBF7">(Including cash, deposits, marketable securities and the sum of funds that can be raised)</td></tr><tr> <td height=26 align="left" bgcolor="#FFFBF7">Current household income:<input size=10 name=rg02>RMB/month</td></tr><tr> <td height=26 align="left" bgcolor="#FFFBF7">Expected household spending on house purchase per month:<input size=10 name=rg03 onblur=chk02()>RMB/month</td></tr><tr> <td height=26 align="left" bgcolor="#FFFBF7">The validity period of your expected loan repayment:<select size=1 name=rg04><option value=24>2 years (24 period)</option><option value=36>3 years (36 issues)</option><option value=48>4 years (48 issues)</option><option value=60>5 years (60 issues)</option><option value=72>6 years (72 issues)</option><option value=84>7 years (84 issues)</option><option value=96>8 years (96 issues)</option><option value=108>9 years (issue 1)</option><option value=120>10 years (issue 1)</option><option value=180>15 years (issue 1)</option><option value=240>20 years (issue 1)</option><option value=300>25 years (phase 1)</option><option value=360>30 years (issue 1)</option></select>Year</td></tr><tr> <td height=26 align="left" bgcolor="#FFFBF7">Area of the house you plan to purchase:<input size=10 name=rg06>Square meters</td></tr><tr><td height="26" bgcolor="#FFFBF7"> <div align="center"> <input name="button" type=button onclick=chk03() value="开始计算"><input name="reset" type=reset value="重新计算"> </div></td></tr></table></td></tr></table><table width="100%" height="8" border="0" cellpadding="0" cellspacing="0"> <tr> <td></td> </tr> </table> <table width=380 border=0 cellpadding=5 cellspacing=1 bgcolor="#CCCCCC"><tr> <td height=26 bgcolor="#f8f8f8"><div align="left">The total price of the house you can purchase is<input size=8 name=rg07>RMB</div></td></tr><tr> <td height=26 bgcolor="#f8f8f8"><div align="left">The unit price of the house you can purchase is<input size=8 name=rg08>RMB/square meter</div></td> </tr><tr> <td height=26 bgcolor="#f8f8f8"><font color=#0000ff><b></b>House purchase related taxes</font></td></tr><tr> <td height=26 bgcolor="#f8f8f8"><div align="center">Deed Tax<input size=8 name=rg10>RMB<br>Note: the actual price of a house is higher than 1.2 times the average price of a house on the same level of land, and the deed tax is charged at 3%.</div></td></tr><tr><td height=26 bgcolor="#f8f8f8"><div align="center">Public maintenance fund<input size=8 name=rg11>RMB</div></td></tr><tr> <td height=26 bgcolor="#f8f8f8"><font color=#0000ff><b></b>Bank loan fees</font></td></tr><tr><td height=26 bgcolor="#f8f8f8"><div align="center">First Payment<input size=8 name=rg12>Yuan insurance fee<input size=8 name=rg13>RMB</div></td></tr><tr><td height=26 bgcolor="#f8f8f8"><div align="center">Attorney Fee<input size=8 name=rg14>CNY registration fee<input size=8 name=rg15>RMB</div></td></tr></table></td></tr></table></td> </tr> <tr> <td height="50"><div align="center" >Note: The maximum loan quota of Beijing provident fund is 0.6 million RMB. This tool is calculated according to the latest regulations.</div></td> </tr></form> </table> </div> </div></center></body></html>
Tip: you can modify some code before running