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)
 {
       alert ("Por Favor Ponga Su Informacion Correcta En La Siguiente Forma:\n\n- Altura\n- Peso");  //out of range  
 } 
else if (bmi > 12 && bmi < 24)
{
       alert ("Felicidades Usted Tiene Una Masa Corporal Saludable (BMI)\n\nAcceletrim es solo para gente que tiene sobrepeso.\n\nPor favor, si tiene un amigo o ser querido que necesite perder peso rapido, mandele esta informacion, su salud de pende de ello.\n\nAcceletrim es solo para gente que:\n\n- Tiene que perder mas de 10 libras.\n- o quien un doctor o amigo lo consideraria estar sobre peso\n- ha mostrado muchas ganas de perder peso de una vez por todas\n\nGracias  Por Su Interes");
 }
else if (bmi >=24)
 {
       window.location = '_page2.html?'+'pounds='+pounds+'&'+'inches='+ TotalInches;  //overweight
 }
else
 {
       alert ("Por Favor Complete Su Informacion En La Forma:\n\n- Altura\n- Peso");
 }
}

// <!-- 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;

}