<!-- function sf(){ovalpond.radiusa.focus();} // This sets the initial cursor focus to the input tag named 'radiusa'
function computeb()
{
var g = document.ovalpond; // This is the name of the form we'll we working with turned into the variable g.
// line 1, radiusa to use in the pond calculation
var radiusa = (g.radiusa.value);
if (isNaN(radiusa)) radiusa = 0; g.radiusa.value = "0";
g.radiusa.value = Math.abs(radiusa);
// line 2, radiusb to use in the pond calculation
var radiusb = (g.radiusb.value);
if (isNaN(radiusb)) radiusb = 0; g.radiusb.value = "0";
g.radiusb.value = Math.abs(radiusb);
// then compute the surface area based upon the formula
var surfacearea2 = ((1 * 3.14) * (radiusa / 2) * (radiusb / 2));
g.surfacearea2.value = (surfacearea2).toFixed(1);
}
// -->
