<!-- 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 surface area calculation
var length = (f.length.value);
if (isNaN(length)) length = 0; f.length.value = "0";
f.length.value = (length);
// line 2, width to use in the surface area calculation
var width = (f.width.value);
if (isNaN(width)) width = 0; f.width.value = "0";
f.width.value = (width);
// line 3, shade to use in the surface area calculation
var shade = (f.shade.value);
if (isNaN(shade)) shade = 0; f.shade.value = "0";
f.shade.value = (shade);
// then compute the surface area based upon the formula
var surfacearea = (length * width);
if (isNaN(surfacearea)) surfacearea = 0; f.surfacearea.value = "0";
f.surfacearea.value = (surfacearea);
// then compute the hardylilies based upon the formula
var hardylilies = ((length * width) * shade / 10);
f.hardylilies.value = Math.round(hardylilies);
// then compute the bunches based upon the formula
var bunches = (length * width * .45);
f.bunches.value = Math.round(bunches);
// then compute the coveredsurface based upon the formula
var coveredsurface = ((length * width) *  shade);
f.coveredsurface.value = Math.round(coveredsurface);
// then compute the coveredbottomsurface based upon the formula
var coveredbottomsurface = ((length * width) * .45);
f.coveredbottomsurface.value = Math.round(coveredbottomsurface);
}
// -->