<script
language="javascript"
type="text/javascript">
function
computeamount(h,a,t){
h =
document.radio.h.value
a =
document.radio.a.value
t =
document.radio.t.value
document.radio.result1.value=eval(a*Math.exp((Math.log(0.5)/h)*t));
document.radio.result2.value=eval((document.radio.result1.value/a)*100);
}
</script>
<TABLE
border=1>
<TR>
<TD>Halflife</TD>
<TD>Amount</TD>
<TD>Time</TD>
</TR>
<TR>
<TD><FORM
name="radio"
id="radio"><input
name="h"
size=10
></TD>
<TD><input
name="a"
size=10
></TD>
<TD><input
name="t"
size=10
></TD>
<TD><input
type="button"
value="Calculate
Amount Left"
onclick="computeamount()"></TD>
</TR>
</TABLE>
<BR>The
amount remaining is:
<input
name="result1"
size=22>
or
<input
name="result2"
size=5>
percent of the original sample.
<input
type="reset"
value="Reset
Form">
</FORM>