<!-- Do not copy any part of this script without permission; James T. Griffing, MS, BS; http://www.exrx.net //--><!-- 
function calc (form) {
var Height, NG, SVO, Weight, Time
Height=form.Height.value / form.HeightUnit.options[form.HeightUnit.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
SVO= 0.2 * form.Steps.value + (1.33 * 1.8 * Height * form.Steps.value) + NG * 1
form.VO.value = Math.round(SVO*10) / 10
form.METs.value = Math.round(SVO/3.5*10) / 10
form.Cal.value = Math.round(Time*SVO*Weight/200)
}
//-->
