function calcNeeds(){

var weight = (isNaN(document.wcbubba.weight.value)) ? 0 : document.wcbubba.weight.value;
if (weight == 0) alert("Results will be inaccurate.  Weight is not a valid number.");
var height = (isNaN(document.wcbubba.height.value)) ? 0 : document.wcbubba.height.value;
if (height == 0) alert("Results will be inaccurate.  Height is not a valid number.");
var age = (isNaN(document.wcbubba.height.value)) ? 0 : document.wcbubba.age.value;
if (age == 0) alert("Results will be inaccurate.  Age is not a valid number.");
var activity = (isNaN(document.wcbubba.activity.value)) ? 0 : document.wcbubba.activity.value;

var wmult = (document.wcbubba.units.value == "pounds") ? 2.204 : 1;
var hmult = (document.wcbubba.hunits.value == "inches") ? 2.54 : 1;
var genvar = (document.wcbubba.gender.value == "male") ? 5 : -161;

var BMR = Math.round((((weight / wmult) * 9.99) + ((height * hmult) * 6.25) - (age * 4.92) + genvar) * 1);

var calburn = Math.round((((weight / wmult) * 9.99) + ((height * hmult) * 6.25) - (age * 4.92) + genvar) * activity);

document.getElementById('results').innerHTML = "Your Basal Metabolic Rate is: " + BMR + " calories.<br><br>Your Average Daily Calorie Need Is: " + calburn + " calories";


}