function kitSize(){
var width = document.pondKit.width.value *1;
var legnth = document.pondKit.legnth.value *1;
var depth = document.pondKit.depth.value *1;
var linerD = depth *2;
var linerL = legnth + linerD;
var linerW = width + linerD;
var gal = legnth * width * depth *7.5;
document.pondKit.linerW.value = linerW;
document.pondKit.linerL.value = linerL;
document.pondKit.gal.value = gal;
}
document.write('<table align="center"class="table01">');					
document.write('<tr><td>This tool will show you the appropriate size pond kit according to the dimensions you enter below.</td></tr>');
document.write('<tr><td><ol><li>Outline the pond shape in your yard using a rope or garden hose.</li><li>Measure the longest and widest parts of your outline.</li><li>Estimate how deep you would like you pond to be.</li></td></tr>');
document.write('<tr><td align="center"><form name="pondKit"></td></tr>');	
document.write('<tr><td align="center">Widest measurement in feet: <input type="text" name="width" size="3"></td></tr><tr><td align="center">Longest measurement in feet: <input type="text" name="legnth" size="3"></td></tr><tr><td align="center">Chosen depth in feet: <input type="text" name="depth" size="3"></td></tr>');	
document.write('<tr><td align="center"><input type="button" name="go" value="Calculate" onClick="kitSize();">&nbsp;&nbsp;<input type="reset" value="Clear"></td></tr>');	
document.write('<tr><td>Based on the sizes entered you should select a pond kit slightly larger than: <div align="center"><input type="text" name="linerW" size="1"> ft. x <input type="text" name="linerL" size="1"> ft.</div></td></tr>');
document.write('<tr><td>The total gallons in your pond would be: <input type="text" name="gal" size="3"> gallons</td></tr>');
document.write('<tr><td></form></td></tr>');	
document.write('</table>');	