<!-- 
function calc (form) {
var S, D, Test, StandDev, PercRegress, Zscore, PE
S=form.Sex.options[form.Sex.selectedIndex].value
D=form.Distance.value/form.DistanceUnit.options[form.DistanceUnit.selectedIndex].value
Test=form.Test.options[form.Test.selectedIndex].value
  if (Test == "12"){
     form.VOMax.value = D/0.0278-11.2878
}
  if (Test == "15"){
     form.VOMax.value = 0.0178*D+9.6
}
form.METs.value = form.VOMax.value/3.5
  if (S == "1") {
     form.PopulationAverage.value =
     51.86-0.28*form.Age.value
}
  if (S == "0") {
     form.PopulationAverage.value =
     41.435-0.23*form.Age.value
}
  if (S == "1") {
     StandDev ="6"
}
  if (S == "0") {
     StandDev ="5.5"
}
Zscore = (form.VOMax.value-form.PopulationAverage.value)/StandDev
PE= Math.exp(-1.8355027*(Math.abs(Zscore)-0.23073201))
PercRegress= -0.41682992*(PE-1)/(PE+1)+0.58953708
  if (Zscore > 0) {
     form.Score.value =
     Math.round(PercRegress*100)
}
  if (Zscore <= 0) {
     form.Score.value =
     Math.round((1-PercRegress)*100)
}
  if (Zscore >= 1) {
     form.Rating.value ="Excellent"
}
  if (Zscore < 1 && Zscore >= 0.5) {
     form.Rating.value ="Good"
}
  if (Zscore < 0.5 && Zscore >= -0.5) {
     form.Rating.value ="Average"
}
  if (Zscore < -0.5 && Zscore >= -1) {
     form.Rating.value ="Fair"
}
  if (Zscore < -1) {
     form.Rating.value ="Poor"
}
}
//-->?
