// Pond Volume Calculator

var PondLength;
var PondWidth;
var PondDepth;


function PondVolumeCalc (form)
{

var VolumeLitres;
VolumeLitres = (PondLength*PondWidth*PondDepth) * 1000;
form.f1.value = VolumeLitres;

var VolumeGallons;
VolumeGallons = VolumeLitres/4.546;
VolumeGallons = Math.round(VolumeGallons*100)/100;
form.f2.value = VolumeGallons;

}


function SetPondLength (length)
{
PondLength = length.value;
}

function SetPondWidth (width)
{
PondWidth = width.value;
}

function SetPondDepth (depth)
{
PondDepth = depth.value;
}


function ClearForm (form){

form.PondLength.value = "";
form.PondWidth.value = "";
form.PondDepth.value = "";
form.f1.value = "";
form.f2.value = "";
}



