//written by manuel villanueva 5/10/06
function lbsKg(form) {wt=form.wt.value;if((wt==null)||(wt=="")||(isNaN(wt))){form.answer.value="?";form.show.value="?";alert('Please enter a weight with numbers only. Use a period for decimal place.');form.wt.focus();form.wt.select();return false;}if  (form.choice[0].checked){var answer= wt / 2.2;var round=Math.round(10*answer)/10;var text1=" lbs = ";var text2=" kg";var text3=" pounds divided by 2.2 = ";var text4=" kilograms.";form.answer.value=wt + text1 + round + text2;form.show.value= wt+ text3 + round + text4;}if (form.choice[1].checked){var answer=wt * 2.2;var round=Math.round(10*answer)/10;text1=" kg = ";text2=" lbs";text3=" kilograms multiplied by 2.2 = ";text4=" pounds.";form.answer.value=wt + text1 + round + text2;form.show.value= wt + text3 + round + text4;}}