function calc() { var surf=document.f.surface.value; document.f.cubage.value=surf*0.5; } function vol() { var c1 = document.getElementById('c1').options[document.getElementById('c1').selectedIndex].value*0.2; var c2 = document.getElementById('c2').options[document.getElementById('c2').selectedIndex].value*0.1; var c3 = document.getElementById('c3').options[document.getElementById('c3').selectedIndex].value*0.7; var c4 = document.getElementById('c4').options[document.getElementById('c4').selectedIndex].value*0.18; var c5 = document.getElementById('c5').options[document.getElementById('c5').selectedIndex].value*0.7; var c6 = document.getElementById('c6').options[document.getElementById('c6').selectedIndex].value*2; var c7 = document.getElementById('c7').options[document.getElementById('c7').selectedIndex].value*0.8; var c8 = document.getElementById('c8').options[document.getElementById('c8').selectedIndex].value*0.3; var c9 = document.getElementById('c9').options[document.getElementById('c9').selectedIndex].value*0.9; var c10 = document.getElementById('c10').options[document.getElementById('c10').selectedIndex].value*0.18; var c11 = document.getElementById('c11').options[document.getElementById('c11').selectedIndex].value*2.0; var c12 = document.getElementById('c12').options[document.getElementById('c12').selectedIndex].value*0.2; var c13 = document.getElementById('c13').options[document.getElementById('c13').selectedIndex].value*1.0; var c14 = document.getElementById('c14').options[document.getElementById('c14').selectedIndex].value*0.04; var c15 = document.getElementById('c15').options[document.getElementById('c15').selectedIndex].value*0.05; var c16 = document.getElementById('c16').options[document.getElementById('c16').selectedIndex].value*2.0; var c17 = document.getElementById('c17').options[document.getElementById('c17').selectedIndex].value*2.5; var c18 = document.getElementById('c18').options[document.getElementById('c18').selectedIndex].value*0.8; var c19 = document.getElementById('c19').options[document.getElementById('c19').selectedIndex].value*1.5; var c20 = document.getElementById('c20').options[document.getElementById('c20').selectedIndex].value*0.3; var c21 = document.getElementById('c21').options[document.getElementById('c21').selectedIndex].value*0.08; var c22 = document.getElementById('c22').options[document.getElementById('c22').selectedIndex].value*0.1; var c23 = document.getElementById('c23').options[document.getElementById('c23').selectedIndex].value*0.05; var c24 = document.getElementById('c24').options[document.getElementById('c24').selectedIndex].value*0.7; var c25 = document.getElementById('c25').options[document.getElementById('c25').selectedIndex].value*1.5; var c26 = document.getElementById('c26').options[document.getElementById('c26').selectedIndex].value*0.05; var c27 = document.getElementById('c27').options[document.getElementById('c27').selectedIndex].value*2.0; var c28 = document.getElementById('c28').options[document.getElementById('c28').selectedIndex].value*0.05; var c29 = document.getElementById('c29').options[document.getElementById('c29').selectedIndex].value*1.45; var c30 = document.getElementById('c30').options[document.getElementById('c30').selectedIndex].value*2; var c31 = document.getElementById('c31').options[document.getElementById('c31').selectedIndex].value*0.1; var c32 = document.getElementById('c32').options[document.getElementById('c32').selectedIndex].value*0.6; var c33 = document.getElementById('c33').options[document.getElementById('c33').selectedIndex].value*0.6; var c34 = document.getElementById('c34').options[document.getElementById('c34').selectedIndex].value*0.3; var c35 = document.getElementById('c35').options[document.getElementById('c35').selectedIndex].value*0.3; var c36 = document.getElementById('c36').options[document.getElementById('c36').selectedIndex].value*0.2; var c37 = document.getElementById('c37').options[document.getElementById('c37').selectedIndex].value*0.1; var c38 = document.getElementById('c38').options[document.getElementById('c38').selectedIndex].value*0.3; var c39 = document.getElementById('c39').options[document.getElementById('c39').selectedIndex].value*0.3; var c40 = document.getElementById('c40').options[document.getElementById('c40').selectedIndex].value*0.3; var c41 = document.getElementById('c41').options[document.getElementById('c41').selectedIndex].value*0.15; var c42 = document.getElementById('c42').options[document.getElementById('c42').selectedIndex].value*1; var c43 = document.getElementById('c43').options[document.getElementById('c43').selectedIndex].value*0.2; var c44 = document.getElementById('c44').options[document.getElementById('c44').selectedIndex].value*2.5; var c45 = document.getElementById('c45').options[document.getElementById('c45').selectedIndex].value*1.45; var c46 = document.getElementById('c46').options[document.getElementById('c46').selectedIndex].value*0.5; var c47 = document.getElementById('c47').options[document.getElementById('c47').selectedIndex].value*0.3; var c48 = document.getElementById('c48').options[document.getElementById('c48').selectedIndex].value*0.3; var c49 = document.getElementById('c49').options[document.getElementById('c49').selectedIndex].value*0.2; var c51 = document.getElementById('c51').options[document.getElementById('c51').selectedIndex].value*0.75; var c52 = document.getElementById('c52').options[document.getElementById('c52').selectedIndex].value*1.25; var c53 = document.getElementById('c53').options[document.getElementById('c53').selectedIndex].value*0.7; var c54 = document.getElementById('c54').options[document.getElementById('c54').selectedIndex].value*1; var c55 = document.getElementById('c55').options[document.getElementById('c55').selectedIndex].value*1.45; var c56 = document.getElementById('c56').options[document.getElementById('c56').selectedIndex].value*2; var c57 = document.getElementById('c57').options[document.getElementById('c57').selectedIndex].value*0.2; var c58 = document.getElementById('c58').options[document.getElementById('c58').selectedIndex].value*0.05; var c59 = document.getElementById('c59').options[document.getElementById('c59').selectedIndex].value*0.05; var c60 = document.getElementById('c60').options[document.getElementById('c60').selectedIndex].value*0.6; var c61 = document.getElementById('c61').options[document.getElementById('c61').selectedIndex].value*1.5; var c62 = document.getElementById('c62').options[document.getElementById('c62').selectedIndex].value*0.2; var c63 = document.getElementById('c63').options[document.getElementById('c63').selectedIndex].value*0.1; var c64 = document.getElementById('c64').options[document.getElementById('c64').selectedIndex].value*1.1; var c65 = document.getElementById('c65').options[document.getElementById('c65').selectedIndex].value*0.2; var c66 = document.getElementById('c66').options[document.getElementById('c66').selectedIndex].value*0.05; var c67 = document.getElementById('c67').options[document.getElementById('c67').selectedIndex].value*0.1; var c68 = document.getElementById('c68').options[document.getElementById('c68').selectedIndex].value*0.05; var c69 = document.getElementById('c69').options[document.getElementById('c69').selectedIndex].value*0.5; var c70 = document.getElementById('c70').options[document.getElementById('c70').selectedIndex].value*0.2; var c71 = document.getElementById('c71').options[document.getElementById('c71').selectedIndex].value*0.2; var c72 = document.getElementById('c72').options[document.getElementById('c72').selectedIndex].value*1.5; var c73 = document.getElementById('c73').options[document.getElementById('c73').selectedIndex].value*1.2; var c74 = document.getElementById('c74').options[document.getElementById('c74').selectedIndex].value*0.3; var c75 = document.getElementById('c75').options[document.getElementById('c75').selectedIndex].value*2.5; var c76 = document.getElementById('c76').options[document.getElementById('c76').selectedIndex].value*1; var c77 = document.getElementById('c77').options[document.getElementById('c77').selectedIndex].value*0.7; var c78 = document.getElementById('c78').options[document.getElementById('c78').selectedIndex].value*0.5; var c79 = document.getElementById('c79').options[document.getElementById('c79').selectedIndex].value*4; var c80 = document.getElementById('c80').options[document.getElementById('c80').selectedIndex].value*1.5; var c81 = document.getElementById('c81').options[document.getElementById('c81').selectedIndex].value*2.5; var c82 = document.getElementById('c82').options[document.getElementById('c82').selectedIndex].value*0.5; var c83 = document.getElementById('c83').options[document.getElementById('c83').selectedIndex].value*3; var c84 = document.getElementById('c84').options[document.getElementById('c84').selectedIndex].value*1.7; var c85 = document.getElementById('c85').options[document.getElementById('c85').selectedIndex].value*2; var c86 = document.getElementById('c86').options[document.getElementById('c86').selectedIndex].value*2; var volume=c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12+c13+c14+c15+c16+c17+c18+c19+c20+c21+c22+c23+c24+c25+c26+c27+c28+c29+c30+c31+c32+c33+c34+c35+c36+c37+c38+c39+c40+c41+c42+c43+c44+c45+c46+c47+c48+c49+c51+c52+c53+c54+c55+c56+c57+c58+c59+c60+c61+c62+c63+c64+c65+c66+c67+c68+c69+c70+c71+c72+c73+c74+c75+c76+c77+c78+c79+c80+c81+c82+c83+c84+c85+c86; var cube=Math.round(volume*100)/100; //if (confirm("volume calculé = "+cube+" m3\n Voulez-vous utiliser ce volume ?")) { // Clic sur OK if (confirm("volume calculé = "+cube+" m3")) { // Clic sur OK /* document.bgColor="red"; window.opener.majcube(cube); window.close(); */ } }