<!-- Do not copy any part of this script without permission; James T. Griffing, MS, BS; http://www.exrx.net //--><!-- 
function calc (form) {
var Mode, Work, NG, LVO, AVO, Weight, Time
Mode=form.Mode.options[form.Mode.selectedIndex].value
Work=form.Work.value / form.WorkUnit.options[form.WorkUnit.selectedIndex].value
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
LVO= 10.8 * Work / Weight + 3.5 + NG * 1
AVO= 18 * Work / Weight+ NG * 1
  if (Mode == "leg"){
     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 == "arm"){
     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)
}
}
//-->
