<!-- function sf(){linersize.length.focus();} // This sets the initial cursor focus to the input tag named 'length'
function compute()
{
var f = document.linersize; // 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, depth to use in the pond calculation
var depth = (f.depth.value);
if (isNaN(depth)) width = 0; f.depth.value = "0";
f.depth.value = Math.abs(depth);
// line 4, overlay to use in the pond calculation
var overlay = (f.overlay.value);
if (isNaN(overlay)) width = 0; f.overlay.value = "0";
f.overlay.value = Math.abs(overlay);
// then compute the liner length based upon the formula
var linerlength = ((length * 1) + (depth * 1) + (depth * 1) + (2 * overlay));
f.linerlength.value = Math.abs(linerlength);
// then compute the liner width based upon the formula
var linerwidth = ((width * 1) + (depth * 1) + (depth * 1) + (2 * overlay));
f.linerwidth.value = Math.abs(linerwidth);
// then compute the liner width based upon the formula
var sqfoot = (width * length * 1.10);
f.sqfoot.value = Math.abs(sqfoot).toFixed(1);
}
// -->
