
function update_form(theForm) {
var FeetValue
var InchesValue
  if (theForm.Feet.value!='') {
		FeetValue=theForm.Feet.value
	}
  else {
		FeetValue=0
 	}
  if (theForm.Inches.value!='') {
		InchesValue=theForm.Inches.value
	}
  else {
		InchesValue=0
 	}

		var total
		total=(parseFloat(FeetValue)*12)+parseFloat(InchesValue)
		total=parseInt(total*25.4)

		theForm.millimeters.value=total

}




Spry.Utils.addLoadListener(function() {
	Spry.$$("#calc").addEventListener('click', function(e){ update_form(this.form) }, false);
});
