ÿþ<SCRIPT language=JavaScript> <!-- //Script by Tom Richardson Jr. //If you have any questions, e-mail me at gooftroop@geocities.com //or visit mt web site at http://home.rmci.net/gooftroop //For this script and more, visit http://javascriptkit.com function perc1() { a = document.form1.a.value/100; b = a*document.form1.b.value; document.form1.total1.value = b } function perc2() { a = document.form1.c.value; b = document.form1.d.value; c = a/b; d = c*100; document.form1.total2.value = d } //--> </SCRIPT> <FORM name=form1> <TABLE cellSpacing=1 cellPadding=1 border=0> <TBODY> <TR> <TD align=middle colSpan=3><B><FONT size=4>TÍN PH¦N TRM (Percentage Calculator)</FONT></B> <br><br><br> </TD> <TR> <TD><INPUT size=5 name=a> % cça <INPUT size=5 name=b>?</TD> </TR> <TR> <TD><INPUT onclick=perc1() type=button value=Calculate></TD> </TR> <TR><TD>K¿t qu£: <INPUT maxLength=40 size=5 name=total1><hr size=1> <br><br></TD></TR> <TR> <TD><INPUT size=5 name=c> là m¥y % cça<INPUT size=5 name=d>?</TD> </TR> <TR> <TD><INPUT onclick=perc2() type=button value=Calculate></TD> </TR><TR> <TD>K¿t qu£: <INPUT size=5 name=total2> %<hr size=1></TD> <TR> <TD align=middle colSpan=3><INPUT type=reset value=Reset></TD></TR></TBODY></TABLE></FORM>