<scriptlanguage="javascript"type="text/javascript"> /* Visit http://www.yaldex.com/
for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin function
calc1(form){ a =form.a.value/100; b =
a*form.b.value; form.total1.value=
b;
} function
calc2(form){ a =form.c.value; b =form.d.value; c =
a/b; d =
c*100; form.total2.value=
d;
}
// End --> </script> <formname="form1"> <tableborder=1cellpadding=4cellspacing=1>
<tr>
<td
align=centernowrap>What
is <inputtype="text"name="a"size=5>
% of <inputtype="text"name="b"size=5>?</td>
<td
align=center nowrap>Answer:
<inputtype="text"name="total1" size=5maxlength=40></td>
<td
align=center><inputtype="button"value="Calculate" onClick="calc1(this.form)"></td>
</tr>
<tr>
<td
align=centercolspan=3align=center>Or...</td>
</tr>
<tr>
<td
align=centernowrap><inputtype="text"name="c"size=5> is what
percent of <inputtype="text"name="d"size=5>?</td>
<td
align=center nowrap>Answer:
<inputtype="text"name="total2" size=5>
%</td>
<td
align=center><inputtype="button"value="Calculate" onClick="calc2(this.form)"></td>
</tr>
</table> </form>