Tip: You can modify some of the code before running
<ptml> <pead> <meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "> <title> Personal Income Tax calculator </title> <link rel=" stylesheet "id=" Filestyle "type=" Text/css " href= "/data/common/filestyle.css" > </pead> <body> <div></p> Personal Income Tax Calculator </p> <div Align= "Right" > </div> <pr size= "1" > <div align= "left" > <script language=javascript> <!-- Function calc () {var salary,startnum,cha salary=document. TaxForm.Salary.value; if (salary== "" | | isNaN (Salary)) {document. TaxForm.Salary.focus (); Alert ("Please enter a number in monthly income"); return false} startnum=document. TaxForm.StartNum.value; if (startnum== "" | | isNaN (Startnum)) {document. TaxForm.StartNum.focus (); Alert ("Please enter a number in the starting amount"); return false} cha= (Salary-startnum); if (cha>100000) {output=cha*0.45-15375;} else if (cha>80000) {output=cha*0.4-10375} else if (cha>60000) {output=cha*0.35-6375} else if (cha>40000) {output=cha*0.30-3375} else if (cha>20000) {output=cha*0.25-1375;} else if (cha>5000) {output=cha*0.2-375} else if (cha>2000) {output=cha*0.15-125} else if (cha>500) {output=cha*0.1-25} else if (cha>0) {output=cha*0.05} else{output=0;} if (output>0) {alert ("should pay" +output+ "yuan personal income Tax amount" + "NN" + "pay taxes according to law is the duty of every citizen!! "); else{alert ("No personal income tax is required.") ")}}//--></script> <form name=taxform method=post> <table cellspacing=1 cellPadding=3 width=360 Ali Gn=center bgcolor= #666666 border=0> <TBODY> <TR> <td width=352 bgcolor= #666666 colspan=2> <p Align=center><font color= #ffffff > Personal Income Tax Calculator </FONT></P></TD></TR> <TR> <TD Align=middle width=112 bgcolor= #ffffff > Monthly Revenue (Yuan):</td> <td align=middle width=234 bgcolor= #ffffff >< INPUT size=24 name=salary></td></tr> <TR> <td align=middle width=112 bgcolor= #ffffff > Levy (yuan ):</td> <td align=middle width=234 bgcolor= #ffffff ><input size=24 value=1600 Name=Startnum></td></tr> <TR> <td width=346 bgcolor= #ffffff colspan=2> <p align=center> <input Onclick=calc () Type=button value= "calculation" name=b1><input type=reset value= "Rewrite" name=b2></p></ Td></tr></tbody></table></form> </body> </ptml>
Tip: You can modify some of the code before running