
function testConst ()
{


   confirm ("testing constants.js");

} 


var MALE = 0;
var FEMALE = 1;

var US = 0;
var METRIC = 1;

// weight units
var POUNDS = 0;
var KILOS = 1;

// distance units
var INCHES = 0;
var CM = 1;
var METERS = 1;


var BF_NUMERATOR = 495;


var BF_SUBTRACTOR = 450;


var BF_F_SUBTRACTOR = 1.168297;


var BF_F_ABDOMEN = 0.002824;

var BF_F_ABDOMEN_SQUARED = 0.0000122098;


var BF_F_HIPS = 0.000733128;


var BF_F_HEIGHT = 0.000510477;


var BF_F_AGE = 0.000216161;


var BF_M_ADDER = 1.21142;


var BF_M_WEIGHT = 0.00085;


var BF_M_ILIAC = 0.00050;

// the constant used in the body fat calculation
// multiply by the hips, for a man, x12
var BF_M_HIPS = 0.00061;

// the constant used in the body fat calculation
// multiply by the abdomen, for a man, x13
var BF_M_ABDOMEN = 0.00138;

//**********************************************************
// constants used for maximal oxygen uptake calculations
//**********************************************************
// maximal oxygen uptake calculation
// female
// x1  
//    - (x2 * age)
//    - (x3 * weight)
//    - (x4 * walk time)
//    - (x5 * heart rate)
//    =  VOx max (female)
// male
// x6  
//    - (x2 * age)
//    - (x3 * weight)
//    - (x4 * walk time)
//    - (x5 * heart rate)
//    =  VOx max (female)

// the number everything else is subtracted from in the 
// maximal oxygen uptake calculation, for a woman, x1
var MOU_F_SUBTRACTOR = 132.85;

// the number everything else is subtracted from in the 
// maximal oxygen uptake calculation, for a woman, x6
var MOU_M_SUBTRACTOR = 139.168;

// the constant multiplied by the age in the maximal 
// oxygen uptake calculation, for men and women, x2
var MOU_AGE = 0.388;

// the constant multiplied by the weight in the maximal 
// oxygen uptake calculation, for men and women, x3
var MOU_WEIGHT = 0.077;

// the constant multiplied by the miles walked in the maximal 
// oxygen uptake calculation, for men and women, x4
var MOU_WALK_TIME = 3.265;

// the constant multiplied by the miles walked in the maximal 
// oxygen uptake calculation, for men and women, x5
var MOU_EX_HEART_RATE = 0.156;

//**********************************************************
// constants used for max/min range values for all fields
//**********************************************************
// no fields may have a value as low as 0
var ABSOLUTE_MIN_VALUE = 0;

// age, these defined the range for age, in years
var MIN_AGE = 12;       
var MAX_AGE = 110;

// weight, these defined the range for age,
// represent kilos
var MIN_WEIGHT = 27;     // approx 60 lbs
var MAX_WEIGHT = 227;    // approx 500 lbs

// exercise heart rate, these defined the range for heart
// rate, represent beats per minute
var MIN_HEART_RATE = 60;
var MAX_HEART_RATE = 220;

// walk time, these defined the range for walk time,
// represent minutes
var MIN_WALK_TIME = 4;
var MAX_WALK_TIME = 60;

// waist, these defined the range for waist,
// represent cm
var MIN_WAIST = 38.1;     // 15 inches
var MAX_WAIST = 381;      // 150 inches

// hips, these defined the range for hips,
// represent cm
var MIN_HIPS = 38.1;      // 15 inches
var MAX_HIPS = 381;       // 150 inches

// height, these defined the range for height,
// represent cm
var MIN_HEIGHT = 122;     // 48"
var MAX_HEIGHT = 229;     // 90"

// abdomen, these defined the range for abdomen,
// represent cm
var MIN_ABDOMEN = 38.1;   // 15 inches
var MAX_ABDOMEN = 381;    // 150 inches

// iliac, these defined the range for iliac,
// represent cm
var MIN_ILIAC = 38.1;     // 15 inches
var MAX_ILIAC = 381;      // 150 inches

// target heart rate multipliers
var TARGET_HEART_RATE_LOW = .60;
var TARGET_HEART_RATE_HIGH = .85;
