﻿function FigureBMI(form, feet, inches, pounds) {
 TotalInches = eval(feet*12) + eval(inches)
 Meters      = TotalInches/39.36
 Kilos       = pounds/2.2
 Square      = Meters * Meters
 form.calcbmi.value = round((Kilos/Square),1)

function round(number,X) {
// rounds number to X decimal places, defaults to 2
X = (!X ? 2 : X);
return Math.round(number*Math.pow(10,X))/Math.pow(10,X);
}

}