function get_temps(dz,ss,mz,group_id) { ss = ss/1000; has_temp = 0; all_tempdays = 0; all_temp_prices = 0; all_weekdayzz=0; weekdayzz = 0; if (73 == group_id) { overlap_zz1(ss,dz,1543964400,1544310000) if (hold_zz > 0 ) { weekday_zz1(1543964400,hold_zz) //TEMP ID IS 301 all_weekdayzz = (all_weekdayzz + weekdayzz); has_temp = has_temp + 1; all_tempdays = (all_tempdays + hold_zz); myprice = get_temp_price128(hold_zz,mz) all_temp_prices = all_temp_prices + myprice; } } if (73 == group_id) { overlap_zz1(ss,dz,1572476400,1572562800) if (hold_zz > 0 ) { weekday_zz1(1572476400,hold_zz) //TEMP ID IS 23 all_weekdayzz = (all_weekdayzz + weekdayzz); has_temp = has_temp + 1; all_tempdays = (all_tempdays + hold_zz); myprice = get_temp_price128(hold_zz,mz) all_temp_prices = all_temp_prices + myprice; } } if (73 == group_id) { overlap_zz1(ss,dz,1570831200,1571090400) if (hold_zz > 0 ) { weekday_zz1(1570831200,hold_zz) //TEMP ID IS 22 all_weekdayzz = (all_weekdayzz + weekdayzz); has_temp = has_temp + 1; all_tempdays = (all_tempdays + hold_zz); myprice = get_temp_price128(hold_zz,mz) all_temp_prices = all_temp_prices + myprice; } } if (73 == group_id) { overlap_zz1(ss,dz,1577574000,1578351600) if (hold_zz > 0 ) { weekday_zz1(1577574000,hold_zz) //TEMP ID IS 196 all_weekdayzz = (all_weekdayzz + weekdayzz); has_temp = has_temp + 1; all_tempdays = (all_tempdays + hold_zz); myprice = get_temp_price128(hold_zz,mz) all_temp_prices = all_temp_prices + myprice; } } if (73 == group_id) { overlap_zz1(ss,dz,1524780000,1525212000) if (hold_zz > 0 ) { weekday_zz1(1524780000,hold_zz) //TEMP ID IS 32 all_weekdayzz = (all_weekdayzz + weekdayzz); has_temp = has_temp + 1; all_tempdays = (all_tempdays + hold_zz); myprice = get_temp_price128(hold_zz,mz) all_temp_prices = all_temp_prices + myprice; } } if (73 == group_id) { overlap_zz1(ss,dz,1545519600,1545778800) if (hold_zz > 0 ) { weekday_zz1(1545519600,hold_zz) //TEMP ID IS 74 all_weekdayzz = (all_weekdayzz + weekdayzz); has_temp = has_temp + 1; all_tempdays = (all_tempdays + hold_zz); myprice = get_temp_price128(hold_zz,mz) all_temp_prices = all_temp_prices + myprice; } } if (73 == group_id) { overlap_zz1(ss,dz,1546124400,1546729200) if (hold_zz > 0 ) { weekday_zz1(1546124400,hold_zz) //TEMP ID IS 92 all_weekdayzz = (all_weekdayzz + weekdayzz); has_temp = has_temp + 1; all_tempdays = (all_tempdays + hold_zz); myprice = get_temp_price128(hold_zz,mz) all_temp_prices = all_temp_prices + myprice; } } if (73 == group_id) { overlap_zz1(ss,dz,1575500400,1575932400) if (hold_zz > 0 ) { weekday_zz1(1575500400,hold_zz) //TEMP ID IS 35 all_weekdayzz = (all_weekdayzz + weekdayzz); has_temp = has_temp + 1; all_tempdays = (all_tempdays + hold_zz); myprice = get_temp_price128(hold_zz,mz) all_temp_prices = all_temp_prices + myprice; } } if (73 == group_id) { overlap_zz1(ss,dz,1540940400,1541286000) if (hold_zz > 0 ) { weekday_zz1(1540940400,hold_zz) //TEMP ID IS 34 all_weekdayzz = (all_weekdayzz + weekdayzz); has_temp = has_temp + 1; all_tempdays = (all_tempdays + hold_zz); myprice = get_temp_price128(hold_zz,mz) all_temp_prices = all_temp_prices + myprice; } } if (73 == group_id) { overlap_zz1(ss,dz,1576969200,1577314800) if (hold_zz > 0 ) { weekday_zz1(1576969200,hold_zz) //TEMP ID IS 36 all_weekdayzz = (all_weekdayzz + weekdayzz); has_temp = has_temp + 1; all_tempdays = (all_tempdays + hold_zz); myprice = get_temp_price128(hold_zz,mz) all_temp_prices = all_temp_prices + myprice; } } if (73 == group_id) { overlap_zz1(ss,dz,1521759600,1522533600) if (hold_zz > 0 ) { weekday_zz1(1521759600,hold_zz) //TEMP ID IS 31 all_weekdayzz = (all_weekdayzz + weekdayzz); has_temp = has_temp + 1; all_tempdays = (all_tempdays + hold_zz); myprice = get_temp_price128(hold_zz,mz) all_temp_prices = all_temp_prices + myprice; } } if (73 == group_id) { overlap_zz1(ss,dz,1519340400,1520118000) if (hold_zz > 0 ) { weekday_zz1(1519340400,hold_zz) //TEMP ID IS 27 all_weekdayzz = (all_weekdayzz + weekdayzz); has_temp = has_temp + 1; all_tempdays = (all_tempdays + hold_zz); myprice = get_temp_price128(hold_zz,mz) all_temp_prices = all_temp_prices + myprice; } } if (73 == group_id) { overlap_zz1(ss,dz,1539208800,1539554400) if (hold_zz > 0 ) { weekday_zz1(1539208800,hold_zz) //TEMP ID IS 200 all_weekdayzz = (all_weekdayzz + weekdayzz); has_temp = has_temp + 1; all_tempdays = (all_tempdays + hold_zz); myprice = get_temp_price128(hold_zz,mz) all_temp_prices = all_temp_prices + myprice; } } return [has_temp,all_tempdays,all_temp_prices,all_weekdayzz]; function overlap_zz1(ss,dz,hsdate,hedate) { //window.alert(+ss+'ss'+dz+'ss'+hsdate+'ss'+hedate) durms = dz*86400; se = ss + durms; hs = hsdate; he = hedate; //holiday end is midnight of last holiday day, i.e. beginning of next day; so, add a day //he = he + 86400; holms = 0; if (ss < hs && se > hs && se < he ) {holms = se - hs ;} if (ss > hs && se > he && ss < he ) {holms = he - ss ;} if (ss >= hs && se <= he ) {holms = durms ;} if (ss <= hs && se >= he ) {holms = he - hs ;} //hold is holidaydays hold_zz = 0; hold_zz = Math.round(holms/86400); return hold_zz } function weekday_zz1(ss,dz) { //FIND OUT HOW MANY WEEK DAYS THERE ARE weekendddzz = 0 weekdayzz = 0 sx = ss for (i = 1; i <= dz; i++) { dayuvweak = new Date (sx); dayuvweak = dayuvweak.getDay() if (dayuvweak < 5) { weekdayzz++ } else { weekendddzz++ } sx = (sx + 86400000) } //END FIND OUT HOW MANY WEEK DAYS THERE ARE return weekdayzz } } function get_temp_price128(dz,mz){ prix = 0 if (dz == 1 && mz == 1) {prix = 170}if (dz == 2 && mz == 1) {prix = 340}if (dz == 3 && mz == 1) {prix = 510}if (dz == 4 && mz == 1) {prix = 680}if (dz == 5 && mz == 1) {prix = 850}if (dz == 6 && mz == 1) {prix = 1020}if (dz >= 7 && mz == 1) {prix = 170 * dz}if (dz >= 14 && mz == 1) {prix = 170 * dz}if (dz >= 21 && mz == 1) {prix = 170 * dz}if (dz >= 28 && mz == 1) {prix = 170 * dz}if (dz == 1 && mz == 2) {prix = 170}if (dz == 2 && mz == 2) {prix = 340}if (dz == 3 && mz == 2) {prix = 510}if (dz == 4 && mz == 2) {prix = 680}if (dz == 5 && mz == 2) {prix = 850}if (dz == 6 && mz == 2) {prix = 1020}if (dz >= 7 && mz == 2) {prix = 170 * dz}if (dz >= 14 && mz == 2) {prix = 170 * dz}if (dz >= 21 && mz == 2) {prix = 170 * dz}if (dz >= 28 && mz == 2) {prix = 170 * dz}if (dz == 1 && mz == 3) {prix = 170}if (dz == 2 && mz == 3) {prix = 340}if (dz == 3 && mz == 3) {prix = 510}if (dz == 4 && mz == 3) {prix = 680}if (dz == 5 && mz == 3) {prix = 850}if (dz == 6 && mz == 3) {prix = 1020}if (dz >= 7 && mz == 3) {prix = 170 * dz}if (dz >= 14 && mz == 3) {prix = 170 * dz}if (dz >= 21 && mz == 3) {prix = 170 * dz}if (dz >= 28 && mz == 3) {prix = 170 * dz}if (dz == 1 && mz == 4) {prix = 170}if (dz == 2 && mz == 4) {prix = 340}if (dz == 3 && mz == 4) {prix = 510}if (dz == 4 && mz == 4) {prix = 680}if (dz == 5 && mz == 4) {prix = 850}if (dz == 6 && mz == 4) {prix = 1020}if (dz >= 7 && mz == 4) {prix = 170 * dz}if (dz >= 14 && mz == 4) {prix = 170 * dz}if (dz >= 21 && mz == 4) {prix = 170 * dz}if (dz >= 28 && mz == 4) {prix = 170 * dz}if (dz == 1 && mz == 5) {prix = 170}if (dz == 2 && mz == 5) {prix = 340}if (dz == 3 && mz == 5) {prix = 510}if (dz == 4 && mz == 5) {prix = 680}if (dz == 5 && mz == 5) {prix = 850}if (dz == 6 && mz == 5) {prix = 1020}if (dz >= 7 && mz == 5) {prix = 170 * dz}if (dz >= 14 && mz == 5) {prix = 170 * dz}if (dz >= 21 && mz == 5) {prix = 170 * dz}if (dz >= 28 && mz == 5) {prix = 170 * dz} return prix }function get_temp_price128(dz,mz){ prix = 0 if (dz == 1 && mz == 1) {prix = 170}if (dz == 2 && mz == 1) {prix = 340}if (dz == 3 && mz == 1) {prix = 510}if (dz == 4 && mz == 1) {prix = 680}if (dz == 5 && mz == 1) {prix = 850}if (dz == 6 && mz == 1) {prix = 1020}if (dz >= 7 && mz == 1) {prix = 170 * dz}if (dz >= 14 && mz == 1) {prix = 170 * dz}if (dz >= 21 && mz == 1) {prix = 170 * dz}if (dz >= 28 && mz == 1) {prix = 170 * dz}if (dz == 1 && mz == 2) {prix = 170}if (dz == 2 && mz == 2) {prix = 340}if (dz == 3 && mz == 2) {prix = 510}if (dz == 4 && mz == 2) {prix = 680}if (dz == 5 && mz == 2) {prix = 850}if (dz == 6 && mz == 2) {prix = 1020}if (dz >= 7 && mz == 2) {prix = 170 * dz}if (dz >= 14 && mz == 2) {prix = 170 * dz}if (dz >= 21 && mz == 2) {prix = 170 * dz}if (dz >= 28 && mz == 2) {prix = 170 * dz}if (dz == 1 && mz == 3) {prix = 170}if (dz == 2 && mz == 3) {prix = 340}if (dz == 3 && mz == 3) {prix = 510}if (dz == 4 && mz == 3) {prix = 680}if (dz == 5 && mz == 3) {prix = 850}if (dz == 6 && mz == 3) {prix = 1020}if (dz >= 7 && mz == 3) {prix = 170 * dz}if (dz >= 14 && mz == 3) {prix = 170 * dz}if (dz >= 21 && mz == 3) {prix = 170 * dz}if (dz >= 28 && mz == 3) {prix = 170 * dz}if (dz == 1 && mz == 4) {prix = 170}if (dz == 2 && mz == 4) {prix = 340}if (dz == 3 && mz == 4) {prix = 510}if (dz == 4 && mz == 4) {prix = 680}if (dz == 5 && mz == 4) {prix = 850}if (dz == 6 && mz == 4) {prix = 1020}if (dz >= 7 && mz == 4) {prix = 170 * dz}if (dz >= 14 && mz == 4) {prix = 170 * dz}if (dz >= 21 && mz == 4) {prix = 170 * dz}if (dz >= 28 && mz == 4) {prix = 170 * dz}if (dz == 1 && mz == 5) {prix = 170}if (dz == 2 && mz == 5) {prix = 340}if (dz == 3 && mz == 5) {prix = 510}if (dz == 4 && mz == 5) {prix = 680}if (dz == 5 && mz == 5) {prix = 850}if (dz == 6 && mz == 5) {prix = 1020}if (dz >= 7 && mz == 5) {prix = 170 * dz}if (dz >= 14 && mz == 5) {prix = 170 * dz}if (dz >= 21 && mz == 5) {prix = 170 * dz}if (dz >= 28 && mz == 5) {prix = 170 * dz} return prix }function get_temp_price128(dz,mz){ prix = 0 if (dz == 1 && mz == 1) {prix = 170}if (dz == 2 && mz == 1) {prix = 340}if (dz == 3 && mz == 1) {prix = 510}if (dz == 4 && mz == 1) {prix = 680}if (dz == 5 && mz == 1) {prix = 850}if (dz == 6 && mz == 1) {prix = 1020}if (dz >= 7 && mz == 1) {prix = 170 * dz}if (dz >= 14 && mz == 1) {prix = 170 * dz}if (dz >= 21 && mz == 1) {prix = 170 * dz}if (dz >= 28 && mz == 1) {prix = 170 * dz}if (dz == 1 && mz == 2) {prix = 170}if (dz == 2 && mz == 2) {prix = 340}if (dz == 3 && mz == 2) {prix = 510}if (dz == 4 && mz == 2) {prix = 680}if (dz == 5 && mz == 2) {prix = 850}if (dz == 6 && mz == 2) {prix = 1020}if (dz >= 7 && mz == 2) {prix = 170 * dz}if (dz >= 14 && mz == 2) {prix = 170 * dz}if (dz >= 21 && mz == 2) {prix = 170 * dz}if (dz >= 28 && mz == 2) {prix = 170 * dz}if (dz == 1 && mz == 3) {prix = 170}if (dz == 2 && mz == 3) {prix = 340}if (dz == 3 && mz == 3) {prix = 510}if (dz == 4 && mz == 3) {prix = 680}if (dz == 5 && mz == 3) {prix = 850}if (dz == 6 && mz == 3) {prix = 1020}if (dz >= 7 && mz == 3) {prix = 170 * dz}if (dz >= 14 && mz == 3) {prix = 170 * dz}if (dz >= 21 && mz == 3) {prix = 170 * dz}if (dz >= 28 && mz == 3) {prix = 170 * dz}if (dz == 1 && mz == 4) {prix = 170}if (dz == 2 && mz == 4) {prix = 340}if (dz == 3 && mz == 4) {prix = 510}if (dz == 4 && mz == 4) {prix = 680}if (dz == 5 && mz == 4) {prix = 850}if (dz == 6 && mz == 4) {prix = 1020}if (dz >= 7 && mz == 4) {prix = 170 * dz}if (dz >= 14 && mz == 4) {prix = 170 * dz}if (dz >= 21 && mz == 4) {prix = 170 * dz}if (dz >= 28 && mz == 4) {prix = 170 * dz}if (dz == 1 && mz == 5) {prix = 170}if (dz == 2 && mz == 5) {prix = 340}if (dz == 3 && mz == 5) {prix = 510}if (dz == 4 && mz == 5) {prix = 680}if (dz == 5 && mz == 5) {prix = 850}if (dz == 6 && mz == 5) {prix = 1020}if (dz >= 7 && mz == 5) {prix = 170 * dz}if (dz >= 14 && mz == 5) {prix = 170 * dz}if (dz >= 21 && mz == 5) {prix = 170 * dz}if (dz >= 28 && mz == 5) {prix = 170 * dz} return prix }function get_temp_price128(dz,mz){ prix = 0 if (dz == 1 && mz == 1) {prix = 170}if (dz == 2 && mz == 1) {prix = 340}if (dz == 3 && mz == 1) {prix = 510}if (dz == 4 && mz == 1) {prix = 680}if (dz == 5 && mz == 1) {prix = 850}if (dz == 6 && mz == 1) {prix = 1020}if (dz >= 7 && mz == 1) {prix = 170 * dz}if (dz >= 14 && mz == 1) {prix = 170 * dz}if (dz >= 21 && mz == 1) {prix = 170 * dz}if (dz >= 28 && mz == 1) {prix = 170 * dz}if (dz == 1 && mz == 2) {prix = 170}if (dz == 2 && mz == 2) {prix = 340}if (dz == 3 && mz == 2) {prix = 510}if (dz == 4 && mz == 2) {prix = 680}if (dz == 5 && mz == 2) {prix = 850}if (dz == 6 && mz == 2) {prix = 1020}if (dz >= 7 && mz == 2) {prix = 170 * dz}if (dz >= 14 && mz == 2) {prix = 170 * dz}if (dz >= 21 && mz == 2) {prix = 170 * dz}if (dz >= 28 && mz == 2) {prix = 170 * dz}if (dz == 1 && mz == 3) {prix = 170}if (dz == 2 && mz == 3) {prix = 340}if (dz == 3 && mz == 3) {prix = 510}if (dz == 4 && mz == 3) {prix = 680}if (dz == 5 && mz == 3) {prix = 850}if (dz == 6 && mz == 3) {prix = 1020}if (dz >= 7 && mz == 3) {prix = 170 * dz}if (dz >= 14 && mz == 3) {prix = 170 * dz}if (dz >= 21 && mz == 3) {prix = 170 * dz}if (dz >= 28 && mz == 3) {prix = 170 * dz}if (dz == 1 && mz == 4) {prix = 170}if (dz == 2 && mz == 4) {prix = 340}if (dz == 3 && mz == 4) {prix = 510}if (dz == 4 && mz == 4) {prix = 680}if (dz == 5 && mz == 4) {prix = 850}if (dz == 6 && mz == 4) {prix = 1020}if (dz >= 7 && mz == 4) {prix = 170 * dz}if (dz >= 14 && mz == 4) {prix = 170 * dz}if (dz >= 21 && mz == 4) {prix = 170 * dz}if (dz >= 28 && mz == 4) {prix = 170 * dz}if (dz == 1 && mz == 5) {prix = 170}if (dz == 2 && mz == 5) {prix = 340}if (dz == 3 && mz == 5) {prix = 510}if (dz == 4 && mz == 5) {prix = 680}if (dz == 5 && mz == 5) {prix = 850}if (dz == 6 && mz == 5) {prix = 1020}if (dz >= 7 && mz == 5) {prix = 170 * dz}if (dz >= 14 && mz == 5) {prix = 170 * dz}if (dz >= 21 && mz == 5) {prix = 170 * dz}if (dz >= 28 && mz == 5) {prix = 170 * dz} return prix }function get_temp_price128(dz,mz){ prix = 0 if (dz == 1 && mz == 1) {prix = 170}if (dz == 2 && mz == 1) {prix = 340}if (dz == 3 && mz == 1) {prix = 510}if (dz == 4 && mz == 1) {prix = 680}if (dz == 5 && mz == 1) {prix = 850}if (dz == 6 && mz == 1) {prix = 1020}if (dz >= 7 && mz == 1) {prix = 170 * dz}if (dz >= 14 && mz == 1) {prix = 170 * dz}if (dz >= 21 && mz == 1) {prix = 170 * dz}if (dz >= 28 && mz == 1) {prix = 170 * dz}if (dz == 1 && mz == 2) {prix = 170}if (dz == 2 && mz == 2) {prix = 340}if (dz == 3 && mz == 2) {prix = 510}if (dz == 4 && mz == 2) {prix = 680}if (dz == 5 && mz == 2) {prix = 850}if (dz == 6 && mz == 2) {prix = 1020}if (dz >= 7 && mz == 2) {prix = 170 * dz}if (dz >= 14 && mz == 2) {prix = 170 * dz}if (dz >= 21 && mz == 2) {prix = 170 * dz}if (dz >= 28 && mz == 2) {prix = 170 * dz}if (dz == 1 && mz == 3) {prix = 170}if (dz == 2 && mz == 3) {prix = 340}if (dz == 3 && mz == 3) {prix = 510}if (dz == 4 && mz == 3) {prix = 680}if (dz == 5 && mz == 3) {prix = 850}if (dz == 6 && mz == 3) {prix = 1020}if (dz >= 7 && mz == 3) {prix = 170 * dz}if (dz >= 14 && mz == 3) {prix = 170 * dz}if (dz >= 21 && mz == 3) {prix = 170 * dz}if (dz >= 28 && mz == 3) {prix = 170 * dz}if (dz == 1 && mz == 4) {prix = 170}if (dz == 2 && mz == 4) {prix = 340}if (dz == 3 && mz == 4) {prix = 510}if (dz == 4 && mz == 4) {prix = 680}if (dz == 5 && mz == 4) {prix = 850}if (dz == 6 && mz == 4) {prix = 1020}if (dz >= 7 && mz == 4) {prix = 170 * dz}if (dz >= 14 && mz == 4) {prix = 170 * dz}if (dz >= 21 && mz == 4) {prix = 170 * dz}if (dz >= 28 && mz == 4) {prix = 170 * dz}if (dz == 1 && mz == 5) {prix = 170}if (dz == 2 && mz == 5) {prix = 340}if (dz == 3 && mz == 5) {prix = 510}if (dz == 4 && mz == 5) {prix = 680}if (dz == 5 && mz == 5) {prix = 850}if (dz == 6 && mz == 5) {prix = 1020}if (dz >= 7 && mz == 5) {prix = 170 * dz}if (dz >= 14 && mz == 5) {prix = 170 * dz}if (dz >= 21 && mz == 5) {prix = 170 * dz}if (dz >= 28 && mz == 5) {prix = 170 * dz} return prix }function get_temp_price128(dz,mz){ prix = 0 if (dz == 1 && mz == 1) {prix = 170}if (dz == 2 && mz == 1) {prix = 340}if (dz == 3 && mz == 1) {prix = 510}if (dz == 4 && mz == 1) {prix = 680}if (dz == 5 && mz == 1) {prix = 850}if (dz == 6 && mz == 1) {prix = 1020}if (dz >= 7 && mz == 1) {prix = 170 * dz}if (dz >= 14 && mz == 1) {prix = 170 * dz}if (dz >= 21 && mz == 1) {prix = 170 * dz}if (dz >= 28 && mz == 1) {prix = 170 * dz}if (dz == 1 && mz == 2) {prix = 170}if (dz == 2 && mz == 2) {prix = 340}if (dz == 3 && mz == 2) {prix = 510}if (dz == 4 && mz == 2) {prix = 680}if (dz == 5 && mz == 2) {prix = 850}if (dz == 6 && mz == 2) {prix = 1020}if (dz >= 7 && mz == 2) {prix = 170 * dz}if (dz >= 14 && mz == 2) {prix = 170 * dz}if (dz >= 21 && mz == 2) {prix = 170 * dz}if (dz >= 28 && mz == 2) {prix = 170 * dz}if (dz == 1 && mz == 3) {prix = 170}if (dz == 2 && mz == 3) {prix = 340}if (dz == 3 && mz == 3) {prix = 510}if (dz == 4 && mz == 3) {prix = 680}if (dz == 5 && mz == 3) {prix = 850}if (dz == 6 && mz == 3) {prix = 1020}if (dz >= 7 && mz == 3) {prix = 170 * dz}if (dz >= 14 && mz == 3) {prix = 170 * dz}if (dz >= 21 && mz == 3) {prix = 170 * dz}if (dz >= 28 && mz == 3) {prix = 170 * dz}if (dz == 1 && mz == 4) {prix = 170}if (dz == 2 && mz == 4) {prix = 340}if (dz == 3 && mz == 4) {prix = 510}if (dz == 4 && mz == 4) {prix = 680}if (dz == 5 && mz == 4) {prix = 850}if (dz == 6 && mz == 4) {prix = 1020}if (dz >= 7 && mz == 4) {prix = 170 * dz}if (dz >= 14 && mz == 4) {prix = 170 * dz}if (dz >= 21 && mz == 4) {prix = 170 * dz}if (dz >= 28 && mz == 4) {prix = 170 * dz}if (dz == 1 && mz == 5) {prix = 170}if (dz == 2 && mz == 5) {prix = 340}if (dz == 3 && mz == 5) {prix = 510}if (dz == 4 && mz == 5) {prix = 680}if (dz == 5 && mz == 5) {prix = 850}if (dz == 6 && mz == 5) {prix = 1020}if (dz >= 7 && mz == 5) {prix = 170 * dz}if (dz >= 14 && mz == 5) {prix = 170 * dz}if (dz >= 21 && mz == 5) {prix = 170 * dz}if (dz >= 28 && mz == 5) {prix = 170 * dz} return prix }function get_temp_price128(dz,mz){ prix = 0 if (dz == 1 && mz == 1) {prix = 170}if (dz == 2 && mz == 1) {prix = 340}if (dz == 3 && mz == 1) {prix = 510}if (dz == 4 && mz == 1) {prix = 680}if (dz == 5 && mz == 1) {prix = 850}if (dz == 6 && mz == 1) {prix = 1020}if (dz >= 7 && mz == 1) {prix = 170 * dz}if (dz >= 14 && mz == 1) {prix = 170 * dz}if (dz >= 21 && mz == 1) {prix = 170 * dz}if (dz >= 28 && mz == 1) {prix = 170 * dz}if (dz == 1 && mz == 2) {prix = 170}if (dz == 2 && mz == 2) {prix = 340}if (dz == 3 && mz == 2) {prix = 510}if (dz == 4 && mz == 2) {prix = 680}if (dz == 5 && mz == 2) {prix = 850}if (dz == 6 && mz == 2) {prix = 1020}if (dz >= 7 && mz == 2) {prix = 170 * dz}if (dz >= 14 && mz == 2) {prix = 170 * dz}if (dz >= 21 && mz == 2) {prix = 170 * dz}if (dz >= 28 && mz == 2) {prix = 170 * dz}if (dz == 1 && mz == 3) {prix = 170}if (dz == 2 && mz == 3) {prix = 340}if (dz == 3 && mz == 3) {prix = 510}if (dz == 4 && mz == 3) {prix = 680}if (dz == 5 && mz == 3) {prix = 850}if (dz == 6 && mz == 3) {prix = 1020}if (dz >= 7 && mz == 3) {prix = 170 * dz}if (dz >= 14 && mz == 3) {prix = 170 * dz}if (dz >= 21 && mz == 3) {prix = 170 * dz}if (dz >= 28 && mz == 3) {prix = 170 * dz}if (dz == 1 && mz == 4) {prix = 170}if (dz == 2 && mz == 4) {prix = 340}if (dz == 3 && mz == 4) {prix = 510}if (dz == 4 && mz == 4) {prix = 680}if (dz == 5 && mz == 4) {prix = 850}if (dz == 6 && mz == 4) {prix = 1020}if (dz >= 7 && mz == 4) {prix = 170 * dz}if (dz >= 14 && mz == 4) {prix = 170 * dz}if (dz >= 21 && mz == 4) {prix = 170 * dz}if (dz >= 28 && mz == 4) {prix = 170 * dz}if (dz == 1 && mz == 5) {prix = 170}if (dz == 2 && mz == 5) {prix = 340}if (dz == 3 && mz == 5) {prix = 510}if (dz == 4 && mz == 5) {prix = 680}if (dz == 5 && mz == 5) {prix = 850}if (dz == 6 && mz == 5) {prix = 1020}if (dz >= 7 && mz == 5) {prix = 170 * dz}if (dz >= 14 && mz == 5) {prix = 170 * dz}if (dz >= 21 && mz == 5) {prix = 170 * dz}if (dz >= 28 && mz == 5) {prix = 170 * dz} return prix }function get_temp_price128(dz,mz){ prix = 0 if (dz == 1 && mz == 1) {prix = 170}if (dz == 2 && mz == 1) {prix = 340}if (dz == 3 && mz == 1) {prix = 510}if (dz == 4 && mz == 1) {prix = 680}if (dz == 5 && mz == 1) {prix = 850}if (dz == 6 && mz == 1) {prix = 1020}if (dz >= 7 && mz == 1) {prix = 170 * dz}if (dz >= 14 && mz == 1) {prix = 170 * dz}if (dz >= 21 && mz == 1) {prix = 170 * dz}if (dz >= 28 && mz == 1) {prix = 170 * dz}if (dz == 1 && mz == 2) {prix = 170}if (dz == 2 && mz == 2) {prix = 340}if (dz == 3 && mz == 2) {prix = 510}if (dz == 4 && mz == 2) {prix = 680}if (dz == 5 && mz == 2) {prix = 850}if (dz == 6 && mz == 2) {prix = 1020}if (dz >= 7 && mz == 2) {prix = 170 * dz}if (dz >= 14 && mz == 2) {prix = 170 * dz}if (dz >= 21 && mz == 2) {prix = 170 * dz}if (dz >= 28 && mz == 2) {prix = 170 * dz}if (dz == 1 && mz == 3) {prix = 170}if (dz == 2 && mz == 3) {prix = 340}if (dz == 3 && mz == 3) {prix = 510}if (dz == 4 && mz == 3) {prix = 680}if (dz == 5 && mz == 3) {prix = 850}if (dz == 6 && mz == 3) {prix = 1020}if (dz >= 7 && mz == 3) {prix = 170 * dz}if (dz >= 14 && mz == 3) {prix = 170 * dz}if (dz >= 21 && mz == 3) {prix = 170 * dz}if (dz >= 28 && mz == 3) {prix = 170 * dz}if (dz == 1 && mz == 4) {prix = 170}if (dz == 2 && mz == 4) {prix = 340}if (dz == 3 && mz == 4) {prix = 510}if (dz == 4 && mz == 4) {prix = 680}if (dz == 5 && mz == 4) {prix = 850}if (dz == 6 && mz == 4) {prix = 1020}if (dz >= 7 && mz == 4) {prix = 170 * dz}if (dz >= 14 && mz == 4) {prix = 170 * dz}if (dz >= 21 && mz == 4) {prix = 170 * dz}if (dz >= 28 && mz == 4) {prix = 170 * dz}if (dz == 1 && mz == 5) {prix = 170}if (dz == 2 && mz == 5) {prix = 340}if (dz == 3 && mz == 5) {prix = 510}if (dz == 4 && mz == 5) {prix = 680}if (dz == 5 && mz == 5) {prix = 850}if (dz == 6 && mz == 5) {prix = 1020}if (dz >= 7 && mz == 5) {prix = 170 * dz}if (dz >= 14 && mz == 5) {prix = 170 * dz}if (dz >= 21 && mz == 5) {prix = 170 * dz}if (dz >= 28 && mz == 5) {prix = 170 * dz} return prix }function get_temp_price128(dz,mz){ prix = 0 if (dz == 1 && mz == 1) {prix = 170}if (dz == 2 && mz == 1) {prix = 340}if (dz == 3 && mz == 1) {prix = 510}if (dz == 4 && mz == 1) {prix = 680}if (dz == 5 && mz == 1) {prix = 850}if (dz == 6 && mz == 1) {prix = 1020}if (dz >= 7 && mz == 1) {prix = 170 * dz}if (dz >= 14 && mz == 1) {prix = 170 * dz}if (dz >= 21 && mz == 1) {prix = 170 * dz}if (dz >= 28 && mz == 1) {prix = 170 * dz}if (dz == 1 && mz == 2) {prix = 170}if (dz == 2 && mz == 2) {prix = 340}if (dz == 3 && mz == 2) {prix = 510}if (dz == 4 && mz == 2) {prix = 680}if (dz == 5 && mz == 2) {prix = 850}if (dz == 6 && mz == 2) {prix = 1020}if (dz >= 7 && mz == 2) {prix = 170 * dz}if (dz >= 14 && mz == 2) {prix = 170 * dz}if (dz >= 21 && mz == 2) {prix = 170 * dz}if (dz >= 28 && mz == 2) {prix = 170 * dz}if (dz == 1 && mz == 3) {prix = 170}if (dz == 2 && mz == 3) {prix = 340}if (dz == 3 && mz == 3) {prix = 510}if (dz == 4 && mz == 3) {prix = 680}if (dz == 5 && mz == 3) {prix = 850}if (dz == 6 && mz == 3) {prix = 1020}if (dz >= 7 && mz == 3) {prix = 170 * dz}if (dz >= 14 && mz == 3) {prix = 170 * dz}if (dz >= 21 && mz == 3) {prix = 170 * dz}if (dz >= 28 && mz == 3) {prix = 170 * dz}if (dz == 1 && mz == 4) {prix = 170}if (dz == 2 && mz == 4) {prix = 340}if (dz == 3 && mz == 4) {prix = 510}if (dz == 4 && mz == 4) {prix = 680}if (dz == 5 && mz == 4) {prix = 850}if (dz == 6 && mz == 4) {prix = 1020}if (dz >= 7 && mz == 4) {prix = 170 * dz}if (dz >= 14 && mz == 4) {prix = 170 * dz}if (dz >= 21 && mz == 4) {prix = 170 * dz}if (dz >= 28 && mz == 4) {prix = 170 * dz}if (dz == 1 && mz == 5) {prix = 170}if (dz == 2 && mz == 5) {prix = 340}if (dz == 3 && mz == 5) {prix = 510}if (dz == 4 && mz == 5) {prix = 680}if (dz == 5 && mz == 5) {prix = 850}if (dz == 6 && mz == 5) {prix = 1020}if (dz >= 7 && mz == 5) {prix = 170 * dz}if (dz >= 14 && mz == 5) {prix = 170 * dz}if (dz >= 21 && mz == 5) {prix = 170 * dz}if (dz >= 28 && mz == 5) {prix = 170 * dz} return prix }function get_temp_price128(dz,mz){ prix = 0 if (dz == 1 && mz == 1) {prix = 170}if (dz == 2 && mz == 1) {prix = 340}if (dz == 3 && mz == 1) {prix = 510}if (dz == 4 && mz == 1) {prix = 680}if (dz == 5 && mz == 1) {prix = 850}if (dz == 6 && mz == 1) {prix = 1020}if (dz >= 7 && mz == 1) {prix = 170 * dz}if (dz >= 14 && mz == 1) {prix = 170 * dz}if (dz >= 21 && mz == 1) {prix = 170 * dz}if (dz >= 28 && mz == 1) {prix = 170 * dz}if (dz == 1 && mz == 2) {prix = 170}if (dz == 2 && mz == 2) {prix = 340}if (dz == 3 && mz == 2) {prix = 510}if (dz == 4 && mz == 2) {prix = 680}if (dz == 5 && mz == 2) {prix = 850}if (dz == 6 && mz == 2) {prix = 1020}if (dz >= 7 && mz == 2) {prix = 170 * dz}if (dz >= 14 && mz == 2) {prix = 170 * dz}if (dz >= 21 && mz == 2) {prix = 170 * dz}if (dz >= 28 && mz == 2) {prix = 170 * dz}if (dz == 1 && mz == 3) {prix = 170}if (dz == 2 && mz == 3) {prix = 340}if (dz == 3 && mz == 3) {prix = 510}if (dz == 4 && mz == 3) {prix = 680}if (dz == 5 && mz == 3) {prix = 850}if (dz == 6 && mz == 3) {prix = 1020}if (dz >= 7 && mz == 3) {prix = 170 * dz}if (dz >= 14 && mz == 3) {prix = 170 * dz}if (dz >= 21 && mz == 3) {prix = 170 * dz}if (dz >= 28 && mz == 3) {prix = 170 * dz}if (dz == 1 && mz == 4) {prix = 170}if (dz == 2 && mz == 4) {prix = 340}if (dz == 3 && mz == 4) {prix = 510}if (dz == 4 && mz == 4) {prix = 680}if (dz == 5 && mz == 4) {prix = 850}if (dz == 6 && mz == 4) {prix = 1020}if (dz >= 7 && mz == 4) {prix = 170 * dz}if (dz >= 14 && mz == 4) {prix = 170 * dz}if (dz >= 21 && mz == 4) {prix = 170 * dz}if (dz >= 28 && mz == 4) {prix = 170 * dz}if (dz == 1 && mz == 5) {prix = 170}if (dz == 2 && mz == 5) {prix = 340}if (dz == 3 && mz == 5) {prix = 510}if (dz == 4 && mz == 5) {prix = 680}if (dz == 5 && mz == 5) {prix = 850}if (dz == 6 && mz == 5) {prix = 1020}if (dz >= 7 && mz == 5) {prix = 170 * dz}if (dz >= 14 && mz == 5) {prix = 170 * dz}if (dz >= 21 && mz == 5) {prix = 170 * dz}if (dz >= 28 && mz == 5) {prix = 170 * dz} return prix }function get_temp_price128(dz,mz){ prix = 0 if (dz == 1 && mz == 1) {prix = 170}if (dz == 2 && mz == 1) {prix = 340}if (dz == 3 && mz == 1) {prix = 510}if (dz == 4 && mz == 1) {prix = 680}if (dz == 5 && mz == 1) {prix = 850}if (dz == 6 && mz == 1) {prix = 1020}if (dz >= 7 && mz == 1) {prix = 170 * dz}if (dz >= 14 && mz == 1) {prix = 170 * dz}if (dz >= 21 && mz == 1) {prix = 170 * dz}if (dz >= 28 && mz == 1) {prix = 170 * dz}if (dz == 1 && mz == 2) {prix = 170}if (dz == 2 && mz == 2) {prix = 340}if (dz == 3 && mz == 2) {prix = 510}if (dz == 4 && mz == 2) {prix = 680}if (dz == 5 && mz == 2) {prix = 850}if (dz == 6 && mz == 2) {prix = 1020}if (dz >= 7 && mz == 2) {prix = 170 * dz}if (dz >= 14 && mz == 2) {prix = 170 * dz}if (dz >= 21 && mz == 2) {prix = 170 * dz}if (dz >= 28 && mz == 2) {prix = 170 * dz}if (dz == 1 && mz == 3) {prix = 170}if (dz == 2 && mz == 3) {prix = 340}if (dz == 3 && mz == 3) {prix = 510}if (dz == 4 && mz == 3) {prix = 680}if (dz == 5 && mz == 3) {prix = 850}if (dz == 6 && mz == 3) {prix = 1020}if (dz >= 7 && mz == 3) {prix = 170 * dz}if (dz >= 14 && mz == 3) {prix = 170 * dz}if (dz >= 21 && mz == 3) {prix = 170 * dz}if (dz >= 28 && mz == 3) {prix = 170 * dz}if (dz == 1 && mz == 4) {prix = 170}if (dz == 2 && mz == 4) {prix = 340}if (dz == 3 && mz == 4) {prix = 510}if (dz == 4 && mz == 4) {prix = 680}if (dz == 5 && mz == 4) {prix = 850}if (dz == 6 && mz == 4) {prix = 1020}if (dz >= 7 && mz == 4) {prix = 170 * dz}if (dz >= 14 && mz == 4) {prix = 170 * dz}if (dz >= 21 && mz == 4) {prix = 170 * dz}if (dz >= 28 && mz == 4) {prix = 170 * dz}if (dz == 1 && mz == 5) {prix = 170}if (dz == 2 && mz == 5) {prix = 340}if (dz == 3 && mz == 5) {prix = 510}if (dz == 4 && mz == 5) {prix = 680}if (dz == 5 && mz == 5) {prix = 850}if (dz == 6 && mz == 5) {prix = 1020}if (dz >= 7 && mz == 5) {prix = 170 * dz}if (dz >= 14 && mz == 5) {prix = 170 * dz}if (dz >= 21 && mz == 5) {prix = 170 * dz}if (dz >= 28 && mz == 5) {prix = 170 * dz} return prix }function get_temp_price128(dz,mz){ prix = 0 if (dz == 1 && mz == 1) {prix = 170}if (dz == 2 && mz == 1) {prix = 340}if (dz == 3 && mz == 1) {prix = 510}if (dz == 4 && mz == 1) {prix = 680}if (dz == 5 && mz == 1) {prix = 850}if (dz == 6 && mz == 1) {prix = 1020}if (dz >= 7 && mz == 1) {prix = 170 * dz}if (dz >= 14 && mz == 1) {prix = 170 * dz}if (dz >= 21 && mz == 1) {prix = 170 * dz}if (dz >= 28 && mz == 1) {prix = 170 * dz}if (dz == 1 && mz == 2) {prix = 170}if (dz == 2 && mz == 2) {prix = 340}if (dz == 3 && mz == 2) {prix = 510}if (dz == 4 && mz == 2) {prix = 680}if (dz == 5 && mz == 2) {prix = 850}if (dz == 6 && mz == 2) {prix = 1020}if (dz >= 7 && mz == 2) {prix = 170 * dz}if (dz >= 14 && mz == 2) {prix = 170 * dz}if (dz >= 21 && mz == 2) {prix = 170 * dz}if (dz >= 28 && mz == 2) {prix = 170 * dz}if (dz == 1 && mz == 3) {prix = 170}if (dz == 2 && mz == 3) {prix = 340}if (dz == 3 && mz == 3) {prix = 510}if (dz == 4 && mz == 3) {prix = 680}if (dz == 5 && mz == 3) {prix = 850}if (dz == 6 && mz == 3) {prix = 1020}if (dz >= 7 && mz == 3) {prix = 170 * dz}if (dz >= 14 && mz == 3) {prix = 170 * dz}if (dz >= 21 && mz == 3) {prix = 170 * dz}if (dz >= 28 && mz == 3) {prix = 170 * dz}if (dz == 1 && mz == 4) {prix = 170}if (dz == 2 && mz == 4) {prix = 340}if (dz == 3 && mz == 4) {prix = 510}if (dz == 4 && mz == 4) {prix = 680}if (dz == 5 && mz == 4) {prix = 850}if (dz == 6 && mz == 4) {prix = 1020}if (dz >= 7 && mz == 4) {prix = 170 * dz}if (dz >= 14 && mz == 4) {prix = 170 * dz}if (dz >= 21 && mz == 4) {prix = 170 * dz}if (dz >= 28 && mz == 4) {prix = 170 * dz}if (dz == 1 && mz == 5) {prix = 170}if (dz == 2 && mz == 5) {prix = 340}if (dz == 3 && mz == 5) {prix = 510}if (dz == 4 && mz == 5) {prix = 680}if (dz == 5 && mz == 5) {prix = 850}if (dz == 6 && mz == 5) {prix = 1020}if (dz >= 7 && mz == 5) {prix = 170 * dz}if (dz >= 14 && mz == 5) {prix = 170 * dz}if (dz >= 21 && mz == 5) {prix = 170 * dz}if (dz >= 28 && mz == 5) {prix = 170 * dz} return prix }function get_temp_price128(dz,mz){ prix = 0 if (dz == 1 && mz == 1) {prix = 170}if (dz == 2 && mz == 1) {prix = 340}if (dz == 3 && mz == 1) {prix = 510}if (dz == 4 && mz == 1) {prix = 680}if (dz == 5 && mz == 1) {prix = 850}if (dz == 6 && mz == 1) {prix = 1020}if (dz >= 7 && mz == 1) {prix = 170 * dz}if (dz >= 14 && mz == 1) {prix = 170 * dz}if (dz >= 21 && mz == 1) {prix = 170 * dz}if (dz >= 28 && mz == 1) {prix = 170 * dz}if (dz == 1 && mz == 2) {prix = 170}if (dz == 2 && mz == 2) {prix = 340}if (dz == 3 && mz == 2) {prix = 510}if (dz == 4 && mz == 2) {prix = 680}if (dz == 5 && mz == 2) {prix = 850}if (dz == 6 && mz == 2) {prix = 1020}if (dz >= 7 && mz == 2) {prix = 170 * dz}if (dz >= 14 && mz == 2) {prix = 170 * dz}if (dz >= 21 && mz == 2) {prix = 170 * dz}if (dz >= 28 && mz == 2) {prix = 170 * dz}if (dz == 1 && mz == 3) {prix = 170}if (dz == 2 && mz == 3) {prix = 340}if (dz == 3 && mz == 3) {prix = 510}if (dz == 4 && mz == 3) {prix = 680}if (dz == 5 && mz == 3) {prix = 850}if (dz == 6 && mz == 3) {prix = 1020}if (dz >= 7 && mz == 3) {prix = 170 * dz}if (dz >= 14 && mz == 3) {prix = 170 * dz}if (dz >= 21 && mz == 3) {prix = 170 * dz}if (dz >= 28 && mz == 3) {prix = 170 * dz}if (dz == 1 && mz == 4) {prix = 170}if (dz == 2 && mz == 4) {prix = 340}if (dz == 3 && mz == 4) {prix = 510}if (dz == 4 && mz == 4) {prix = 680}if (dz == 5 && mz == 4) {prix = 850}if (dz == 6 && mz == 4) {prix = 1020}if (dz >= 7 && mz == 4) {prix = 170 * dz}if (dz >= 14 && mz == 4) {prix = 170 * dz}if (dz >= 21 && mz == 4) {prix = 170 * dz}if (dz >= 28 && mz == 4) {prix = 170 * dz}if (dz == 1 && mz == 5) {prix = 170}if (dz == 2 && mz == 5) {prix = 340}if (dz == 3 && mz == 5) {prix = 510}if (dz == 4 && mz == 5) {prix = 680}if (dz == 5 && mz == 5) {prix = 850}if (dz == 6 && mz == 5) {prix = 1020}if (dz >= 7 && mz == 5) {prix = 170 * dz}if (dz >= 14 && mz == 5) {prix = 170 * dz}if (dz >= 21 && mz == 5) {prix = 170 * dz}if (dz >= 28 && mz == 5) {prix = 170 * dz} return prix }