📄 calc_7.asp
字号:
<!--#include file=../inc/top1.asp -->
<HTML><HEAD><TITLE>实用工具</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
href="../images/css.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript>
function isAllDigit(str) {
var ch, index;
for(index = 0; index<str.length; index++) {
ch = str.charAt(index);
if (!(ch >= '0' && ch <= '9')) {
return false;
}
}
return true;
}
function GetSelectedOpt(mySel){
for (i = 0; i < mySel.options.length; i++){
if (mySel.options[i].selected){
return mySel.options[i].value;
}
}
}
function ReturnTax(myFrm){
var mIncome, mTax, nMonths, n, wIncome, rate, deduction, price, resault;
if (myFrm.mSalary.value == "" ){
alert ("请输入您的月收入!");
myFrm.mSalary.focus();
return "";
}
if (! isAllDigit(myFrm.mSalary.value)){
alert ("请输入正确的数据!");
myFrm.mSalary.focus();
return "";
}
if (myFrm.mSalary.value < 0 || myFrm.mSalary.value > 10000000){
alert ("请输入正确的月收入!");
myFrm.mSalary.focus();
return "";
}
if (myFrm.HousePrice.value == ""){
alert ("请输入您所买的房子的总价!");
myFrm.HousePrice.focus();
return "";
}
if (! isAllDigit(myFrm.HousePrice.value)){
alert ("请输入正确的数据!");
myFrm.HousePrice.focus();
return "";
}
if (myFrm.HousePrice.value < 0 || myFrm.HousePrice.value > 10000){
alert ("请输入正确的房价!");
myFrm.HousePrice.focus();
return "";
}
n = (2003 - parseInt(GetSelectedOpt(myFrm.BuyYear))) * 12 + (6 - parseInt(GetSelectedOpt(myFrm.BuyMonth)));
if (n <= 0) {
alert ("请选择正确的买房日期!");
myFrm.BuyYear.focus();
return "";
}
mIncome = parseFloat(myFrm.mSalary.value);
price = parseFloat(myFrm.HousePrice.value) * 10000.00;
wIncome = mIncome - 1000.00;
if (wIncome * n >= price){
wIncome = price / n;
}
if (wIncome <= 500){
rate = 0.05;
deduction = 0;
}
else {
if (wIncome <= 2000){
rate = 0.10;
deduction = 25;
}
else {
if (wIncome <= 5000){
rate = 0.15;
deduction = 125;
}
else {
if (wIncome <= 20000){
rate = 0.20;
deduction = 375;
}
else {
if (wIncome <= 40000){
rate = 0.25;
deduction = 1375;
}
else {
if (wIncome <= 60000){
rate = 0.30;
deduction = 3375;
}
else {
if (wIncome <= 80000){
rate = 0.35;
deduction = 6375;
}
else {
if (wIncome <= 100000){
rate = 0.40;
deduction = 10375;
}
else {
rate = 0.45;
deduction = 15375;
}
}
}
}
}
}
}
}
mTax = (mIncome - 1000.00) * rate - deduction;
resault = n * (wIncome * rate - deduction);
if (resault >= 0){
return parseInt(resault);
}
else {
return 0;
}
}
function OnMyReset(frm)
{
frm.reset();
}
function myCale(myFrm)
{
document.Caculator.BackTax.value=ReturnTax(myFrm);
}
</SCRIPT>
<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>
<META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD>
<BODY class=bg1 text=#000000 bgColor=#cacbc1 leftMargin=0 topMargin=0>
<TABLE height=1 cellSpacing=0 cellPadding=0 width=750 align=center border=0>
<TBODY>
<TR>
<TD bgColor=#ffffff></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center border=0>
<TBODY>
<TR>
<TD bgColor=#ffffff height=5></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD vAlign=top align=right width=212>
<TABLE cellSpacing=0 cellPadding=0 width=207 bgColor=#e9eaf2 border=0>
<FORM name=Area action=../search.jsp>
<TBODY>
<TR>
<TD width="157" height=31 colSpan=2 align=middle><img src="../images/com_gongju.gif" width="208" height="34"></TD>
</TR>
</FORM>
<tr>
<td><div align="center">
<TABLE width=156 border=0 cellPadding=0 cellSpacing=0 bgcolor="#e9eaf2">
<TBODY>
<TR>
<TD align=middle bgColor=#e9eaf2 class=title2 height=26 vAlign=bottom
width=156><FONT color=#CC0000>贷款计算</FONT></TD>
</TR>
<TR>
<TD align=middle bgColor=#e9eaf2 class=title2> </TD>
</TR>
<TR>
<TD bgColor=#e9eaf2 height=20> · <a href="calc_1.asp">公积金贷款</a></TD>
</TR>
<TR>
<TD bgColor=#e9eaf2 height=20> · <a href="calc_2.asp">公积金和商业贷款</a></TD>
</TR>
<TR>
<TD bgColor=#e9eaf2 height=20> · <a href="calc_3.asp">按揭与公积金贷款</a></TD>
</TR>
<TR>
<TD bgColor=#e9eaf2 height=20> · <a href="calc_4.asp">购房计算</a></TD>
</TR>
<TR>
<TD bgColor=#e9eaf2 height=20> · <a href="calc_5.asp">按揭计算</a></TD>
</TR>
<TR>
<TD bgColor=#e9eaf2 height=20> · <a href="calc_6.asp">还贷计算</a></TD>
</TR>
<TR>
<TD bgColor=#e9eaf2 height=20> · <a href="calc_7.asp">购房退税额</a></TD>
</TR>
<TR>
<TD bgColor=#e9eaf2 height=20> · <a href="calc_8.asp">购房费用</a></TD>
</TR>
<TR>
<TD bgColor=#e9eaf2 height=20> · <a href="calc_9.asp">各类贷款利率</a></TD>
</TR>
<TR>
<TD height=10></TD>
</TR>
</TBODY>
</TABLE>
</div>
<tr>
<td><div align="center"> </div>
</TABLE>
<TABLE height=16 cellSpacing=0 cellPadding=0 width=207 border=0>
<TBODY>
<TR>
<TD background=../images/line.gif height=5></TD></TR></TBODY></TABLE>
</TD>
<TD vAlign=top align=center width=538 height=300>
<TABLE cellSpacing=0 cellPadding=0 width=528 border=0>
<TBODY>
<TR>
<TD>
<TABLE height=108 cellSpacing=1 cellPadding=0 width="100%"
bgColor=#cecece border=0>
<TBODY>
<TR>
<TD bgColor=#ffffff><img src="../images/banner03.gif" width="527" height="107">
</TD>
</TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=75 border=0>
<TBODY>
<TR>
<TD height=5></TD></TR></TBODY></TABLE>
<img src="../images/a_gongjv.gif" width="528" height="45"></TD>
</TR>
<TR>
<TD class=out_grey align=middle bgColor=#ffffff><TABLE bgColor=#FFFFFF border=0 cellPadding=2 cellSpacing=1 width="100%">
<FORM action="" method=post name=Caculator onsubmit="return false;">
<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=mSalary size=14>
元 </TD>
<TD align=middle bgColor=#edf4c1 rowSpan=4>退税总额:
<INPUT name=BackTax
readOnly size=10>
元</TD>
</TR>
<TR>
<TD bgColor=#edf4c1 height=26>买房总额:
<INPUT name=HousePrice size=14>
万元</TD>
</TR>
<TR>
<TD bgColor=#edf4c1 height=26>买房日期:
<SELECT name=BuyYear>
<OPTION
selected value=2000>2000</OPTION>
<OPTION value=2001>2001</OPTION>
<OPTION value=2002>2002</OPTION>
<OPTION
value=2003>2003</OPTION>
</SELECT>
年
<SELECT name=BuyMonth>
<OPTION
selected value=1>1</OPTION>
<OPTION value=2>2</OPTION>
<OPTION
value=3>3</OPTION>
<OPTION value=4>4</OPTION>
<OPTION
value=5>5</OPTION>
<OPTION value=6>6</OPTION>
<OPTION
value=7>7</OPTION>
<OPTION value=8>8</OPTION>
<OPTION
value=9>9</OPTION>
<OPTION value=10>10</OPTION>
<OPTION
value=11>11</OPTION>
<OPTION value=12>12</OPTION>
</SELECT>
月</TD>
</TR>
<TR>
<TD align=middle bgColor=#edf4c1 height=32><INPUT class=unnamed1 name=Submit onclick=javascript:myCale(document.Caculator) type=submit value=计算>
<INPUT class=unnamed1 name=Submit2 onclick=OnMyReset(document.Caculator) type=submit value=重置>
</TD>
</TR>
<TR>
<TD colSpan=2 height=8></TD>
</TR>
</FORM>
</TABLE></TD>
</TR></TBODY></TABLE>
<TABLE height=16 cellSpacing=0 cellPadding=0 width=528 border=0>
<TBODY>
<TR>
<TD background=../images/line.gif height=5></TD></TR></TBODY></TABLE>
</TD>
</TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD> </TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD bgColor=#ffffff height=1></TD>
</TR>
</TBODY>
</TABLE>
</BODY></HTML>
<!--#include file="../inc/bottom.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -