Marketing Automation ROI Calculator
var co = new Object; function recalc_onclick(ctl) { if (true) {
co.p1D6=eeparseFloatTh(document.formc.p1D6.value);co.p1E6=eeparseFloatTh(document.formc.p1E6.value);co.p1D7=eeparsePercent(document.formc.p1D7.value);co.p1E7=eeparsePercent(document.formc.p1E7.value);co.p1D11=eeparseFloatV(document.formc.p1D11[document.formc.p1D11.selectedIndex].value);co.p1E11=eeparseFloatV(document.formc.p1E11[document.formc.p1E11.selectedIndex].value);co.p1F11=eeparseFloatV(document.formc.p1F11[document.formc.p1F11.selectedIndex].value);co.p1G11=eeparseFloatV(document.formc.p1G11[document.formc.p1G11.selectedIndex].value);co.p1H11=eeparseFloatV(document.formc.p1H11[document.formc.p1H11.selectedIndex].value);co.p1D12=eeparseFloatV(document.formc.p1D12[document.formc.p1D12.selectedIndex].value);co.p1E12=eeparseFloatV(document.formc.p1E12[document.formc.p1E12.selectedIndex].value);co.p1F12=eeparseFloatV(document.formc.p1F12[document.formc.p1F12.selectedIndex].value);co.p1G12=eeparseFloat(document.formc.p1G12.value);co.p1H12=eeparseFloatV(document.formc.p1H12[document.formc.p1H12.selectedIndex].value);co.p1D13=eeparseFloatV(document.formc.p1D13[document.formc.p1D13.selectedIndex].value);co.p1E13=eeparseFloatV(document.formc.p1E13[document.formc.p1E13.selectedIndex].value);co.p1F13=eeparseFloatV(document.formc.p1F13[document.formc.p1F13.selectedIndex].value);co.p1G13=eeparseFloatV(document.formc.p1G13[document.formc.p1G13.selectedIndex].value);co.p1H13=eeparseFloatV(document.formc.p1H13[document.formc.p1H13.selectedIndex].value);co.p1D14=eeparsePercent(document.formc.p1D14.value);co.p1E14=eeparsePercent(document.formc.p1E14.value);co.p1F14=eeparsePercent(document.formc.p1F14.value);co.p1G14=eeparsePercent(document.formc.p1G14.value);co.p1H14=eeparsePercent(document.formc.p1H14.value);co.p1D21=eeparseFloatTh(document.formc.p1D21.value);co.p1D22=eeparseFloatTh(document.formc.p1D22.value);co.p1D29=eeparseFloatThV(document.formc.p1D29.value);co.p1D30=eeparsePercentV(document.formc.p1D30[document.formc.p1D30.selectedIndex].value);co.p1D31=eeparseFloatTh(document.formc.p1D31.value);co.p1D32=eeparsePercentV(document.formc.p1D32[document.formc.p1D32.selectedIndex].value);co.p1D33=eeparsePercentV(document.formc.p1D33[document.formc.p1D33.selectedIndex].value);calc(co);document.formc.p1D19.value=eedatefmt(fmtdate5,co.p1D19);document.formc.p1D20.value=eedatefmt(fmtdate5,co.p1D20);document.formc.p1D23.value=eedatefmt(fmtdate5,co.p1D23);document.formc.p1D36.value=eeisnumber(co.p1D36)?eedatefmt(fmtdate5,co.p1D36):co.p1D36;document.formc.p1D37.value=eeisnumber(co.p1D37)?eedatefmt(fmtdate5,co.p1D37):co.p1D37;document.formc.p1D38.value=eeisnumber(co.p1D38)?eedisplayFloatNDTh(co.p1D38,0):co.p1D38;document.formc.p1D39.value=eeisnumber(co.p1D39)?eedatefmt(fmtdate5,co.p1D39):co.p1D39;document.formc.p1D40.value=eeisnumber(co.p1D40)?eedatefmt(fmtdate5,co.p1D40):co.p1D40;document.formc.p1D42.value=eeisnumber(co.p1D42)?eedatefmt(fmtdate5,co.p1D42):co.p1D42;document.formc.p1D50.value=eeisnumber(co.p1D50)?eedisplayFloatNDTh(co.p1D50,1):co.p1D50;document.formc.p1D51.value=eeisnumber(co.p1D51)?eedisplayPercentND(co.p1D51,1):co.p1D51;document.formc.p1D52.value=eeisnumber(co.p1D52)?eedatefmt(fmtdate5,co.p1D52):co.p1D52; };};
var eeisus=1;var eetrue="TRUE";var eefalse="FALSE";var eedec=".";var eeth=",";var eedecreg=new RegExp("[.]","g");var eethreg=new RegExp(",","g"); var fmtdaynamesshort=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat"); var fmtdaynameslong=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); var fmtmonthnamesshort=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); var fmtmonthnameslong=new Array("January","February","March","April","May","June","July","August","September","October","November","December"); var fmtstrings=new Array(","," ","$"); var fmtdate5=new Array(34,25,0);
var arr1xD16H16=new Array(1);for(var ii=0;ii<1;ii++){arr1xD16H16[ii]=new Array(5);for(var jj=0;jj<5;jj++){arr1xD16H16[ii][jj]=0}};var arr1xD17H17=new Array(1);for(var ii=0;ii<1;ii++){arr1xD17H17[ii]=new Array(5);for(var jj=0;jj<5;jj++){arr1xD17H17[ii][jj]=0}};var arr1xD19D22=new Array(4);for(var ii=0;ii<4;ii++){arr1xD19D22[ii]=new Array(1);for(var jj=0;jj<1;jj++){arr1xD19D22[ii][jj]=0}};var eecm4=new Array();var eecm3=new Array(new Array(arr1xD16H16,0,0,0,4));var eecm2=new Array(new Array(arr1xD17H17,0,0,0,4));var eecm1=new Array(new Array(arr1xD19D22,0,0,3,0));function calc(data){var c1D6=data.p1D6;var c1E6=data.p1E6;var c1D7=data.p1D7;var c1E7=data.p1E7;var c1D11=data.p1D11;var c1E11=data.p1E11;var c1F11=data.p1F11;var c1G11=data.p1G11;var c1H11=data.p1H11;var c1D12=data.p1D12;var c1E12=data.p1E12;var c1F12=data.p1F12;var c1G12=data.p1G12;var c1H12=data.p1H12;var c1D13=data.p1D13;var c1E13=data.p1E13;var c1F13=data.p1F13;var c1G13=data.p1G13;var c1H13=data.p1H13;var c1D14=data.p1D14;var c1E14=data.p1E14;var c1F14=data.p1F14;var c1G14=data.p1G14;var c1H14=data.p1H14;arr1xD19D22[2][0]=data.p1D21;arr1xD19D22[3][0]=data.p1D22;var c1D29=data.p1D29;var c1D30=data.p1D30;var c1D31=data.p1D31;var c1D32=data.p1D32;var c1D33=data.p1D33;arr1xD16H16[0][0]=(((((((((c1D6)*(v2n(c1D12))))+(((c1E6)*(v2n(c1D13))))))+(((((v2n(c1D12))*(c1D14)))*(c1D6)))))*(v2n(c1D11))));arr1xD16H16[0][1]=(((((((((c1D6)*(v2n(c1E12))))+(((c1E6)*(v2n(c1E13))))))+(((((v2n(c1E12))*(c1E14)))*(c1D6)))))*(v2n(c1E11))));arr1xD16H16[0][2]=(((((((((c1D6)*(v2n(c1F12))))+(((c1E6)*(v2n(c1F13))))))+(((((v2n(c1F12))*(c1F14)))*(c1D6)))))*(v2n(c1F11))));arr1xD16H16[0][3]=(((((((((c1D6)*(c1G12)))+(((c1E6)*(v2n(c1G13))))))+(((((c1G12)*(c1G14)))*(c1D6)))))*(v2n(c1G11))));arr1xD16H16[0][4]=(((((((((c1D6)*(v2n(c1H12))))+(((c1E6)*(v2n(c1H13))))))+(((((v2n(c1H12))*(c1H14)))*(c1D6)))))*(v2n(c1H11))));var tmp13=(((v2n(c1D12))*(((c1D6)*(c1D7)))));var tmp14=(((v2n(c1D13))*(((c1E6)*(c1E7)))));var sumcnt15_sum=0+tmp14+tmp13;var sumcnt15_cnt=2;arr1xD17H17[0][0]=(((sumgeneral(0,sumcnt15_sum,sumcnt15_cnt,eecm4))*(v2n(c1D11))));var tmp10=(((v2n(c1E12))*(((c1D6)*(c1D7)))));var tmp11=(((v2n(c1E13))*(((c1E6)*(c1E7)))));var sumcnt12_sum=0+tmp11+tmp10;var sumcnt12_cnt=2;arr1xD17H17[0][1]=(((sumgeneral(0,sumcnt12_sum,sumcnt12_cnt,eecm4))*(v2n(c1E11))));var tmp7=(((v2n(c1F12))*(((c1D6)*(c1D7)))));var tmp8=(((v2n(c1F13))*(((c1E6)*(c1E7)))));var sumcnt9_sum=0+tmp8+tmp7;var sumcnt9_cnt=2;arr1xD17H17[0][2]=(((sumgeneral(0,sumcnt9_sum,sumcnt9_cnt,eecm4))*(v2n(c1F11))));var tmp4=(((c1G12)*(((c1D6)*(c1D7)))));var tmp5=(((v2n(c1G13))*(((c1E6)*(c1E7)))));var sumcnt6_sum=0+tmp5+tmp4;var sumcnt6_cnt=2;arr1xD17H17[0][3]=(((sumgeneral(0,sumcnt6_sum,sumcnt6_cnt,eecm4))*(v2n(c1G11))));var tmp1=(((v2n(c1H12))*(((c1D6)*(c1D7)))));var tmp2=(((v2n(c1H13))*(((c1E6)*(c1E7)))));var sumcnt3_sum=0+tmp2+tmp1;var sumcnt3_cnt=2;arr1xD17H17[0][4]=(((sumgeneral(0,sumcnt3_sum,sumcnt3_cnt,eecm4))*(v2n(c1H11))));var c1D36=(((var_ne((c1D29),(0)))?(((c1D31)/(v2n(c1D29)))):("")));var c1D37=(((var_ne((c1D32),(0)))?(((v2n(c1D36))/(v2n(c1D32)))):("")));var c1D38=(((var_ne((c1D29),("")))?(((v2n(c1D29))*(v2n(c1D30)))):("")));arr1xD19D22[0][0]=(sumgeneral(5,0,0,eecm3));arr1xD19D22[1][0]=(sumgeneral(5,0,0,eecm2));var c1D23=(sumgeneral(4,0,0,eecm1));var c1D39=(((var_ne((c1D38),("")))?(((((v2n(c1D37))-(v2n(c1D36))))*(v2n(c1D38)))):("")));var c1D40=(((var_ne((c1D33),("")))?(((v2n(c1D39))*(v2n(c1D33)))):("")));var c1D42=(c1D40);var c1D50=(((((c1D23)!=(0)))?(((v2n(c1D42))/(c1D23))):("")));var c1D51=(((((c1D23)!=(0)))?(((((v2n(c1D42))-(c1D23)))/(c1D23))):("")));var c1D52=(((((c1D23)!=(0)))?(((v2n(c1D42))-(c1D23))):("")));data.p1D19=arr1xD19D22[0][0];data.p1D20=arr1xD19D22[1][0];data.p1D23=c1D23;data.p1D36=c1D36;data.p1D37=c1D37;data.p1D38=c1D38;data.p1D39=c1D39;data.p1D40=c1D40;data.p1D42=c1D42;data.p1D50=c1D50;data.p1D51=c1D51;data.p1D52=c1D52;};
function str_ne(x,y){return(x.toLowerCase()!=y.toLowerCase())};function var_ne(x,y){var xt=mytypeof(x);var yt=mytypeof(y);if(xt!=yt)return true;switch(xt){case 1:case 3:return(x!=y);case 2:return str_ne(x,y);default:return true}};function mytypeof(v){switch(typeof v){case "number":if(myIsNaN(v))return 4;return 1;case "string":return 2;case "boolean":return 3;case "object":if(v.constructor==Number){if(myIsNaN(v))return 4;return 1;};if(v.constructor==String){return 2;};if(v.constructor==Boolean){return 3;};return 4;default:return 4;}};function myIsNaN(x){return(isNaN(x)||(typeof x=='number'&&!isFinite(x)));};function mod(n,d){return n-d*Math.floor(n/d);};function round(n,nd){if(isFinite(n)&&isFinite(nd)){var sign_n=(n<0)?-1:1;var abs_n=Math.abs(n);var factor=Math.pow(10,nd);return sign_n*Math.round(abs_n*factor)/factor;}else{return NaN;}};function sum2(arr,rt,rb){var sum=0;for(var ii=rt;ii<=rb;ii++){sum+=arr[ii]};return sum};function sum3(arr,rt,ct,rb,cb){var sum=0;for(var ii=rt;ii<=rb;ii++){for(var jj=ct;jj<=cb;jj++){sum+=arr[ii][jj]}};return sum};function sumgeneral(cnt,vsum,vcnt,x){var sum=vsum;for(var ii=0;ii