Skip to content

Instantly share code, notes, and snippets.

@krishnanraman
Created January 30, 2014 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krishnanraman/8702818 to your computer and use it in GitHub Desktop.
Save krishnanraman/8702818 to your computer and use it in GitHub Desktop.
<SCRIPT language="JavaScript">
function fc(form) {
var Age = eval(form.age.value);
var Freq = (210 * ((Age - 18)/71)*((Age - 18)/71)) - (311*(Age - 18)/71) + 133
form.freq.value = parseInt(Freq)
}
</script>
<FORM METHOD = "post">
Age: <INPUT name= "age" value="18" size="2" type="text">
Freq: <INPUT name= "freq" value=" " size="3" type="text">
<INPUT value="Solve" onclick="fc(this.form)" type="button">
</form>
<SCRIPT language="JavaScript">
function fl(form) {
var Age = eval(form.age.value);
var Freq = (210 * ((Age - 18)/71)*((Age - 18)/71)) - (290*(Age - 18)/71) + 124
form.freq.value = parseInt(Freq)
}
</script>
<FORM METHOD = "post">
Age: <INPUT name= "age" value="18" size="2" type="text">
Freq: <INPUT name= "freq" value=" " size="3" type="text">
<INPUT value="Solve" onclick="fl(this.form)" type="button">
</form>
<SCRIPT language="JavaScript">
function m(form) {
var Age = eval(form.age.value);
var Freq = (210 * ((Age - 18)/71)*((Age - 18)/71)) - (276*(Age - 18)/71) + 128
form.freq.value = parseInt(Freq)
}
</script>
<FORM METHOD = "post">
Age: <INPUT name= "age" value="18" size="2" type="text">
Freq: <INPUT name= "freq" value=" " size="3" type="text">
<INPUT value="Solve" onclick="m(this.form)" type="button">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment