<!-- function sf(){squarepond.length.focus();} // This sets the initial cursor focus to the input tag named 'length'
function computeA()
{
var f = document.squarepond; // This is the name of the form we'll we working with turned into the variable f.
// line 1, length to use in the pond calculation
var length = (f.length.value);
if (isNaN(length)) length = 0; f.length.value = "0";
f.length.value = Math.abs(length);
// line 2, width to use in the pond calculation
var width = (f.width.value);
if (isNaN(width)) width = 0; f.width.value = "0";
f.width.value = Math.abs(width);
// line 3, average depth to use in the pond calculation
var averagedepth = (f.averagedepth.value);
if (isNaN(averagedepth)) averagedepth = 0; f.averagedepth.value = "0";
f.averagedepth.value = Math.abs(averagedepth);
// then compute the gallons based upon the formula
var gallons = (length * width * averagedepth * 7.48051945);
f.gallons.value = Math.round(gallons );	
// then compute the uk gallons based upon the formula
var ukgallons = (length * width * averagedepth * 7.48051945 * 0.83267384);
f.ukgallons.value = Math.round(ukgallons);	
}
// -->
