function acaPartnershipRevenue(thisForm)
	    {
	        var acaRMR = 0;
	        var acaMultiple = 0;
	        var acaHoldback = 0;
	        var acaCashClosing = 0;
	        var acaServicePerHour = 0;
	        var acaAvgCustomerRMR = 0;
	        var acaServiceRev = 0;
	        var acaReferralRev = 10000.00;
	        var acaHoldbackPaid = 0;
	        var acaTotal = 0;
	        
	        var otherRMR = 0;
	        var otherMultiple = 0;
	        var otherHoldback = 0;
	        var otherCashClosing = 0;
	        var otherServicePerHour = 0;
	        var otherAvgCustomerRMR = 0;
	        var otherServiceRev = 0;
	        var otherReferralRev = 0;
	        var otherHoldbackPaid = 0;
	        var other12MonthTotal = 0;
	        
	        var otherAndACADifference = 0;
	        var differenceMult = 0;
	        
	        var approxAnnualRev = 192000.00;
	        var acaDealerDifference = 0;
			var monthlyRMRSales = 0;
	        
	        
	        acaRMR = checkForZero(thisForm.acaRMR_txt);
	        acaMultiple = checkForZero(thisForm.acaMult_txt);
	        acaHoldback = checkForZero(thisForm.acaHoldback_txt);
	        acaCashClosing = cashAtClosing(acaRMR, acaMultiple, acaHoldback);
			monthlyRMRSales = checkForZero(thisForm.monthlyRMRSales_txt);
	        document.getElementById("acaCashClose").innerHTML = acaCashClosing.numberFormat("0,000.00");
	        
	        otherRMR = checkForZero(thisForm.otherRMR_txt);
	        otherMultiple = checkForZero(thisForm.otherMult_txt);
	        otherHoldback = checkForZero(thisForm.otherHoldback_txt);
	        otherCashClosing = cashAtClosing(otherRMR, otherMultiple, otherHoldback);
	        document.getElementById("otherCashClose").innerHTML = otherCashClosing.numberFormat("0,000.00");
	        
	        acaAvgCustomerRMR = checkForZero(thisForm.acaAverageRMR_txt);
	        acaServicePerHour = checkForZero(thisForm.acaServicePerHr_txt);
	        acaServiceRev = serviceRevenue(acaRMR, acaAvgCustomerRMR, acaServicePerHour);
	        document.getElementById("acaServiceRev").innerHTML = acaServiceRev.numberFormat("0,000.00");
	        
	        acaHoldbackPaid = holdbackPaid(acaRMR, acaMultiple, acaHoldback);
	        document.getElementById("acaHoldbackPaid").innerHTML = acaHoldbackPaid.numberFormat("0,000.00");
	        
	        acaTotal = total12Month(acaHoldbackPaid, acaReferralRev, acaServiceRev, acaCashClosing);
	        document.getElementById("aca12MonthTotal").innerHTML = acaTotal.numberFormat("0,000.00");
	        
	        
	        other12MonthTotal = otherHoldbackPaid + otherReferralRev + otherServiceRev + otherCashClosing;
	        otherAndACADifference = acaTotal - other12MonthTotal;
	        differenceMult = otherAndACADifference/acaRMR;
	        acaDealerDifference = (approxAnnualRev+acaTotal)-other12MonthTotal;
	        
			approxAnnualRev = getapproxAnnualRev(monthlyRMRSales);
			
	        document.getElementById("other12MonthTotal").innerHTML = other12MonthTotal.numberFormat("0,000.00");
	        document.getElementById("acaDifference").innerHTML = otherAndACADifference.numberFormat("0,000.00");
	        
	        document.getElementById("acaReferralRev").innerHTML = acaReferralRev.numberFormat("0,000.00");
	        document.getElementById("approxAnnualRev").innerHTML = approxAnnualRev.numberFormat("0,000.00");
	        
	        document.getElementById("otherServiceRev").innerHTML = otherServiceRev.numberFormat("0,000.00");
	        document.getElementById("otherReferralRev").innerHTML = otherReferralRev.numberFormat("0,000.00");
	        document.getElementById("otherHoldbackPaid").innerHTML = otherHoldbackPaid.numberFormat("0,000.00");
	        
	        document.getElementById("acaDifferenceMult").innerHTML = differenceMult.numberFormat("<00.00x>");
	        document.getElementById("acaDealerDifference").innerHTML = acaDealerDifference.numberFormat("0,000.00");
	    }
		
		function calculateAnnRev(thisForm)
		{
			var approxAnnualRev = 0;
			var monthlyRMRSales = 0;
			monthlyRMRSales = checkForZero(thisForm.monthlyRMRSales_txt);
			
			approxAnnualRev = getapproxAnnualRev(monthlyRMRSales);
			
			document.getElementById("approxAnnualRev").innerHTML = approxAnnualRev.numberFormat("0,000.00");
		}//end of calculateAnnRev function
		
	    function checkForZero(field) {
            if (field.value == 0 || field.value.length == 0) { 
                field.value = 0;
                return 0;
            }
            else
	            //calculatePayment(field.form);
	            return field.value;
        }
        function cashAtClosing(inRMR, inMultiple, inHoldback)
        {
            return (inRMR * inMultiple)-((inRMR * inMultiple)*(inHoldback/100));
        }//end of cashAtClosing function
        
        function serviceRevenue(inRMR, inAvgCustomerRMR, inServicePerHour)
        {
            return ((inRMR/inAvgCustomerRMR)*0.5)*(1.5*inServicePerHour);
        }
        function holdbackPaid(inRMR, inMultiple, inHoldback)
        {
            return ((inRMR*inMultiple)*(inHoldback/100));
        }
        function total12Month(inHoldbackPaid, inReferralRev, inServiceRev, inCashClosing)
        {
            return (inHoldbackPaid + inReferralRev + inServiceRev + inCashClosing);
        }
        function difference(inACATotal, inOtherTotal)
        {
            return inACATotal - inOtherTotal;
        }
        function differenceACATime(inDifference, inACARMA)
        {
            return inDifference/inACARMA;
        }
        function dealerDifference(inApproxAnnual, inACATotal12Month, inOtherTotal12Month)
        {
            return (inApproxAnnual + inACATotal12Month) - inOtherTotal12Month;
        }
		function getapproxAnnualRev(inMonthlyRMRSales)
		{
			return (inMonthlyRMRSales * 12) * 32;
		}