📄 calc_4.asp
字号:
<!--#include file=../inc/top1.asp -->
<HTML><HEAD><TITLE>贷款计算</TITLE>
<SCRIPT language=JavaScript>
function OP()
{
var afs=0.000;
if (document.calc1.dj.value == ""){
alert("请填写“单价”。");
return;
}
if (document.calc1.mj.value == ""){
alert("请填写“房屋面积”。");
return;
}
if (document.calc1.fs.options[document.calc1.fs.selectedIndex].value == "a"){
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "30"){
afs=48.03024;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "25"){
afs=53.06015;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "20"){
afs=60.86182;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "15"){
afs=74.21960;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "10"){
afs=101.48294;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "5"){
afs=182.36563;
}
}
else{
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "30"){
afs=53.92689;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "25"){
afs=58.69229;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "20"){
afs=66.21647;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "15"){
afs=79.28789;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "10"){
afs=106.26114;
}
if (document.calc1.qx.options[document.calc1.qx.selectedIndex].value == "5"){
afs=187.66042;
}
}
document.calc1.op1.value = document.calc1.dj.value * document.calc1.mj.value;
document.calc1.op2.value = Math.ceil(document.calc1.dj.value * document.calc1.mj.value * document.calc1.bl.options[document.calc1.bl.selectedIndex].value);
document.calc1.op3.value = document.calc1.dj.value * document.calc1.mj.value - Math.ceil(document.calc1.dj.value * document.calc1.mj.value * document.calc1.bl.options[document.calc1.bl.selectedIndex].value);
document.calc1.op4.value = Math.ceil(document.calc1.dj.value * document.calc1.mj.value * document.calc1.bl.options[document.calc1.bl.selectedIndex].value) * afs / 10000;
}
</SCRIPT>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<LINK
href="../images/realty.css" rel=stylesheet type=text/css>
<META content="Microsoft FrontPage 5.0" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0>
<SCRIPT language=javascript>
function openwin0(id) { window.open("old2buy_info.asp?Infoid="+id,"","height=523,width=510,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function openwin1(id) { window.open("old2_info.asp?Infoid="+id,"","height=523,width=510,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function openwin2(id) { window.open("lease_info.asp?Infoid="+id,"","height=523,width=510,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function openwin3(id) { window.open("lease_info2.asp?Infoid="+id,"","height=523,width=510,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function openwin4(id) { window.open("lease_info3.asp?Infoid="+id,"","height=523,width=510,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function openwin5(id) { window.open("zone_info.asp?Infoid="+id,"","height=523,width=590,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function opennewh(id) { window.open("newh_info.asp?infoid="+id,"","height=523,width=550,left=70,top=0,resizable=no,scrollbars,status=no,toolbar=no,menubar=no,location=no");}
function openme1() { window.open("sq_error.asp","","height=320,width=584,left=70,top=0,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");}
</SCRIPT>
<LINK href="../images/realty.css" rel=stylesheet type=text/css>
<LINK
href="../images/realty.css" rel=stylesheet type=text/css>
<TABLE align=center bgColor=#edf4c1 border=0 cellPadding=0 cellSpacing=0
width=778>
<TBODY>
<TR>
<TD width=15> </TD>
<TD height=22 width=168> </TD>
<TD> </TD>
<TD width=28> </TD></TR>
<TR>
<TD> </TD>
<TD background=../images/leftbg.jpg vAlign=top width=168>
<LINK
href="../images/realty.css" rel=stylesheet type=text/css>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=156>
<TBODY>
<TR>
<TD align=middle bgColor=#e2ec91 class=title2 height=26 vAlign=bottom
width=156><FONT color=#0f680f>贷款计算</FONT></TD></TR>
<TR>
<TD align=middle bgColor=#e2ec91 class=title2>
<IMG height=6
src="../images/dot.gif" width=155></TD></TR>
<tr>
<TD bgColor=#e2ec91 height=20> · <a href="calc_1.asp">公积金贷款</a></TD>
</tr>
<tr>
<TD bgColor=#e2ec91 height=20> · <a href="calc_2.asp">公积金和商业贷款</a></TD>
</tr>
<tr>
<TD bgColor=#e2ec91 height=20> · <a href="calc_3.asp">按揭与公积金贷款</a></TD>
</tr>
<tr>
<TD bgColor=#e2ec91 height=20> · <a href="calc_4.asp">购房计算</a></TD>
</tr>
<tr>
<TD bgColor=#e2ec91 height=20> · <a href="calc_5.asp">按揭计算</a></TD>
</tr>
<tr>
<TD bgColor=#e2ec91 height=20> · <a href="calc_6.asp">还贷计算</a></TD>
</tr>
<tr>
<TD bgColor=#e2ec91 height=20> · <a href="calc_7.asp">购房退税额</a></TD>
</tr>
<tr>
<TD bgColor=#e2ec91 height=20> · <a href="calc_8.asp">购房费用</a></TD>
</tr>
<tr>
<TD bgColor=#e2ec91 height=20> · <a href="calc_9.asp">各类贷款利率</a></TD>
</tr>
<TR>
<TD height=10></TD></TR></TBODY></TABLE>
<IMG height=37
src="../images/old_left3.jpg" width=167></TD>
<TD align=middle bgColor=#ffffff vAlign=top>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD> </TD></TR></TBODY></TABLE>
<TABLE bgColor=#7b8830 border=0 cellPadding=2 cellSpacing=1 width="92%">
<FORM method=post name=calc1>
<TBODY>
<TR>
<TD align=middle class=title colSpan=2 height=22><FONT
color=#ffffff>购房计算器</FONT></TD></TR>
<TR>
<TD bgColor=#edf4c1 class=title height=20>请输入数据:</TD>
<TD bgColor=#edf4c1 class=title>计算结果:</TD></TR>
<TR>
<TD bgColor=#edf4c1 height=26>单 价: <INPUT name=dj size=10> 元/㎡</TD>
<TD bgColor=#edf4c1>房屋总价: <INPUT name=op1 readOnly size=10> 元</TD></TR>
<TR>
<TD bgColor=#edf4c1 height=26>房屋面积: <INPUT name=mj size=10> ㎡</TD>
<TD bgColor=#edf4c1>贷款总额: <INPUT name=op2 readOnly size=10> 元</TD></TR>
<TR>
<TD bgColor=#edf4c1 height=26>贷款方式: <SELECT name=fs size=1>
<OPTION selected value=a>公积金</OPTION> <OPTION
value=b>商业贷款</OPTION></SELECT> </TD>
<TD bgColor=#edf4c1>首期付款: <INPUT name=op3 readOnly size=10> 元</TD></TR>
<TR>
<TD bgColor=#edf4c1 height=26>贷款比例: <SELECT name=bl size=1>
<OPTION selected value=0.9>9成</OPTION> <OPTION
value=0.8>8成</OPTION> <OPTION value=0.7>7成</OPTION> <OPTION
value=0.6>6成</OPTION> <OPTION value=0.5>5成</OPTION> <OPTION
value=0.4>4成</OPTION> <OPTION value=0.3>3成</OPTION> <OPTION
value=0.2>2成</OPTION> <OPTION value=0.1>1成</OPTION></SELECT> </TD>
<TD bgColor=#edf4c1>月 还 款: <INPUT name=op4 readOnly size=10> 元
</TD></TR>
<TR>
<TD bgColor=#edf4c1 height=26>还款期限: <SELECT name=qx size=1>
<OPTION selected value=30>30年</OPTION> <OPTION
value=25>25年</OPTION> <OPTION value=20>20年</OPTION> <OPTION
value=15>15年</OPTION> <OPTION value=10>10年</OPTION> <OPTION
value=5>5年</OPTION></SELECT> </TD>
<TD bgColor=#edf4c1 rowSpan=2> </TD></TR>
<TR>
<TD align=middle bgColor=#edf4c1 height=32><INPUT class=unnamed1 id=button1 name=button1 onclick=OP() type=button value=开始计算>
<INPUT class=unnamed1 name=Submit2 onclick=javascript:window.calc1.reset() type=reset value=重新计算>
</TD></TR>
<TR>
<TD colSpan=2 height=8></TD></TR></FORM></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD align=right>
<IMG height=98 src="../images/old_mimg.jpg"
width=551></TD></TR></TBODY></TABLE></TD>
<TD> </TD></TR></TBODY></TABLE>
<LINK href="../images/realty.css"
rel=stylesheet type=text/css>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=778>
<TBODY>
<TR>
<TD bgColor=#edf4c1 height=6></TD></TR>
</TBODY></TABLE></BODY></HTML>
<!--#include file=../inc/bottom.asp -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -