function FigureBMI(form, feet, inches, pounds) {
 
 if (inches==""){
 inches=0
 }


 TotalInches = eval(feet*12) + eval(inches)
 Meters      = TotalInches/39.36
 Kilos       = pounds/2.2
 Square      = Meters * Meters
 form.calcval.value = (Math.round(Kilos/Square))
} //end FigureBMI


function FigureBURN(form, pounds, minutes, activity) 
{
 Weight   = (pounds / 2.2)
 Time     = minutes
 activity = document.BURN.activity.options[document.BURN.activity.selectedIndex].value
 form.calcval.value = (Math.round(Weight * activity)*(Time / 60))
} //end FigureBURN


//Ideal Body Weight for men
{
function FigureIBW(form, feet, inches) {

 TotalInches = eval(feet*12) + eval(inches)

	
	if (TotalInches == 60) {
		form.calcval.value = 100;
		    	}
	if (TotalInches > 60 < 72) {
		form.calcval.value = 100 + (5 * inches);
		    	}
	if (TotalInches == 72) {
		form.calcval.value = 160;
		    	}
	if (TotalInches > 72) {
		form.calcval.value = 160 + (5 * inches);
		    	}
	if (TotalInches == 48) {
		form.calcval.value = 70;
		    	}
	if (TotalInches < 60) {
		form.calcval.value = 70 + (2.5 * inches);
		    	}
}
}
//end FigureIBWM


//Ideal Body Weight for women
{
function FigureIBW(form, feet, inches) {

 TotalInches = eval(feet*12) + eval(inches)

	
	if (TotalInches == 60) {
		form.calcval.value = 100;
		    	}
	if (TotalInches > 60 < 72) {
		form.calcval.value = 100 + (5 * inches);
		    	}
	if (TotalInches == 72) {
		form.calcval.value = 160;
		    	}
	if (TotalInches > 72) {
		form.calcval.value = 160 + (5 * inches);
		    	}
	if (TotalInches == 48) {
		form.calcval.value = 70;
		    	}
	if (TotalInches < 60) {
		form.calcval.value = 70 + (2.5 * inches);
		    	}
}
}

//end FigureIBW

