


function calculate()

// Created by: Cynthia Brown 
// Date: May 19, 2004
// Modified by: Cynthia Brown
// Date: May 20, 2004

{


// Do the calculation first and store values.


E3 =(document.thisForm.d3.value - document.thisForm.b3.value) / (document.thisForm.c3.value - document.thisForm.d3.value)

H3 =(document.thisForm.f3.value * 0.0312)  * 43560;

I3 =(document.thisForm.g3.value * 62.4 * 27)/2000

J3 = (document.thisForm.f3.value * 62.4 * 27)/2000

K3 = E3 * J3;

L3 = E3 * I3;

M3 = E3 * H3;

N3 = M3 / I3;

O3 = (N3 * 27) / 43560 * 12


// Populate the text boxes. Use the rounding and multiplying and dividing to get truncate the calculations above.


document.thisForm.i3.value = Math.round(I3 * 100)/100;

document.thisForm.l3.value = Math.round(L3 * 100)/100;

document.thisForm.k3.value = Math.round(K3 * 100)/100;

document.thisForm.n3.value = Math.round(N3 * 100)/100;

document.thisForm.o3.value = Math.round(O3 * 100)/100;

document.thisForm.m3.value = Math.round(M3 * 100)/100;

document.thisForm.j3.value = Math.round(J3 * 100)/100;

document.thisForm.h3.value = Math.round(H3 * 100)/100;

document.thisForm.e3.value = Math.round(E3 * 10000)/10000;
 
}


