<!-- Begin
function mod(div,base)
 {
return Math.round(div - (Math.floor(div/base)*base));
}
function calcBmi()
 {
var w = document.aspnetForm.weight.value * 1;
var HeightFeetInt = document.aspnetForm.htf.value * 1;
var HeightInchesInt = document.aspnetForm.hti.value * 1;
HeightFeetConvert = HeightFeetInt * 12;
h = HeightFeetConvert + HeightInchesInt;
displaybmi = (Math.round((w * 703) / (h * h)));
var rvalue = true;
if ( (w <= 35) || (w >= 500) || (h <= 48) || (h >= 120) ) {
alert ("Invalid data. Please check and re-enter!");
rvalue = false;
}
if (rvalue) {
if (HeightInchesInt > 11) {
reminderinches = mod(HeightInchesInt,12);
document.aspnetForm.hti.value = reminderinches;
document.aspnetForm.htf.value = HeightFeetInt + 
((HeightInchesInt - reminderinches)/12);
document.aspnetForm.answer.value = displaybmi;
}
if (displaybmi <19) 
document.aspnetForm.comment.value = "Underweight";
if (displaybmi >=19 && displaybmi <=25) 
document.aspnetForm.comment.value = "Normal Weight Range";
if (displaybmi >=26 && displaybmi <=29) 
document.aspnetForm.comment.value = "Prone to Health Risks";
if (displaybmi >=30 && displaybmi <=40) 
document.aspnetForm.comment.value = "Obese";
if (displaybmi >40) 
document.aspnetForm.comment.value = "Morbidly Obese";
document.aspnetForm.answer.value = displaybmi; }
return rvalue;
}
function hidestatus(){
      window.status=""
      return true
}
      
if (document.layers)
      document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
      
document.onmouseover=hidestatus;
document.onmouseout=hidestatus;

// End -->
