.NoUser {
}
.Title {
COLOR: #000000; FONT-FAMILY: ; BACKGROUND-COLOR: #ffffff; TEXT-ALIGN: left
}
.SubTitle {
FONT-FAMILY: ; BACKGROUND-COLOR: #ffffff
}
.IntroTitle {
FONT-FAMILY: ; BACKGROUND-COLOR: #ffffff
}
.SmallTitle {
FONT-FAMILY: ; BACKGROUND-COLOR: #ffffff
}
.Author {
FONT-FAMILY: ; BACKGROUND-COLOR: #ffffff
}
.Source {
FONT-FAMILY: ; BACKGROUND-COLOR: #ffffff
}
.Abstract {
FONT-FAMILY: ; BACKGROUND-COLOR: #ffffff
}
function isAllDigit(str) {
var ch, index;
for(index = 0; index= 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, 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 10000){
alert ("请输入正确的房价!");
myFrm.HousePrice.focus();
return "";
}
n = (2003 - parseInt(GetSelectedOpt(myFrm.BuyYear))) * 12 + (6 - parseInt(GetSelectedOpt(myFrm.BuyMonth)));
if (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 -= 0){
return parseInt(resault);
}
else {
return 0;
}
}
function OnMyReset(frm)
{
frm.reset();
}
function myCale(myFrm)
{
document.Caculator.BackTax.value=ReturnTax(myFrm);
}
数据输入
月 收 入
元
买房总额
万元
买房日期
2000 2001 2002 2003 年
1 2 3 4 5
6 7 8 9 10 11 12 月
计算结果
退税总额
元
nbsp;
|