<script
language="javascript"
type="text/javascript">
function
ra_de()
{
var
pi =
Math.PI;
var
ra_de =
((eval(document.Radeg.RADE.value))*(180/pi));
document.Radeg.RADE.value
=
ra_de;
}
function
de_ra()
{
var
pi =
Math.PI;
var
de_ra =
((eval(document.Radeg.RADE.value))*(pi/180));
document.Radeg.RADE.value
=
de_ra;
}
function
resetRADE()
{
document.Radeg.RADE.value="0";
}
</script>
<center>
<FORM
name="Radeg"
id="Radeg">
<INPUT
TYPE=Button
VALUE="Radians
to Degrees"
onClick="ra_de()"><INPUT
TYPE=Button
VALUE="Degrees
to Radians"
onClick="de_ra()"><br>
<INPUT
NAME="RADE"
TYPE="Text"
VALUE="0"
SIZE=25></FORM>
</center>