<!-- Do not copy any part of this script without permission; James T. Griffing, MS, BS; http://www.exrx.net //--><!-- 
function calc (form) {
var Mode, Power, NG, LVO, AVO, Weight, Time
Mode=form.Mode.options[form.Mode.selectedIndex].value
Power=Mode * form.KG.value * form.RPM.value / 6.12
NG=form.NG.options[form.NG.selectedIndex].value
Weight=form.Weight.value / form.WeightUnit.options[form.WeightUnit.selectedIndex].value 
Time=form.TimeUnit.options[form.TimeUnit.selectedIndex].value * form.Time.value
form.Watts.value = Math.round(Power)
form.Kgmm.value = Math.round(Power * 6.12)
LVO= 10.8 * Power / Weight + 3.5 + NG * 1
AVO= 18 * Power / Weight+ NG * 1
  if (Mode == "6" || Mode == "3"){
     form.VO.value = Math.round(LVO*10) / 10
     form.METs.value = Math.round(LVO/3.5*10) / 10
     form.Cal.value = Math.round(Time*LVO*Weight/200)
}
  if (Mode == "2.4"){
     form.VO.value = Math.round(AVO*10) / 10
     form.METs.value = Math.round(AVO/3.5*10) / 10
     form.Cal.value = Math.round(Time*AVO*Weight/200)
}
}
//-->
