function calories(form) {
 measw = form.measw.options[form.measw.selectedIndex].value;
 meash = form.meash.options[form.meash.selectedIndex].value;
 Kilos   = form.weight.value/measw;
 Weightm = 66 + (13.7 * Kilos);
 Heightm = 5 * form.height.value * meash;
 Agesm   = 6.8 * form.years.value;
 Weightw = 655 + (9.6 * Kilos);
 Heightw = 1.7 * form.height.value * meash;
 Agesw   = 4.7 * form.years.value;
 form.calcma0.value = Math.round((Weightm + Heightm - Agesm) * 1);
 form.calcwa0.value = Math.round((Weightw + Heightw - Agesw) * 1);
 form.calcma1.value = Math.round((Weightm + Heightm - Agesm) * 1.3);
 form.calcwa1.value = Math.round((Weightw + Heightw - Agesw) * 1.3);
 form.calcma2.value = Math.round((Weightm + Heightm - Agesm) * 1.5);
 form.calcwa2.value = Math.round((Weightw + Heightw - Agesw) * 1.5); 
 form.calcma3.value = Math.round((Weightm + Heightm - Agesm) * 1.75);
 form.calcwa3.value = Math.round((Weightw + Heightw - Agesw) * 1.75);
 form.calcma4.value = Math.round((Weightm + Heightm - Agesm) * 2.0);
 form.calcwa4.value = Math.round((Weightw + Heightw - Agesw) * 2.0);
}
