<!-- 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.round(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.round(radiusb);
// line 3, Depth4 to use in the pond calculation
var Depth4 = (g.Depth4.value);
if (isNaN(Depth4)) Depth4 = 0; g.Depth4.value = "0";
g.Depth4.value = Math.round(Depth4);
// line 4, Average Depth to use in the pond calculation
var AverageDepth4 = (g.AverageDepth4.value);
if (isNaN(AverageDepth4)) AverageDepth4 = 0; g.AverageDepth4.value = "0";
g.AverageDepth4.value = Math.round(AverageDepth4);
// line 5, turnover to use in the pond calculation
var turnover4 = (g.turnover4.value);
if (isNaN(turnover4)) turnover4 = 0; g.turnover4.value = "0";
g.turnover4.value = (turnover4);
// line 6, overlay to use in the pond calculation
var overlay4 = (g.overlay4.value);
if (isNaN(overlay4)) overlay4 = 0; g.overlay4.value = "0";
g.overlay4.value = (overlay4);
// then compute the Liner Length based upon the formula
var LinerLength4 = ((1 * radiusa) + (1 * Depth4) + (1 * Depth4) + (2 * overlay4));
g.LinerLength4.value = Math.round(LinerLength4);
// then compute the Liner Width based upon the formula
var LinerWidth4 = ((1 * radiusb) + (1 * Depth4) + (1 * Depth4) + (2 * overlay4));
g.LinerWidth4.value = Math.round(LinerWidth4);
// then compute the surface area based upon the formula
var SurfaceArea4 = (1 * 3.14) * (radiusa / 2) * (radiusb / 2);
g. SurfaceArea4.value = Math.round(SurfaceArea4);
// then compute the plant coverage needed based upon the formula
var PlantCoverage4 = ((1 * 3.14) * (radiusa / 2) * (radiusb / 2) * .60);
g.PlantCoverage4.value = Math.round(PlantCoverage4);
// then compute the plants needed based upon the formula
var PlantCoverage24 = ((1 * 3.14) * (radiusa / 2) * (radiusb / 2) * .60 / 10);
g.PlantCoverage24.value = Math.round(PlantCoverage24);
// then compute the gallons based upon the formula
var Gallons4 = ((1 * 3.14) * (radiusa / 2) * (radiusb / 2) * AverageDepth4 * 7.48051945);
g.Gallons4.value = Math.round(Gallons4);
// then compute the pump size based upon the formula
var PumpSize4 = ((1 * 3.14) * (radiusa / 2) * (radiusb / 2) * AverageDepth4 * 7.48051945 / turnover4);
g.PumpSize4.value = Math.round(PumpSize4);
// then compute the filter size based upon the formula
var FilterSize4 = ((1 * 3.14) * (radiusa / 2) * (radiusb / 2) * AverageDepth4 * 7.48051945 * 1.10 / turnover4);
g.FilterSize4.value = Math.round(FilterSize4);
// then compute the waterfall size based upon the formula
var WaterfallSize4 = ((1 * 3.14) * (radiusa / 2) * (radiusb / 2) * AverageDepth4 * 7.48051945 / 100);
g.WaterfallSize4.value = Math.round(WaterfallSize4);
// then compute the Submerged plants needed based upon the formula
var PlantCoverage34 = ((1 * 3.14) * (radiusa / 2) * (radiusb / 2) / 2);
g.PlantCoverage34.value = Math.round(PlantCoverage34);
// then compute the Sq. foot needed for underlayment based upon the formula
var underlayment4 = ((LinerLength4 * 1) * (LinerWidth4 * 1) * 1.10);
g.underlayment4.value = Math.round(underlayment4);
// then compute the turnover value based upon the formula
var turnovervalue4 = (turnover4 * 1);
g.turnovervalue4.value = (turnovervalue4);
// then compute the turnover value 2 based upon the formula
var turnovervalue24 = (turnover4 * 1);
g.turnovervalue24.value = (turnovervalue24);
// then compute the turnover value 3 based upon the formula
var turnovervalue34 = (turnover4 * 1);
g.turnovervalue34.value = (turnovervalue34);
// then compute the pump size 2 based upon the formula
var PumpSize24 = ((1 * 3.14) * (radiusa / 2) * (radiusb / 2) * AverageDepth4 * 7.48051945 / turnover4);
g.PumpSize24.value = Math.round(PumpSize24);
// then compute the fish load based upon the formula
var Fishload4 = ((1 * 3.14) * (radiusa / 2) * (radiusb / 2) / 25 * 12);
g.Fishload4.value = Math.round(Fishload4);
// then compute the Koi fish load based upon the formula
var KoiFishload4 = ((1 * 3.14) * (radiusa / 2) * (radiusb / 2) / 25 * 12 / 30);
g.KoiFishload4.value = Math.round(KoiFishload4);
// then compute the Gold fish load based upon the formula
var GoldFishload4 = ((1 * 3.14) * (radiusa / 2) * (radiusb / 2) / 25 * 12 / 14);
g.GoldFishload4.value = Math.round(GoldFishload4);
// then compute the Shubunkin fish load based upon the formula
var ShubunkinFishload4 = ((1 * 3.14) * (radiusa / 2) * (radiusb / 2) / 25 * 12 / 12);
g.ShubunkinFishload4.value = Math.round(ShubunkinFishload4);
}
// -->