function wac_cal_sum(doc) {
        var f1,f2,f3,f4,f5,f6,f7;
        var total = 0.00;

        f1 = doc.getElementById("CG70434");
        f2 = doc.getElementById("CG70436");
        f3 = doc.getElementById("CG70437");
        f4 = doc.getElementById("CG70438");
        f5 = doc.getElementById("CG70439");
        f6 = doc.getElementById("CG70440");
        f7 = doc.getElementById("CG78614");

        if ((f1) && (f2) && (f3) && (f4) && (f5) && (f6) && (f7)) {
                f1 = f1.value.replace(/[\$,]/g,"");
                f2 = f2.value.replace(/[\$,]/g,"");
                f3 = f3.value.replace(/[\$,]/g,"");
                f4 = f4.value.replace(/[\$,]/g,"");
                f5 = f5.value.replace(/[\$,]/g,"");
                f6 = f6.value.replace(/[\$,]/g,"");

                if ((!isNaN(f1)) && (!isNaN(f2)) && (!isNaN(f3)) && (!isNaN(f4)) && (!isNaN(f5)) && (!isNaN(f6))) {
                        total = (f1-0) + (f2-0) + (f3-0) + (f4-0) + (f5-0) + (f6-0);
                        f7.value = total;
                }
        }

        f1 = doc.getElementById("CG78614");
        f2 = doc.getElementById("CG70442");
        f7 = doc.getElementById("CG70443");

        if ((f1) && (f2)) {
                f1 = f1.value.replace(/[\$,]/g,"");
                f2 = f2.value.replace(/[\$,]/g,"");

                if ((!isNaN(f1)) && (!isNaN(f2))) {
                        total = (f1-0) + (f2-0);
                        f7.value = total;
                }
        }

        f1 = doc.getElementById("CG70444");
        f2 = doc.getElementById("CG70446");
        f3 = doc.getElementById("CG70447");
        f4 = doc.getElementById("CG70448");
        f5 = doc.getElementById("CG70449");
        f6 = doc.getElementById("CG70450");
        f7 = doc.getElementById("CG70451");

        if ((f1) && (f2) && (f3) && (f4) && (f5) && (f6) && (f7)) {
                f1 = f1.value.replace(/[\$,]/g,"");
                f2 = f2.value.replace(/[\$,]/g,"");
                f3 = f3.value.replace(/[\$,]/g,"");
                f4 = f4.value.replace(/[\$,]/g,"");
                f5 = f5.value.replace(/[\$,]/g,"");
                f6 = f6.value.replace(/[\$,]/g,"");

                if ((!isNaN(f1)) && (!isNaN(f2)) && (!isNaN(f3)) && (!isNaN(f4)) && (!isNaN(f5)) && (!isNaN(f6))) {
                        total = (f1-0) + (f2-0) + (f3-0) + (f4-0) + (f5-0) + (f6-0);
                        f7.value = total;
                }
        }

        f1 = doc.getElementById("CG70451");
        f2 = doc.getElementById("CG70452");
        f7 = doc.getElementById("CG70453");

        if ((f1) && (f2)) {
                f1 = f1.value.replace(/[\$,]/g,"");
                f2 = f2.value.replace(/[\$,]/g,"");

                if ((!isNaN(f1)) && (!isNaN(f2))) {
                        total = (f1-0) + (f2-0);
                        f7.value = total;
                }
        }

        f1 = doc.getElementById("CG70455");
        f2 = doc.getElementById("CG70457");
        f3 = doc.getElementById("CG70459");
        f7 = doc.getElementById("CG70460");

        if ((f1) && (f2) && (f3) && (f7)) {
                f1 = f1.value.replace(/[\$,]/g,"");
                f2 = f2.value.replace(/[\$,]/g,"");
                f3 = f3.value.replace(/[\$,]/g,"");

                if ((!isNaN(f1)) && (!isNaN(f2)) && (!isNaN(f3))) {
                        total = (f1-0) + (f2-0) + (f3-0);
                        f7.value = total;
                }
        }

        f1 = doc.getElementById("CG70460");
        f2 = doc.getElementById("CG70456");
        f7 = doc.getElementById("CG85577");

        if ((f1) && (f2)) {
                f1 = f1.value.replace(/[\$,]/g,"");
                f2 = f2.value.replace(/[\$,]/g,"");

                if ((!isNaN(f1)) && (!isNaN(f2))) {
                        total = (f1-0) + (f2-0);
                        f7.value = total;
                }
        }

        f1 = doc.getElementById("CG75128");
        f2 = doc.getElementById("CG75129");
        f3 = doc.getElementById("CG75130");
        f4 = doc.getElementById("CG75131");
        f5 = doc.getElementById("CG75132");
        f6 = doc.getElementById("CG75133");
        f7 = doc.getElementById("CG75135");

        if ((f1) && (f2) && (f3) && (f4) && (f5) && (f6) && (f7)) {
                f1 = f1.value.replace(/[\$,]/g,"");
                f2 = f2.value.replace(/[\$,]/g,"");
                f3 = f3.value.replace(/[\$,]/g,"");
                f4 = f4.value.replace(/[\$,]/g,"");
                f5 = f5.value.replace(/[\$,]/g,"");
                f6 = f6.value.replace(/[\$,]/g,"");

                if ((!isNaN(f1)) && (!isNaN(f2)) && (!isNaN(f3)) && (!isNaN(f4)) && (!isNaN(f5)) && (!isNaN(f6))) {
                        total = (f1-0) + (f2-0) + (f3-0) + (f4-0) + (f5-0) + (f6-0);
                        f7.value = total;
                }
        }

        f1 = doc.getElementById("CG43215");
        f2 = doc.getElementById("CG43351");
        f7 = doc.getElementById("CG43352");

        if ((f1) && (f2)) {
                f1 = f1.value.replace(/[\$,]/g,"");
                f2 = f2.value.replace(/[\$,]/g,"");

                if ((!isNaN(f1)) && (!isNaN(f2))) {
                        total = (f1-0) + (f2-0);
                        f7.value = total;
                }
        }

        f1 = doc.getElementById("CG78571");
        f2 = doc.getElementById("CG78570");
        f3 = doc.getElementById("CG78572");
        f4 = doc.getElementById("CG78574");
        f5 = doc.getElementById("CG78573");
        f6 = doc.getElementById("CG78569");
        f7 = doc.getElementById("CG43351");

        if ((f1) && (f2) && (f3) && (f4) && (f5) && (f6) && (f7)) {
                f1 = f1.value.replace(/[\$,]/g,"");
                f2 = f2.value.replace(/[\$,]/g,"");
                f3 = f3.value.replace(/[\$,]/g,"");
                f4 = f4.value.replace(/[\$,]/g,"");
                f5 = f5.value.replace(/[\$,]/g,"");
                f6 = f6.value.replace(/[\$,]/g,"");

                if ((!isNaN(f1)) && (!isNaN(f2)) && (!isNaN(f3)) && (!isNaN(f4)) && (!isNaN(f5)) && (!isNaN(f6))) {
                        total = (f1-0) + (f2-0) + (f3-0) + (f4-0) + (f5-0) + (f6-0);
                        f7.value = total;
                }
        }

        f1 = doc.getElementById("CG43352");
        f2 = doc.getElementById("CG43353");
        f7 = doc.getElementById("CG43354");

        if ((f1) && (f2)) {
                f1 = f1.value.replace(/[\$,]/g,"");
                f2 = f2.value.replace(/[\$,]/g,"");

                if ((!isNaN(f1)) && (!isNaN(f2))) {
                        total = (f1-0) + (f2-0);
                        f7.value = total;
                }
        }

        return true;
}
