function CalculaImpuesto(m,f,c,o,l,k,j,b,p,n,h,e){Impuestos=new Array(3);var i=0;var g=0;var d=0;try{i=m*(l/100);if(b==1){i=o*(l/100)}if(p==1){i=RedondearDecimales(i,3)}if(n==1){g=f*(1+(l/100))*(k/100)}else{g=f*(k/100)}if(p==1){g=RedondearDecimales(g,3)}if(h==0&&e==0){d=c*(j/100)}if(h==0&&e==1){d=c*(1+(k/100))*(j/100)}if(h==1&&e==0){d=c*(1+(l/100))*(j/100)}if(h==1&&e==1){d=c*(1+(l/100))*(1+(k/100))*(j/100)}if(p==1){d=RedondearDecimales(d,3)}}catch(a){txt="There was an error on this page.\n\n";txt+="Error description: "+a.description+"\n\n";txt+="Click OK to continue.\n\n";alert(txt)}Impuestos[0]=i;Impuestos[1]=g;Impuestos[2]=d;return Impuestos};