{"id":30,"date":"2009-02-24T01:46:03","date_gmt":"2009-02-24T01:46:03","guid":{"rendered":"https:\/\/medicalcriteria.com\/web\/nutbmi\/"},"modified":"2025-05-14T21:03:28","modified_gmt":"2025-05-14T21:03:28","slug":"nutbmi-script","status":"publish","type":"post","link":"https:\/\/medicalcriteria.com\/web\/nutbmi-script\/","title":{"rendered":"Body Mass Index (BMI) Calculator"},"content":{"rendered":"<div class=\"99c380e4b4a7b96c35d7ddf7dcb434e8\" data-index=\"1\" style=\"float: none; margin:0px 0 0px 0; text-align:center;\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- MC 2019- Horizontal -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-0127150553352455\"\r\n     data-ad-slot=\"3806776041\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<p><\/p>\n<p class=\"MsoNormal\">BMI is body weight divided by a power of height, usually (height<span class=\"GramE\">)2<\/span>, which is said to be independent of stature. Calculations based on values for ideal body weight suggest that <span class=\"SpellE\">BMIs<\/span> for normal men and women should be in the range of 18.5 to 25 kg\/m2. Indeed, this range roughly corresponds to the 10th to 75th percentile values recorded from adult individuals. For infants and children, average BMI values change with age, from 13 kg\/m2 at birth, to a peak of 18 at about 1 year, a nadir of 15 at about age 6 years, and then a rise to adult values during adolescence.<\/p>\n<p><!--more--><\/p>\n<p class=\"MsoNormal\">Individuals with high indices are classified as overweight, even obese, and those with subnormal indices as undernourished. However, such classifications cannot be applied, for example, to short muscular men or to tall <span class=\"SpellE\">asthenic<\/span> women, and despite the sex difference in body fat, the average index is about the same for both sexes during the adolescent and young adult years.<\/p>\n<table class=\"MsoTableGrid\" style=\"border-collapse: collapse;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td style=\"border: 1pt solid windowtext; padding: 0cm 5.4pt;\" colspan=\"2\" align=\"center\" valign=\"top\">\n<p class=\"MsoNormal\">WHO <span class=\"SpellE\">Classification<\/span> <span class=\"SpellE\">of<\/span> BMI<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt;\" align=\"center\" valign=\"top\">\n<p class=\"MsoNormal\">&lt;18.5<\/p>\n<\/td>\n<td style=\"border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt;\" align=\"center\" valign=\"top\">\n<p class=\"MsoNormal\">Underweight<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt;\" align=\"center\" valign=\"top\">\n<p class=\"MsoNormal\">18.5-24.9<\/p>\n<\/td>\n<td style=\"border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt;\" align=\"center\" valign=\"top\">\n<p class=\"MsoNormal\">Normal<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt;\" align=\"center\" valign=\"top\">\n<p class=\"MsoNormal\">25-29.9<\/p>\n<\/td>\n<td style=\"border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt;\" align=\"center\" valign=\"top\">\n<p class=\"MsoNormal\">Overweight<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt;\" align=\"center\" valign=\"top\">\n<p class=\"MsoNormal\">30-34.9<\/p>\n<\/td>\n<td style=\"border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt;\" align=\"center\" valign=\"top\">\n<p class=\"MsoNormal\">Class I Obesity<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt;\" align=\"center\" valign=\"top\">\n<p class=\"MsoNormal\">35-39.9<\/p>\n<\/td>\n<td style=\"border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt;\" align=\"center\" valign=\"top\">\n<p class=\"MsoNormal\">Class II Obesity<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt;\" align=\"center\" valign=\"top\">\n<p class=\"MsoNormal\">&gt;40<\/p>\n<\/td>\n<td style=\"border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt;\" align=\"center\" valign=\"top\">\n<p class=\"MsoNormal\">Class III Obesity<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"MsoNormal\"><b>Usage Instructions:<\/b> To calculate your BMI, enter your weight in pounds in the top box. Next, enter your height in inches. Click on the &#8216;Calculate&#8217; button, and your BMI score and class will appear.<\/p>\n<p><script type=\"text\/javascript\"><!-- var ns4 = (navigator.appName.indexOf(\"Netscape\")>=0 && !document.getElementById)? true : false;\n\nvar ie4 = (document.all && !document.getElementById)? true : false;\n\nvar ie5 = (document.getElementById && document.all)? true : false;\n\nvar ns6 = (document.getElementById && navigator.appName.indexOf(\"Netscape\")>=0 )? true: false;\n\nvar w3c = (document.getElementById)? true : false;\n\n\n\nfunction bmiCalc(form) {\n\n\tvar weight = Number(form.wt.value);\n\n\tvar height = Number(form.ht.value);\n\n\n\n\tif (!checkNum(weight,\"WEIGHT\")) {\n\n\t\tform.wt.select();\n\n\t\tform.wt.focus();\n\n\t\treturn false\n\n\t}\n\n\n\n\tif (!checkNum(height,\"HEIGHT\")) {\n\n\t\tform.ht.select();\n\n\t\tform.ht.focus();\n\n\t\treturn false\n\n\t}\n\n\n\n        if (form.wu.selectedIndex == 0) {\n\n                                        \/\/  What units for weight?\n\n                                        \/\/  0 = lbs\n\n                                        \/\/  1 = kg\n\n                weight = weight * 0.45359237;\t\/\/  Convert wt (lbs to kg)\n\n        }\n\n\n\n\tvar huNum = form.hu.selectedIndex;\n\n\tvar hu = form.hu.options[huNum].text;\n\n\n\n\tif (hu == \"inches\") {  \n\n\t\t\t\t\/\/  if height units are \"inches\"\n\n\t\theightInches = height;\n\n\t\theightMeters = height * 2.54 \/ 100;\n\n\t}\n\n\n\n\tif (hu == \"cm\") {  \n\n\t\t\t\t\/\/  if height units are \"cm\"\n\n\t\theightInches = height \/ 2.54;\n\n\t\theightMeters = height \/ 100;\n\n\t}\n\n\n\n\tif (hu == \"feet\") {  \n\n\t\t\t\t\/\/  if height units are \"cm\"\n\n\t\tvar inch = Number(form.inch.value);\n\n\t\tif (!checkNum(inch,\"inches\")) {\n\n\t\t\tform.inch.select();\n\n\t\t\tform.inch.focus();\n\n\t\t\treturn false\n\n\t\t}\n\n\t\theightInches = height*12 + inch;\n\n\t\theightMeters = heightInches * 2.54 \/ 100;\n\n\t}\n\n\n\n\tif (hu == \"meters\") {  \n\n\t\t\t\t\/\/  if height units are \"meters\"\n\n\t\theightInches = height * 100 \/ 2.54;\n\n\t\theightMeters = height;\n\n\t}\n\n\n\t\/\/ var bsa = 0.20247 * Math.pow(heightMeters,0.725) * Math.pow(weight,0.425);\n\n\n\tvar bmi = weight \/ Math.pow(heightMeters,2);\n\n\n\t\/\/ bsa = rounding(bsa,2);\n\n\n\tbmi = rounding(bmi,1);\n\nminimc=Math.round(heightMeters*heightMeters*18.5);\nmaximc=Math.round(heightMeters*heightMeters*25);\nminimq=Math.round(heightMeters*heightMeters*18.5\/0.45359);\nmaximq=Math.round(heightMeters*heightMeters*25\/0.45359);\n\n\n\n\tif (bmi < 18.5) {var interp = \"Underweight\";\n          form.minimo.value=minimc; \n          form.maximo.value=maximc; \n          form.minim.value=minimq; \n          form.maxim.value=maximq; \n\n                }\n\t\t\t\n\t\telse if (bmi < 25.0) {var interp = \"Normal\";\n          form.minimo.value=minimc; \n          form.maximo.value=maximc;\n          form.minim.value=minimq; \n          form.maxim.value=maximq; \n\n                }\n\n\t\t\telse if (bmi < 30.0) {var interp = \"Overweight\";\n          form.minimo.value=minimc; \n          form.maximo.value=maximc;\n          form.minim.value=minimq; \n          form.maxim.value=maximq; \n\n                }\n\n\t\t\t\telse if (bmi<35.0) {var interp = \"Class I Obesity\";\n          form.minimo.value=minimc; \n          form.maximo.value=maximc;\n          form.minim.value=minimq; \n          form.maxim.value=maximq; \n\t\t}\n\n\t\t\t\telse if (bmi<40.0) {var interp = \"Class II Obesity\";\n          form.minimo.value=minimc; \n          form.maximo.value=maximc;\n          form.minim.value=minimq; \n          form.maxim.value=maximq; \n\n\t\t }\n\n\t\t\t\telse {var interp = \"Class III Obesity\";\n          form.minimo.value=minimc; \n          form.maximo.value=maximc;\n          form.minim.value=minimq; \n          form.maxim.value=maximq; \n             } \n\n\t\/* form.bsa.value = bsa;\n\n\tform.bmi.value = bmi;\n\n\tform.interp.value = interp;\n\n\t*\/\n\n\t\n\tvar bmiText = eval(getLabel(\"bmiText\"));\n\n\n\tbmiText.innerHTML = bmi + \" kg\/m<sup>2<\/sup> = \" + interp;\n\n\t\n\n\tbmiText.style.display = '';\n\n\n\n\treturn true;\n\n}\n\n\n\nfunction isFeet() {\n\n\tvar bmi = document.bmi;\n\n\tvar huNum = bmi.hu.selectedIndex;\n\n\tvar hu = bmi.hu.options[huNum].text;\n\n\tvar inchRow = eval(getLabel(\"inchRow\"));\n\n\n\n\tif (hu == \"feet\") {inchRow.style.display = \"\";}\n\n\t\telse {inchRow.style.display = \"none\"}\n\n\t\n\n\treturn true;\n\n}\n\n\n\nfunction checkNum(val,text) {\n\n\tif ((val == null) || (isNaN(val)) || (val == \"\") || (val < 0) || (text==\"inches\" && val>=12)) {\n\n\t\tif (text==\"inches\" && val==0) {return true}\n\n\t\talert(\"Please enter a value for \" + text + \".\");\n\n\t\treturn false\n\n\t}\n\n\treturn true;\n\n}\n\n\n\nfunction checkError(whatVar, varName, varText) {\n\n\tif ((whatVar == \"\") || (whatVar <= 0) || (isNaN(whatVar))) { alert(\"Please enter the \" + varText + \".\"); eval(\"document.bmi.\" + varName + \".focus();\"); eval(\"document.bmi.\" + varName + \".select();\"); return false; } return true; } function getLabel(nameID) { var whatTag; if (ie4 || w3c) {whatTag = \"document.all[\"\" + nameID + \"\"]\";} if (ns6) {whatTag = \"document.getElementById(\"\" + nameID + \"\")\";} return whatTag; } function rounding(number,decimal) { multiplier = Math.pow(10,decimal); number = Math.round(number * multiplier) \/ multiplier; return number } \/\/ --><\/script><\/p>\n<form method=\"post\">\n<table class=\"mceItemTable\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<th align=\"right\">Weight :<\/th>\n<td align=\"left\"><input maxlength=\"5\" name=\"wt\" size=\"4\" type=\"text\" \/><select name=\"wu\"><option>lbs<\/option><option>kg<\/option><\/select><\/td>\n<\/tr>\n<tr>\n<th align=\"right\">Height :<\/th>\n<td align=\"left\"><input maxlength=\"5\" name=\"ht\" size=\"3\" type=\"text\" \/><select name=\"hu\"><option>inches<\/option><option>cm<\/option><option>feet<\/option><option>meters<\/option><\/select><span id=\"inchRow\" style=\"display: none;\"><input name=\"inch\" size=\"3\" type=\"text\" \/> <b>inches<\/b><\/span><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td align=\"left\"><input name=\"button\" type=\"button\" value=\"Calculate\" \/><\/td>\n<\/tr>\n<p><!--tr>\n\n\n<td colspan=2>\n\n\n\n<hr>\n\n\n\n<\/td>\n\n\n<\/tr-->\n<tr bgcolor=\"#cccccc\">\n<th align=\"right\">Body Mass Index =<\/th>\n<td align=\"left\"><span id=\"bmiText\" style=\"display: none;\"> <\/span><!--input type=text size=5 maxlength=5 value=\"\" name=\"bmi\"> kg\/m<sup>2<\/sup> =   \t\t<input type=text size=12 maxlength=12 value=\"\" name=\"interp\"--><\/td>\n<\/tr>\n<tr bgcolor=\"#cccccc\">\n<th align=\"right\">\n<p style=\"margin-top: 0; margin-bottom: 0;\">Your Weight Must be =<\/p>\n<\/th>\n<td align=\"left\"><input name=\"minimo\" size=\"4\" type=\"text\" \/>&#8211;<input name=\"maximo\" size=\"4\" type=\"text\" \/><b> Kg<\/b><span id=\"minimo\" style=\"display: none;\"> <\/span><span id=\"maximo\" style=\"display: none;\"> <\/span><\/td>\n<\/tr>\n<tr bgcolor=\"#cccccc\">\n<th align=\"right\">\n<p style=\"margin-top: 0; margin-bottom: 0;\">Your Weight Must be =<\/p>\n<\/th>\n<td align=\"left\"><input name=\"minim\" size=\"4\" type=\"text\" \/>&#8211;<b><input name=\"maxim\" size=\"4\" type=\"text\" \/> lbs<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/form>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\"><b><span class=\"SpellE\">References<\/span>:<\/b><\/p>\n<ol style=\"margin-top: 0cm;\">\n<li class=\"MsoNormal\">Clinical Guidelines on the Identification, Evaluation, and Treatment of Overweight and Obesity in Adults&#8211;The Evidence Report. National Institutes of Health. <span class=\"SpellE\">Obes<\/span> Res. 1998 Sep<span class=\"GramE\">;6<\/span> <span class=\"SpellE\">Suppl<\/span> 2:51S-209S. <a href=\"https:\/\/pubmed.ncbi.nlm.nih.gov\/9813653\/\" target=\"_blank\" rel=\"noopener noreferrer\">[Medline]<\/a><\/li>\n<\/ol>\n<p class=\"MsoNormal\">\n<p><\/p>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Sorry, this entry is only available in Espa\u00f1ol.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"no","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[98],"tags":[771,696,220,221,59,222,223,1901,1900,392,769,768],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-nutrition","tag-bmi","tag-body","tag-corporal","tag-imc","tag-index","tag-indice","tag-masa","tag-mass","tag-nutricion","tag-nutrition","tag-obesidad","tag-obesity"],"modified_by":"Guillermo Firman","_links":{"self":[{"href":"https:\/\/medicalcriteria.com\/web\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/medicalcriteria.com\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/medicalcriteria.com\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/medicalcriteria.com\/web\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/medicalcriteria.com\/web\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":2,"href":"https:\/\/medicalcriteria.com\/web\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":9043,"href":"https:\/\/medicalcriteria.com\/web\/wp-json\/wp\/v2\/posts\/30\/revisions\/9043"}],"wp:attachment":[{"href":"https:\/\/medicalcriteria.com\/web\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/medicalcriteria.com\/web\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/medicalcriteria.com\/web\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}