function calcEnglish(form, feet, inches, pounds) {
   if ((! inches) || isNaN(inches))
     inches = 0
   TotalInches = eval(feet*12) + eval(inches)
   var bmi = Math.round(pounds * 703 * 10 / TotalInches /
TotalInches) / 10

      if (bmi <= 12)
 {
       window.location = 'page2.html?'+'pounds='+pounds +'&'+'inches='+ TotalInches;  //out of range  
 } 
else if (bmi > 12 && bmi < 30)
{
       window.location = 'page2.html?'+'pounds='+pounds+'&'+'inches='+ TotalInches;  //underweight
 }
else if (bmi >=30)
 {
       window.location = 'page2.html?'+'pounds='+pounds+'&'+'inches='+ TotalInches;   //obese
 }
else
 {
       window.location = 'page2.html?'+'pounds='+pounds +'&'+'inches='+ TotalInches;  //bad or missing data  
 }
}

// <!-- Keeps it a number -->
// <!-- copyright 1999 Idocs, Inc. http://www.idocs.com  -->
// <!-- Distribute this script freely but keep this notice in place  -->

function numbersonly(myfield, e, dec)
{
var key;
var keychar;

if (window.event)
   key = window.event.keyCode;
else if (e)
   key = e.which;
else
   return true;
keychar = String.fromCharCode(key);

// control keys
if ((key==null) || (key==0) || (key==8) || 
    (key==9) || (key==27) )
   return true;

// numbers
else if ((("0123456789.").indexOf(keychar) > -1))
   return true;

else
   return false;

}