X

Percentage Of Body Fat


function convert_metric() { if(document.getElementById("cm").value != "") { height = document.getElementById("cm").value/100; var feet = height* 3.2808399; var inches = Math.round((feet - Math.floor(feet))*12); feet = Math.floor(feet); var field = ["feet","inches"]; for(x in field) { document.getElementById(field[x]).value = eval(field[x]); document.getElementById(field[x]).readOnly = true; } } if(document.getElementById("hipcm").value != "") { hip = document.getElementById("hipcm").value; inches = Math.round(hip/.254)/10; document.getElementById("hipinches").value = inches; document.getElementById("hipinches").readOnly = true; } if(document.getElementById("KG").value!="") { weight = parseFloat(document.getElementById("KG").value); document.getElementById("pounds").value = Math.round(weight * 22.046226)/10 ; document.getElementById("pounds").readOnly = true; }

} function convert_american() { if(document.getElementById("feet").value != "") { var inches = document.getElementById("feet").value * 12;

if(document.getElementById("inches").value != "") inches += parseFloat(document.getElementById("inches").value);

document.getElementById("cm").value = height = Math.round(inches*25.4)/10; document.getElementById("cm").readOnly =true; height /= 100; } if(document.getElementById("hipinches").value != "") { hip = document.getElementById("hipinches").value*2.54; document.getElementById("hipcm").value = Math.round(hip*10)/10; document.getElementById("hipcm").readOnly =true; } if(document.getElementById("pounds").value != "") { document.getElementById("KG").value = weight = Math.round(document.getElementById("pounds").value * 4.5359237)/10; document.getElementById("KG").readOnly =true; } }

function find_weight() { var BMI; if(document.getElementById("BMI").value != "" && height != null) { BMI=parseFloat(document.getElementById("BMI").value); weight = height*height*BMI; document.getElementById("KG").value = Math.round(weight*10)/10; convert_metric(); BMI_result(BMI); } } function find_hip() { var BAI; if(document.getElementById("BAI").value != "" && height!=null) { BAI = parseFloat(document.getElementById("BAI").value); hip = Math.pow(height,1.5)*(BAI+18); document.getElementById("hipcm").value = Math.round(hip*10)/10; convert_metric(); BAI_result(BAI); } } function calc_BAI() { if(hip != null && height != null) { var BAI = hip / Math.pow(height, 1.5)-18; document.getElementById("BAI").value = Math.round(BAI*10)/10; BAI_result(BAI); } } function BAI_result(BAI) { var gender = document.getElementById("gender").selectedIndex; var age = document.getElementById("age").selectedIndex; var result; for(i=0;i

first enter your dimensions
then play with the indexes

Gender

Age



American Units

Height
feet and
inches
Hip circumference
inches
Weight
lbs

Metric Units

Height
cm
Hip circumference
cm
Weight
Kg
Percentage of body fat(BAI)

Body Mass Index (BMI)

After
finding your body fat percentage and BMI, you can change
them to see what would be your hip size or weight if your
fat percentage or BMI were different.