function calcIdealWeight() {

form = document.IronPointForm;
feetIndex = form.Feet.selectedIndex;
feet = form.Feet.options[feetIndex].value;
inchesIndex = form.Inches.selectedIndex;
inches = form.Inches.options[inchesIndex].value;

TotalInches = eval(feet*12) + eval(inches);
idealWeight = 0;

if(form.Gender[0].checked){

	<!-- Male calculations -->

	if(TotalInches==60){
		idealWeight=106;
	}

	if((TotalInches>60) & (TotalInches < 72)){
		idealWeight=106+(6*inches);
	}
	
	if(TotalInches==72){
		idealWeight=178;
	}

	if(TotalInches>72){
		idealWeight=178+(6*inches);
	}
	
} else {

	<!-- Female calculations -->
	
	if(TotalInches==60){
		idealWeight=100;
	}

	if((TotalInches>60) & (TotalInches < 72)){
		idealWeight=100+(5*inches);
	}
	
	if(TotalInches==72){
		idealWeight=160;
	}
	
	if(TotalInches>72){
		idealWeight=160+(5*inches);
	}
}

	form.Weight.value = idealWeight;
	form.WeightKg.value = parseInt(idealWeight/2.2);

}

