function CalcSpinWPI() {
	document.getElementById('c').innerHTML = '';
	var val = (parseFloat(document.getElementById('a').value) * Math.sqrt(parseFloat(document.getElementById('b').value))).toFixed(1);
	if (!isNaN(val)) document.getElementById('c').innerHTML = (val.substring(val.length - 2) == '.0') ? parseInt(val) : val;
}
window.onload = function() { CalcSpinWPI(); };  // For browsers that remember field values on refresh
