function showtime () { endday = new Date("08/05/2024 12:00:00"); enddayTime = endday.getTime() today = new Date(); minPerDay = 60 * 1000 ; hoursPerDay = 60 * minPerDay; dayPerDay = 24 * hoursPerDay; monthPerDay = 30 * dayPerDay; secsLeft = (enddayTime - today.getTime()) / minPerDay; secsRound = Math.round(secsLeft); secsRemain = secsLeft - secsRound; secsRemain = (secsRemain < 0) ? secsRemain = 60 - ((secsRound - secsLeft) * 60) : secsRemain = (secsLeft - secsRound) * 60; secsRemain = Math.round(secsRemain); minLeft = ((enddayTime - today.getTime()) / hoursPerDay); minRound = Math.round(minLeft); minRemain = minLeft - minRound; minRemain = (minRemain < 0) ? minRemain = 60 - ((minRound - minLeft) * 60) : minRemain = ((minLeft - minRound) * 60); minRemain = Math.round(minRemain - 0.495); hoursLeft = ((enddayTime - today.getTime()) / dayPerDay); hoursRound = Math.round(hoursLeft); hoursRemain = hoursLeft - hoursRound; hoursRemain = (hoursRemain < 0) ? hoursRemain = 24 - ((hoursRound - hoursLeft) * 24) : hoursRemain = ((hoursLeft - hoursRound) * 24); hoursRemain = Math.round(hoursRemain); timeRemain = hoursRemain + ":" + minRemain; document.orderform.timeview.value = timeRemain; setTimeout("showtime()",1000); } function showtime1 () { endday1 = new Date("08/05/2024 14:00:00"); enddayTime1 = endday1.getTime() today1 = new Date(); minPerDay1 = 60 * 1000 ; hoursPerDay1 = 60 * minPerDay; dayPerDay1 = 24 * hoursPerDay; monthPerDay1 = 30 * dayPerDay; secsLeft1 = (enddayTime1 - today.getTime()) / minPerDay1; secsRound1 = Math.round(secsLeft1); secsRemain1 = secsLeft1 - secsRound1; secsRemain1 = (secsRemain1 < 0) ? secsRemain1 = 60 - ((secsRound1 - secsLeft1) * 60) : secsRemain1 = (secsLeft1 - secsRound1) * 60; secsRemain1 = Math.round(secsRemain); minLeft1 = ((enddayTime1 - today.getTime()) / hoursPerDay); minRound1 = Math.round(minLeft1); minRemain1 = minLeft1 - minRound1; minRemain1 = (minRemain1 < 0) ? minRemain1 = 60 - ((minRound1 - minLeft1) * 60) : minRemain1 = ((minLeft1 - minRound1) * 60); minRemain1 = Math.round(minRemain1 - 0.495); hoursLeft1 = ((enddayTime1 - today.getTime()) / dayPerDay1); hoursRound1 = Math.round(hoursLeft1); hoursRemain1 = hoursLeft1 - hoursRound1; hoursRemain1 = (hoursRemain1 < 0) ? hoursRemain1 = 24 - ((hoursRound1 - hoursLeft1) * 24) : hoursRemain1 = ((hoursLeft1 - hoursRound1) * 24); hoursRemain1 = Math.round(hoursRemain1); timeRemain1 = hoursRemain1 + ":" + minRemain1; document.orderform.timeview1.value = timeRemain1; setTimeout("showtime1()",1000); } function chkcost() { //±Ô°Ý»çÀÌÁî¶ó¸é ³Ñ¹ö¸µ ÀÚ¸®¼ö°¡ 1ÀÚ¸®¸¸ º¸ÀÌ°ÔÇÑ´Ù. if (document.orderform.size_code.value !="extra"){ document.orderform.after_num.options[2].value = "2"; document.orderform.after_num.options[2].text = "----"; if (document.orderform.after_num.value=="2"){ document.orderform.after_num.value=""; num_change(); } } else { document.orderform.after_num.options[2].value = "2"; document.orderform.after_num.options[2].text = "2ÀÚ¸®"; } if (document.orderform.paper_code.value == "ppk18"){ document.all.out_msg.style.display=""; document.all.out_msg_detail.innerHTML = "°íÇ°°Ý300gÀº ¸ÅÀÏ Ãâ°íµË´Ï´Ù."; } else if (document.orderform.paper_code.value == "ppka1"){ //document.all.out_msg.style.display=""; document.all.out_msg_detail.innerHTML = ""; } else if (document.orderform.paper_code.value == "ppkt5"){ document.all.out_msg.style.display=""; document.all.out_msg_detail.innerHTML = "°íÇ°°Ý400gÀº ¸ÅÁÖ ¿ù¿äÀÏ/¼ö¿äÀÏ(ÁÖ2ȸ) Ãâ°íµË´Ï´Ù."; } else if (document.orderform.paper_code.value == "ppks7"){ document.all.out_msg.style.display=""; document.all.out_msg_detail.innerHTML = "À¯±¤ÄÚÆÃ300gÀº ¸ÅÀÏ Ãâ°íµË´Ï´Ù."; } else{ document.all.out_msg.style.display="none"; } if(document.orderform.now_date[0].checked && 6 >= 12 && (document.orderform.paper_code[0].selected == true || document.orderform.paper_code[2].selected == true )){ alert('ÄÚÆøíÇÔÀº ¿ÀÈÄ 12½Ã±îÁö ´çÀÏÆÇÀÌ °¡´ÉÇÕ´Ï´Ù.'); document.orderform.now_date[1].checked=true; } else if(document.orderform.now_date[0].checked && 6 >= 12 && document.orderform.paper_code[1].selected == true){ alert('ºñÄÚÆøíÇÔÀº ¿ÀÈÄ 12½Ã±îÁö ´çÀÏÆÇÀÌ °¡´ÉÇÕ´Ï´Ù.'); document.orderform.now_date[1].checked=true; } if ( document.orderform.paper_code.value == "ppkt5"){ //´çÀÏÆÇ Ãß°¡ °íÇ°°Ý400g if ( document.orderform.now_date[0].checked && (6 < 11 || 6 >= 20) && ( 4 == 2 || 4 == 4) ) { document.orderform.now_date[0].disabled=false; document.orderform.now_date[1].disabled=false; }else{ document.orderform.now_date[0].checked=false; document.orderform.now_date[1].checked=true; document.orderform.now_date[0].disabled=true; document.orderform.now_date[1].disabled=true; if (document.orderform.now_date[0].checked) { alert('°íÇ°°Ý400gÀº ´çÀÏÆÇ ¿ù¿äÀÏ/¼ö¿äÀÏ ¿ÀÀü 11½Ã±îÁö °¡´ÉÇÕ´Ï´Ù.'); } } } if(document.orderform.now_mode.value == "Y"){ if(document.orderform.paper_code[0].selected == true) {//cot01 document.orderform.kind_code.value = "pdk01"; document.orderform.coating_code.value = "cot06"; document.orderform.color_code.options[0].value = "cld04"; document.orderform.color_code.options[0].text = "´Ü¸é4µµ"; document.orderform.color_code.options[1].value = "cld08"; document.orderform.color_code.options[1].text = "¾ç¸é8µµ"; document.orderform.qty_code.options[0].value = "200"; document.orderform.qty_code.options[0].text = "200¸Å"; document.orderform.qty_code.options[1].value = "500"; document.orderform.qty_code.options[1].text = "500¸Å"; } else if(document.orderform.paper_code[5].selected == true) {//cot02 document.orderform.kind_code.value = "pdk01"; document.orderform.coating_code.value = "cot02"; document.orderform.color_code.options[0].value = "cld04"; document.orderform.color_code.options[0].text = "´Ü¸é4µµ"; document.orderform.color_code.options[1].value = "cld08"; document.orderform.color_code.options[1].text = "¾ç¸é8µµ"; document.orderform.qty_code.options[0].value = "200"; document.orderform.qty_code.options[0].text = "200¸Å"; document.orderform.qty_code.options[1].value = ""; document.orderform.qty_code.options[1].text = "----"; } } else { if(document.orderform.paper_code[0].selected == true) {//cot01 document.orderform.kind_code.value = "pdk01"; document.orderform.coating_code.value = "cot06"; document.orderform.color_code.options[0].value = "cld04"; document.orderform.color_code.options[0].text = "´Ü¸é4µµ"; document.orderform.color_code.options[1].value = "cld08"; document.orderform.color_code.options[1].text = "¾ç¸é8µµ"; document.orderform.qty_code.options[0].value = "200"; document.orderform.qty_code.options[0].text = "200¸Å"; document.orderform.qty_code.options[1].value = "500"; document.orderform.qty_code.options[1].text = "500¸Å"; document.orderform.qty_code.options[2].value = "1000"; document.orderform.qty_code.options[2].text = "1000¸Å"; document.orderform.qty_code.options[3].value = "2000"; document.orderform.qty_code.options[3].text = "2000¸Å"; document.orderform.qty_code.options[4].value = "3000"; document.orderform.qty_code.options[4].text = "3000¸Å"; document.orderform.qty_code.options[5].value = "4000"; document.orderform.qty_code.options[5].text = "4000¸Å"; document.orderform.qty_code.options[6].value = "5000"; document.orderform.qty_code.options[6].text = "5000¸Å"; document.orderform.qty_code.options[7].value = "6000"; document.orderform.qty_code.options[7].text = "6000¸Å"; document.orderform.qty_code.options[8].value = "7000"; document.orderform.qty_code.options[8].text = "7000¸Å"; document.orderform.qty_code.options[9].value = "8000"; document.orderform.qty_code.options[9].text = "8000¸Å"; document.orderform.qty_code.options[10].value = "9000"; document.orderform.qty_code.options[10].text = "9000¸Å"; document.orderform.qty_code.options[11].value = "10000"; document.orderform.qty_code.options[11].text = "10000¸Å"; document.orderform.qty_code.options[12].value = "20000"; document.orderform.qty_code.options[12].text = "20000¸Å"; document.orderform.qty_code.options[13].value = "30000"; document.orderform.qty_code.options[13].text = "30000¸Å"; document.orderform.qty_code.options[14].value = "40000"; document.orderform.qty_code.options[14].text = "40000¸Å"; document.orderform.qty_code.options[15].value = "50000"; document.orderform.qty_code.options[15].text = "50000¸Å"; document.orderform.qty_code.options[16].value = "100000"; document.orderform.qty_code.options[16].text = "100000¸Å"; document.orderform.qty_code.options[17].value = "200000"; document.orderform.qty_code.options[17].text = "200000¸Å"; document.orderform.qty_code.options[18].value = "300000"; document.orderform.qty_code.options[18].text = "300000¸Å"; } else if(document.orderform.paper_code[1].selected == true) {//cot02 ºñÄÚÆà document.orderform.kind_code.value = "pdk01"; document.orderform.coating_code.value = "cot02"; document.orderform.color_code.options[0].value = "cld04"; document.orderform.color_code.options[0].text = "´Ü¸é4µµ"; document.orderform.color_code.options[1].value = "cld08"; document.orderform.color_code.options[1].text = "¾ç¸é8µµ"; document.orderform.qty_code.options[0].value = "200"; document.orderform.qty_code.options[0].text = "200¸Å"; document.orderform.qty_code.options[1].value = "500"; document.orderform.qty_code.options[1].text = "500¸Å"; document.orderform.qty_code.options[2].value = "1000"; document.orderform.qty_code.options[2].text = "1000¸Å"; document.orderform.qty_code.options[3].value = "2000"; document.orderform.qty_code.options[3].text = "2000¸Å"; document.orderform.qty_code.options[4].value = "3000"; document.orderform.qty_code.options[4].text = "3000¸Å"; document.orderform.qty_code.options[5].value = "4000"; document.orderform.qty_code.options[5].text = "4000¸Å"; document.orderform.qty_code.options[6].value = "5000"; document.orderform.qty_code.options[6].text = "5000¸Å"; document.orderform.qty_code.options[7].value = "6000"; document.orderform.qty_code.options[7].text = "6000¸Å"; document.orderform.qty_code.options[8].value = "7000"; document.orderform.qty_code.options[8].text = "7000¸Å"; document.orderform.qty_code.options[9].value = "8000"; document.orderform.qty_code.options[9].text = "8000¸Å"; document.orderform.qty_code.options[10].value = "9000"; document.orderform.qty_code.options[10].text = "9000¸Å"; document.orderform.qty_code.options[11].value = "10000"; document.orderform.qty_code.options[11].text = "10000¸Å"; document.orderform.qty_code.options[12].value = "20000"; document.orderform.qty_code.options[12].text = "20000¸Å"; document.orderform.qty_code.options[13].value = "30000"; document.orderform.qty_code.options[13].text = "30000¸Å"; document.orderform.qty_code.options[14].value = "40000"; document.orderform.qty_code.options[14].text = "40000¸Å"; document.orderform.qty_code.options[15].value = "50000"; document.orderform.qty_code.options[15].text = "50000¸Å"; document.orderform.qty_code.options[16].value = "100000"; document.orderform.qty_code.options[16].text = "100000¸Å"; document.orderform.qty_code.options[17].value = "200000"; document.orderform.qty_code.options[17].text = "200000¸Å"; document.orderform.qty_code.options[18].value = "300000"; document.orderform.qty_code.options[18].text = "300000¸Å"; } else if(document.orderform.paper_code.value == "ppka1") {//uv document.orderform.kind_code.value = "pdk01_u" document.orderform.coating_code.value = "cot03"; document.orderform.color_code.options[0].value = "cld04"; document.orderform.color_code.options[0].text = "´Ü¸é4µµ"; document.orderform.color_code.options[1].value = "cld08"; document.orderform.color_code.options[1].text = "¾ç¸é8µµ"; // //document.orderform.color_code.options[2].value = ""; document.orderform.color_code.options[2].text = "----"; document.orderform.qty_code.options[0].value = "500"; document.orderform.qty_code.options[0].text = "500¸Å"; document.orderform.qty_code.options[1].value = "1000"; document.orderform.qty_code.options[1].text = "1000¸Å"; document.orderform.qty_code.options[2].value = "2000"; document.orderform.qty_code.options[2].text = "2000¸Å"; document.orderform.qty_code.options[3].value = "3000"; document.orderform.qty_code.options[3].text = "3000¸Å"; document.orderform.qty_code.options[4].value = "4000"; document.orderform.qty_code.options[4].text = "4000¸Å"; document.orderform.qty_code.options[5].value = "5000"; document.orderform.qty_code.options[5].text = "5000¸Å"; document.orderform.qty_code.options[6].value = "6000"; document.orderform.qty_code.options[6].text = "6000¸Å"; document.orderform.qty_code.options[7].value = "7000"; document.orderform.qty_code.options[7].text = "7000¸Å"; document.orderform.qty_code.options[8].value = "8000"; document.orderform.qty_code.options[8].text = "8000¸Å"; document.orderform.qty_code.options[9].value = "9000"; document.orderform.qty_code.options[9].text = "9000¸Å"; document.orderform.qty_code.options[10].value = "10000"; document.orderform.qty_code.options[10].text = "10000¸Å"; document.orderform.qty_code.options[11].value = "----"; document.orderform.qty_code.options[11].text = "----"; document.orderform.qty_code.options[12].value = "----"; document.orderform.qty_code.options[12].text = "----"; document.orderform.qty_code.options[13].value = "----"; document.orderform.qty_code.options[13].text = "----"; document.orderform.qty_code.options[14].value = "----"; document.orderform.qty_code.options[14].text = "----"; document.orderform.qty_code.options[15].value = "----"; document.orderform.qty_code.options[15].text = "----"; document.orderform.qty_code.options[16].value = "----"; document.orderform.qty_code.options[16].text = "----"; document.orderform.qty_code.options[17].value = "----"; document.orderform.qty_code.options[17].text = "----"; document.orderform.qty_code.options[18].value = "----"; document.orderform.qty_code.options[18].text = "----"; } else if(document.orderform.paper_code.value == "ppk18" || document.orderform.paper_code.value == "ppks7") {//°íÇ°°Ý 300g document.orderform.kind_code.value = "pdk02" if(document.orderform.paper_code.value == "ppk18"){document.orderform.coating_code.value = "cot06"} else if(document.orderform.paper_code.value == "ppks7"){document.orderform.coating_code.value = "cot05"} document.orderform.color_code.options[0].value = "cld04"; document.orderform.color_code.options[0].text = "´Ü¸é4µµ"; document.orderform.color_code.options[1].value = "cld08"; document.orderform.color_code.options[1].text = "¾ç¸é8µµ"; // //document.orderform.color_code.options[2].value = ""; document.orderform.color_code.options[2].text = "----"; document.orderform.qty_code.options[0].value = "200"; document.orderform.qty_code.options[0].text = "200¸Å"; document.orderform.qty_code.options[1].value = "500"; document.orderform.qty_code.options[1].text = "500¸Å"; document.orderform.qty_code.options[2].value = "1000"; document.orderform.qty_code.options[2].text = "1000¸Å"; document.orderform.qty_code.options[3].value = "----"; document.orderform.qty_code.options[3].text = "----"; document.orderform.qty_code.options[4].value = "----"; document.orderform.qty_code.options[4].text = "----"; document.orderform.qty_code.options[5].value = "----"; document.orderform.qty_code.options[5].text = "----"; document.orderform.qty_code.options[6].value = "----"; document.orderform.qty_code.options[6].text = "----"; document.orderform.qty_code.options[7].value = "----"; document.orderform.qty_code.options[7].text = "----"; document.orderform.qty_code.options[8].value = "----"; document.orderform.qty_code.options[8].text = "----"; document.orderform.qty_code.options[9].value = "----"; document.orderform.qty_code.options[9].text = "----"; document.orderform.qty_code.options[10].value = "----"; document.orderform.qty_code.options[10].text = "----"; document.orderform.qty_code.options[11].value = "----"; document.orderform.qty_code.options[11].text = "----"; document.orderform.qty_code.options[12].value = "----"; document.orderform.qty_code.options[12].text = "----"; document.orderform.qty_code.options[13].value = "----"; document.orderform.qty_code.options[13].text = "----"; document.orderform.qty_code.options[14].value = "----"; document.orderform.qty_code.options[14].text = "----"; document.orderform.qty_code.options[15].value = "----"; document.orderform.qty_code.options[15].text = "----"; document.orderform.qty_code.options[16].value = "----"; document.orderform.qty_code.options[16].text = "----"; document.orderform.qty_code.options[17].value = "----"; document.orderform.qty_code.options[17].text = "----"; document.orderform.qty_code.options[18].value = "----"; document.orderform.qty_code.options[18].text = "----"; } else if(document.orderform.paper_code.options[2].selected == true || document.orderform.paper_code.value == "ppkeo" || document.orderform.paper_code.value == "ppkt5") { //ÄÚÆÃÀϹݸíÇÔ(°íÇ°°Ý250g), ÀϹݸíÇÔ(°íÇ°°Ý270g), 400g document.orderform.kind_code.value = "pdk02" document.orderform.coating_code.value = "cot06"; document.orderform.color_code.options[0].value = "cld04"; document.orderform.color_code.options[0].text = "´Ü¸é4µµ"; document.orderform.color_code.options[1].value = "cld08"; document.orderform.color_code.options[1].text = "¾ç¸é8µµ"; // //document.orderform.color_code.options[2].value = ""; document.orderform.color_code.options[2].text = "----"; document.orderform.qty_code.options[0].value = "200"; document.orderform.qty_code.options[0].text = "200¸Å"; document.orderform.qty_code.options[1].value = "500"; document.orderform.qty_code.options[1].text = "500¸Å"; document.orderform.qty_code.options[2].value = "1000"; document.orderform.qty_code.options[2].text = "1000¸Å"; document.orderform.qty_code.options[3].value = "2000"; document.orderform.qty_code.options[3].text = "2000¸Å"; document.orderform.qty_code.options[4].value = "3000"; document.orderform.qty_code.options[4].text = "3000¸Å"; document.orderform.qty_code.options[5].value = "4000"; document.orderform.qty_code.options[5].text = "4000¸Å"; document.orderform.qty_code.options[6].value = "5000"; document.orderform.qty_code.options[6].text = "5000¸Å"; document.orderform.qty_code.options[7].value = "6000"; document.orderform.qty_code.options[7].text = "6000¸Å"; document.orderform.qty_code.options[8].value = "7000"; document.orderform.qty_code.options[8].text = "7000¸Å"; document.orderform.qty_code.options[9].value = "8000"; document.orderform.qty_code.options[9].text = "8000¸Å"; document.orderform.qty_code.options[10].value = "9000"; document.orderform.qty_code.options[10].text = "9000¸Å"; document.orderform.qty_code.options[11].value = "10000"; document.orderform.qty_code.options[11].text = "10000¸Å"; document.orderform.qty_code.options[12].value = "20000"; document.orderform.qty_code.options[12].text = "20000¸Å"; document.orderform.qty_code.options[13].value = "30000"; document.orderform.qty_code.options[13].text = "30000¸Å"; document.orderform.qty_code.options[14].value = "40000"; document.orderform.qty_code.options[14].text = "40000¸Å"; document.orderform.qty_code.options[15].value = "50000"; document.orderform.qty_code.options[15].text = "50000¸Å"; document.orderform.qty_code.options[16].value = "----"; document.orderform.qty_code.options[16].text = "----"; document.orderform.qty_code.options[17].value = "----"; document.orderform.qty_code.options[17].text = "----"; document.orderform.qty_code.options[18].value = "----"; document.orderform.qty_code.options[18].text = "----"; } } if ((document.orderform.paper_code[0].selected ==true || document.orderform.paper_code[1].selected ==true) && (document.orderform.size_code.value == "pss01" || document.orderform.size_code.value == "pss02")){ document.all.after_chk[7].disabled = false; } else { document.orderform.after_etc_cut.value=""; etc_cut_change(); document.all.after_chk[7].checked = false; document.all.after_chk[7].disabled = true; document.all.after_view[8].style.display = "none"; } if (document.orderform.paper_code[1].selected ==false){ document.orderform.after_emb.value=""; document.orderform.after_num.value=""; emb_change(); num_change(); document.all.after_chk[4].checked = false; document.all.after_chk[4].disabled = true; document.all.after_view[4].style.display = "none"; document.all.after_chk[6].checked = false; document.all.after_chk[6].disabled = true; document.all.after_view[6].style.display = "none"; } else{ document.all.after_chk[4].disabled = false; document.all.after_chk[6].disabled = false; } if (document.orderform.paper_code.value == "ppka1"){ document.orderform.after_emb.value=""; document.orderform.after_bak_color_new.value=""; emb_change(); bak_change(); document.all.after_chk[0].checked = false; document.all.after_chk[0].disabled = true; document.all.after_view[0].style.display = "none"; document.all.after_chk[1].checked = false; document.all.after_chk[1].disabled = true; document.all.after_view[1].style.display = "none"; } else{ document.all.after_chk[0].disabled = false; document.all.after_chk[1].disabled = false; } memo1_change(); if(document.orderform.size_code.value != "extra") { if(document.orderform.size_code.value == "pss02"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 92mm x 52mm" } else if(document.orderform.size_code.value == "pssco"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 87mm x 51mm" } else if(document.orderform.size_code.value == "psscp"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 87mm x 57mm" } else if(document.orderform.size_code.value == "psscq"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 88mm x 52mm" } else if(document.orderform.size_code.value == "psscr"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 91mm x 53mm" } else if(document.orderform.size_code.value == "pssd2"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 93mm x 57mm" } else{ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 88mm x 54mm" } document.getElementById("span_cut_width").innerHTML = 0; document.getElementById("span_cut_height").innerHTML = 0; document.orderform.size01.disabled = true; document.orderform.size02.disabled = true; document.orderform.size01.value = ""; document.orderform.size02.value = ""; document.orderform.cut1.value = ""; document.orderform.cut2.value = ""; document.orderform.wsize.value = ""; costchange(); } else if(document.orderform.size_code.value == "extra") { //¸íÇÔÁ¾·ù ÈÄ°¡°øÁß ¹Ú, ¿¥º¸, Çü¾Ð ¸Þ¼¼Áö º¸³¿ if(document.all.after_view[0].style.display=="" || document.all.after_view[1].style.display=="" || document.all.after_view[4].style.display==""){ alert("º°»çÀÌÁî¿¡ ¹Ú, Çü¾Ð, ¿¥º¸µîÀÇ ÈÄ°¡°øÁÖ¹®½Ã¿¡´Â Ãß°¡±Ý¾×ÀÌ ¹ß»ýÇϹǷΠº°µµ°ßÀûÀ» ¹®ÀÇÇϽñ⠹ٶø´Ï´Ù."); document.orderform.after_bak.value = ""; bak_change(); document.orderform.after_hyung.value = ""; hyung_change(); document.orderform.after_emb.value = ""; emb_change(); } document.orderform.after_emb.value=""; emb_change(); document.orderform.size01.disabled = false; document.orderform.size02.disabled = false; document.getElementById("size_span").innerHTML = "¾Æ·¡ÀÇ ºñ±Ô°Ý »çÀÌÁ ÀÔ·ÂÇϼ¼¿ä."; if(document.orderform.size01.value != "" && document.orderform.size02.value != ""){chkexsize();} else{ document.orderform.pay.value = 0; document.all.span_price.innerHTML = 0; return false; } } } function chkexsize() { var size01 = document.orderform.size01.value; var size02 = document.orderform.size02.value; var sizeTemp = 0; size01=Number(size01); size02=Number(size02); if(size02>size01){ sizeTemp = size01; size01 = size02; size02 = sizeTemp; } if(size01 >= 60 && size01 <= 422) { if(size02 < 50 || size02 > 299){ alert("ÃÖ¼Ò »çÀÌÁî´Â 50x60 ÀÌ»óÀ̸ç.\n\nÃÖ´ë »çÀÌÁî´Â 422x299 ÀÔ´Ï´Ù. \n\n±× ¿ÜÀÇ »çÀÌÁî´Â º°µµ ¹®ÀÇ ¹Ù¶ø´Ï´Ù. \n\n02)1588-2565"); document.orderform.size01.value = ""; document.orderform.size02.value = ""; document.orderform.pay.value = "0"; document.all.span_price.innerHTML = 0; document.getElementById("span_cut_width").innerHTML = 0; document.getElementById("span_cut_height").innerHTML = 0; document.orderform.size01.focus(); } else {excostchange();} } else if(size02 >= 50 && size02 <= 299) { if(size01 < 60 || size01 > 422){ alert("ÃÖ¼Ò »çÀÌÁî´Â 50x60 ÀÌ»óÀ̸ç.\n\nÃÖ´ë »çÀÌÁî´Â 422x299 ÀÔ´Ï´Ù. \n\n±× ¿ÜÀÇ »çÀÌÁî´Â º°µµ ¹®ÀÇ ¹Ù¶ø´Ï´Ù. \n\n02)1588-2565"); document.orderform.size01.value = ""; document.orderform.size02.value = ""; document.orderform.pay.value = "0"; document.all.span_price.innerHTML = 0; document.getElementById("span_cut_width").innerHTML = 0; document.getElementById("span_cut_height").innerHTML = 0; document.orderform.size01.focus(); } else {excostchange();} } else if(size01 < 60 && size02 < 50) { alert("ÃÖ¼Ò »çÀÌÁî´Â 50x60 ÀÌ»óÀ̸ç.\n\nÃÖ´ë »çÀÌÁî´Â 422x299 ÀÔ´Ï´Ù. \n\n±× ¿ÜÀÇ »çÀÌÁî´Â º°µµ ¹®ÀÇ ¹Ù¶ø´Ï´Ù. \n\n02)1588-2565"); document.orderform.size01.value = ""; document.orderform.size02.value = ""; document.orderform.pay.value = "0"; document.all.span_price.innerHTML = 0; document.getElementById("span_cut_width").innerHTML = 0; document.getElementById("span_cut_height").innerHTML = 0; document.orderform.size01.focus(); } else if(size01 > 422 && size02 > 299) { alert("ÃÖ¼Ò »çÀÌÁî´Â 50x60 ÀÌ»óÀ̸ç.\n\nÃÖ´ë »çÀÌÁî´Â 422x299 ÀÔ´Ï´Ù. \n\n±× ¿ÜÀÇ »çÀÌÁî´Â º°µµ ¹®ÀÇ ¹Ù¶ø´Ï´Ù. \n\n02)1588-2565"); document.orderform.size01.value = ""; document.orderform.size02.value = ""; document.orderform.pay.value = "0"; document.all.span_price.innerHTML = 0; document.getElementById("span_cut_width").innerHTML = 0; document.getElementById("span_cut_height").innerHTML = 0; document.orderform.size01.focus(); } } function costchange() { var kind_code =document.orderform.kind_code; var paper_code =document.orderform.paper_code; var color_code =document.orderform.color_code; var size_code =document.orderform.size_code; var qty_code =document.orderform.qty_code; var price =document.orderform.pay; var coating_code =document.orderform.coating_code; var subtitle = document.orderform.product_num.value; //5000¸Å ÀÌ»óÀº ¿ÏÆ÷Áö·Î Æ÷ÀåµÈ´Ù°í ¸Þ¼¼Áö ¾Ë¸² if(eval(qty_code.value) > 5000){ alert('5,000¸Å ÀÌ»ó Æ÷ÀåÀº\n\n¸íÇÔ¹Ú½º°¡ ¾Æ´Ñ ¿ÏÆ÷Áö·Î Æ÷ÀåµË´Ï´Ù.\n\nÂø¿À ¾øÀ¸½Ã±æ ¹Ù¶ø´Ï´Ù.'); } if(kind_code.value == "pdk01") { if(paper_code.value == "ppk16")//ÄÚÆÃ,216a { // if(eval(document.orderform.pay.value) == 0){ // alert("ÄÚÆÃÀϹݸíÇÔ(216g)ÀÌ 6¿ù27ÀÏ(¿ù) ~ 7¿ù5ÀÏ(È­)±îÁö 9ÀÏ°£ \n\nÁ¾ÀÌ ¼ö±Þ ¹®Á¦·Î 200gÀ¸·Î »ý»êµÇ¿À´Ï, È®ÀÎ ÈÄ ÁÖ¹® ºÎŹµå¸³´Ï´Ù. "); // } //´çÀÏÆÇ if(document.orderform.now_date[0].checked == true && qty_code.value > 500){ if(document.orderform.est_type.value == "Y"){ document.orderform.now_date[1].checked = true; } else{ document.orderform.now_date[1].checked = true; alert('ÄÚÆøíÇÔÀÇ ´çÀÏÆÇÀº 500¸Å±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.'); } } if(color_code.value == "cld04") { if(qty_code.value == 200){price.value= 2400 *subtitle} else if(qty_code.value == 500){price.value =3300*subtitle} else if(qty_code.value == 1000){price.value = 5700*subtitle} else if(qty_code.value == 2000){price.value = 11300*subtitle} else if(qty_code.value == 3000){price.value =17200*subtitle} else if(qty_code.value == 4000){price.value =22500*subtitle} else if(qty_code.value == 5000){price.value =27900*subtitle} else if(qty_code.value == 6000){price.value =33200*subtitle} else if(qty_code.value == 7000){price.value =38600*subtitle} else if(qty_code.value == 8000){price.value =42800*subtitle} else if(qty_code.value == 9000){price.value =46100*subtitle} else if(qty_code.value == 10000){price.value =48200*subtitle} else if(qty_code.value == 20000){price.value =95300*subtitle} else if(qty_code.value == 30000){price.value =141300*subtitle} else if(qty_code.value == 40000){price.value =187300*subtitle} else if(qty_code.value == 50000){price.value =233300*subtitle} else if(qty_code.value == 100000){price.value =466000*subtitle} else if(qty_code.value == 200000){price.value =930000*subtitle} else if(qty_code.value == 300000){price.value =1390000*subtitle} else {price.value = 0} } else if(color_code.value == "cld05") { if(qty_code.value == 200){price.value=2400*subtitle} else if(qty_code.value == 500){price.value =3300*subtitle} else if(qty_code.value == 1000){price.value = 5700*subtitle} else { alert("ÄÚÆÃÀϹݸíÇÔ(216g) ¾ç¸é5µµ´Â 200¸Å, 500¸Å, 1000¸Å¸¸ ÁÖ¹®ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù."); qty_code.value = 1000;price.value = 6800*subtitle; } } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value=3400*subtitle} else if(qty_code.value == 500){price.value =4000*subtitle} else if(qty_code.value == 1000){price.value = 7900*subtitle} else if(qty_code.value == 2000){price.value = 15600*subtitle} else if(qty_code.value == 3000){price.value =22000*subtitle} else if(qty_code.value == 4000){price.value =27900*subtitle} else if(qty_code.value == 5000){price.value =33200*subtitle} else if(qty_code.value == 6000){price.value =38600*subtitle} else if(qty_code.value == 7000){price.value =43900*subtitle} else if(qty_code.value == 8000){price.value =49300*subtitle} else if(qty_code.value == 9000){price.value =52500*subtitle} else if(qty_code.value == 10000){price.value =55700*subtitle} else if(qty_code.value == 20000){price.value =107000*subtitle} else if(qty_code.value == 30000){price.value =160500*subtitle} else if(qty_code.value == 40000){price.value =214000*subtitle} else if(qty_code.value == 50000){price.value =262200*subtitle} else if(qty_code.value == 100000){price.value =524000*subtitle} else if(qty_code.value == 200000){price.value =1040000*subtitle} else if(qty_code.value == 300000){price.value =1570000*subtitle} else {price.value = 0} } } else if(paper_code.value == "ppk17")//ºñÄÚÆÃ,250sw { //´çÀÏÆÇ if(document.orderform.now_date[0].checked == true && qty_code.value > 500){ alert('ºñÄÚÆøíÇÔÀÇ ´çÀÏÆÇÀº 500¸Å±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.\n\n500¸Å ÃÊ°ú ÁÖ¹®À» ¿øÇÏ½Ç °æ¿ì ´çÀÏÆÇÀ» ¾Æ´Ï¿À·Î ¼±ÅÃÇϽŠÈÄ ÁÖ¹®ÇϽñ⠹ٶø´Ï´Ù.'); qty_code.value = 500; } if(color_code.value == "cld04") { if(qty_code.value == 200){price.value=2500*subtitle} else if(qty_code.value == 500){price.value=3000*subtitle} else if(qty_code.value == 1000){price.value=5800*subtitle} else if(qty_code.value == 2000){price.value=10600*subtitle} else if(qty_code.value == 3000){price.value=15400*subtitle} else if(qty_code.value == 4000){price.value=17200*subtitle} else if(qty_code.value == 5000){price.value=21000*subtitle} else if(qty_code.value == 6000){price.value=24800*subtitle} else if(qty_code.value == 7000){price.value=29600*subtitle} else if(qty_code.value == 8000){price.value=31400*subtitle} else if(qty_code.value == 9000){price.value=36200*subtitle} else if(qty_code.value == 10000){price.value=39000*subtitle} else if(qty_code.value == 20000){price.value=78000*subtitle} else if(qty_code.value == 30000){price.value=117000*subtitle} else if(qty_code.value == 40000){price.value=156000*subtitle} else if(qty_code.value == 50000){price.value=195000*subtitle} else if(qty_code.value == 100000){price.value=390000*subtitle} else if(qty_code.value == 200000){price.value=780000*subtitle} else if(qty_code.value == 300000){price.value=1170000*subtitle} else {price.value = 0} } else if(color_code.value == "cld05") { if(qty_code.value == 200){price.value=2500*subtitle} else if(qty_code.value == 500){price.value=3000*subtitle} else if(qty_code.value == 1000){price.value=5800*subtitle} else if(qty_code.value == 2000){price.value=10600*subtitle} else if(qty_code.value == 3000){price.value=15400*subtitle} else if(qty_code.value == 4000){price.value=17200*subtitle} else if(qty_code.value == 5000){price.value=21000*subtitle} else if(qty_code.value == 6000){price.value=24800*subtitle} else if(qty_code.value == 7000){price.value=29600*subtitle} else if(qty_code.value == 8000){price.value=31400*subtitle} else if(qty_code.value == 9000){price.value=36200*subtitle} else if(qty_code.value == 10000){price.value=39000*subtitle} else if(qty_code.value == 20000){price.value=78000*subtitle} else if(qty_code.value == 30000){price.value=117000*subtitle} else if(qty_code.value == 40000){price.value=156000*subtitle} else if(qty_code.value == 50000){price.value=195000*subtitle} else if(qty_code.value == 100000){price.value=390000*subtitle} else if(qty_code.value == 200000){price.value=780000*subtitle} else if(qty_code.value == 300000){price.value=1170000*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value=2900*subtitle} else if(qty_code.value == 500){price.value=3200*subtitle} else if(qty_code.value == 1000){price.value=6400*subtitle} else if(qty_code.value == 2000){price.value=12800*subtitle} else if(qty_code.value == 3000){price.value=17100*subtitle} else if(qty_code.value == 4000){price.value=22500*subtitle} else if(qty_code.value == 5000){price.value=26800*subtitle} else if(qty_code.value == 6000){price.value=31000*subtitle} else if(qty_code.value == 7000){price.value=35300*subtitle} else if(qty_code.value == 8000){price.value=36900*subtitle} else if(qty_code.value == 9000){price.value=43900*subtitle} else if(qty_code.value == 10000){price.value=48200*subtitle} else if(qty_code.value == 20000){price.value=93100*subtitle} else if(qty_code.value == 30000){price.value=138000*subtitle} else if(qty_code.value == 40000){price.value=183000*subtitle} else if(qty_code.value == 50000){price.value=227900*subtitle} else if(qty_code.value == 100000){price.value=431200*subtitle} else if(qty_code.value == 200000){price.value=820700*subtitle} else if(qty_code.value == 300000){price.value=1216600*subtitle} else {price.value = 0} } } } else if(kind_code.value == "pdk01_u") { //´çÀÏÆÇ if(document.orderform.now_date[0].checked==true) { alert('±Û·Î½ÃUV¸íÇÔ, °íÇ°°ÝÄÚÆøíÇÔ(300g)¸íÇÔÀº ´çÀÏÆÇÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.'); document.orderform.now_date[1].checked=true; } // 2017-01-13 Àû¿ë if(paper_code.value == "ppka1") { if(color_code.value == "cld04") { if(qty_code.value == 500){price.value=7800*subtitle} else if(qty_code.value == 1000){price.value=13700*subtitle} else if(qty_code.value == 2000){price.value=30900*subtitle} else if(qty_code.value == 3000){price.value=48000*subtitle} else if(qty_code.value == 4000){price.value=65100*subtitle} else if(qty_code.value == 5000){price.value=82200*subtitle} else if(qty_code.value == 6000){price.value=99300*subtitle} else if(qty_code.value == 7000){price.value=111100*subtitle} else if(qty_code.value == 8000){price.value=122900*subtitle} else if(qty_code.value == 9000){price.value=134700*subtitle} else if(qty_code.value == 10000){price.value=146400*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 500){price.value=9700*subtitle} else if(qty_code.value == 1000){price.value=18000*subtitle} else if(qty_code.value == 2000){price.value=40500*subtitle} else if(qty_code.value == 3000){price.value=63000*subtitle} else if(qty_code.value == 4000){price.value=85400*subtitle} else if(qty_code.value == 5000){price.value=107900*subtitle} else if(qty_code.value == 6000){price.value=130400*subtitle} else if(qty_code.value == 7000){price.value=147500*subtitle} else if(qty_code.value == 8000){price.value=164600*subtitle} else if(qty_code.value == 9000){price.value=181700*subtitle} else if(qty_code.value == 10000){price.value=198900*subtitle} else {price.value = 0} } } } else if(kind_code.value == "pdk02") //°íÇ°°Ý¸íÇÔ { if(paper_code.value == "ppk17") //250SW { //´çÀÏÆÇ if(document.orderform.now_date[0].checked == true && qty_code.value > 500){ alert('ÄÚÆøíÇÔÀÇ ´çÀÏÆÇÀº 500¸Å±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.\n\n500¸Å ÃÊ°ú ÁÖ¹®À» ¿øÇÏ½Ç °æ¿ì ´çÀÏÆÇÀ» ¾Æ´Ï¿À·Î ¼±ÅÃÇϽŠÈÄ ÁÖ¹®ÇϽñ⠹ٶø´Ï´Ù.'); qty_code.value = 500; } //2017-01-13 Àû¿ë if(color_code.value == "cld04") { if(qty_code.value ==200){price.value=3200*subtitle} else if(qty_code.value ==500){price.value=4900*subtitle} else if(qty_code.value ==1000){price.value=8900*subtitle} else if(qty_code.value ==2000){price.value=16100*subtitle} else if(qty_code.value ==3000){price.value=22400*subtitle} else if(qty_code.value ==4000){price.value=28600*subtitle} else if(qty_code.value ==5000){price.value=34900*subtitle} else if(qty_code.value ==6000){price.value=45700*subtitle} else if(qty_code.value ==7000){price.value=61900*subtitle} else if(qty_code.value ==8000){price.value=62700*subtitle} else if(qty_code.value ==9000){price.value=79000*subtitle} else if(qty_code.value ==10000){price.value=79800*subtitle} else if(qty_code.value ==20000){price.value=156900*subtitle} else if(qty_code.value ==30000){price.value=230300*subtitle} else if(qty_code.value ==40000){price.value=303800*subtitle} else if(qty_code.value ==50000){price.value=376300*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value ==200 ){price.value=4200*subtitle} else if(qty_code.value ==500){price.value=5800*subtitle} else if(qty_code.value ==1000){price.value=10800*subtitle} else if(qty_code.value ==2000){price.value=19700*subtitle} else if(qty_code.value ==3000){price.value=28700*subtitle} else if(qty_code.value ==4000){price.value=37700*subtitle} else if(qty_code.value ==5000){price.value=42100*subtitle} else if(qty_code.value ==6000){price.value=52900*subtitle} else if(qty_code.value ==7000){price.value=72800*subtitle} else if(qty_code.value ==8000){price.value=73600*subtitle} else if(qty_code.value ==9000){price.value=93500*subtitle} else if(qty_code.value ==10000){price.value=94300*subtitle} else if(qty_code.value ==20000){price.value=184100*subtitle} else if(qty_code.value ==30000){price.value=266700*subtitle} else if(qty_code.value ==40000){price.value=349200*subtitle} else if(qty_code.value ==50000){price.value=430900*subtitle} else {price.value = 0} } } else if(paper_code.value == "ppk18" || paper_code.value == "ppks7") //300SW { //´çÀÏÆÇ if(document.orderform.now_date[0].checked==true){ document.orderform.now_date[1].checked=true; alert('±Û·Î½ÃUV¸íÇÔ, °íÇ°°ÝÄÚÆøíÇÔ(300g)¸íÇÔÀº ´çÀÏÆÇÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.'); } //2017-01-13 Àû¿ë if(color_code.value == "cld04") { if(qty_code.value == 200){price.value = 4700*subtitle} else if(qty_code.value == 500){price.value = 5800*subtitle} else if(qty_code.value == 1000){price.value = 10800*subtitle} else if(eval(qty_code.value) > 1000 && eval(qty_code.value) <= 50000){price.value = (eval(qty_code.value) * 10)*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value = 5600*subtitle} else if(qty_code.value == 500){price.value = 6700*subtitle} else if(qty_code.value == 1000){price.value = 12600*subtitle} else if(eval(qty_code.value) > 1000 && eval(qty_code.value) <= 50000){price.value = (eval(qty_code.value)/10 * 118)*subtitle} else {price.value = 0} } } else if(paper_code.value == "ppkt5") //400SW { //´çÀÏÆÇ Ãß°¡ °íÇ°°Ý400g if ( (6 < 11 || 6 >= 20) && (4 == 2 || 4 == 4) ) { document.orderform.now_date[0].disabled=false; document.orderform.now_date[1].disabled=false; }else{ document.orderform.now_date[0].checked=false; document.orderform.now_date[1].checked=true; document.orderform.now_date[0].disabled=true; document.orderform.now_date[1].disabled=true; // alert('°íÇ°°Ý400gÀº ´çÀÏÆÇ ¿ù¿äÀÏ/¼ö¿äÀÏ ¿ÀÀü 11½Ã±îÁö °¡´ÉÇÕ´Ï´Ù.'); } //2017-01-13 Àû¿ë if(color_code.value == "cld04") { if(qty_code.value ==200){price.value=7800*subtitle} else if(qty_code.value ==500){price.value=10900*subtitle} else if(qty_code.value ==1000){price.value=18500*subtitle} else if(qty_code.value ==2000){price.value=36900*subtitle} else if(qty_code.value ==3000){price.value=55300*subtitle} else if(qty_code.value ==4000){price.value=73700*subtitle} else if(qty_code.value ==5000){price.value=92100*subtitle} else if(qty_code.value ==6000){price.value=110500*subtitle} else if(qty_code.value ==7000){price.value=128900*subtitle} else if(qty_code.value ==8000){price.value=147300*subtitle} else if(qty_code.value ==9000){price.value=165700*subtitle} else if(qty_code.value ==10000){price.value=184100*subtitle} else if(qty_code.value ==20000){price.value=368100*subtitle} else if(qty_code.value ==30000){price.value=552200*subtitle} else if(qty_code.value ==40000){price.value=736200*subtitle} else if(qty_code.value ==50000){price.value=920200*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value ==200){price.value=8600*subtitle} else if(qty_code.value ==500){price.value=12200*subtitle} else if(qty_code.value ==1000){price.value=20500*subtitle} else if(qty_code.value ==2000){price.value=40900*subtitle} else if(qty_code.value ==3000){price.value=61400*subtitle} else if(qty_code.value ==4000){price.value=81800*subtitle} else if(qty_code.value ==5000){price.value=102200*subtitle} else if(qty_code.value ==6000){price.value=122700*subtitle} else if(qty_code.value ==7000){price.value=143100*subtitle} else if(qty_code.value ==8000){price.value=163500*subtitle} else if(qty_code.value ==9000){price.value=184000*subtitle} else if(qty_code.value ==10000){price.value=204400*subtitle} else if(qty_code.value ==20000){price.value=408800*subtitle} else if(qty_code.value ==30000){price.value=613200*subtitle} else if(qty_code.value ==40000){price.value=817500*subtitle} else if(qty_code.value ==50000){price.value=1021900*subtitle} else {price.value = 0} } } } //»çÀÌÁî Ãß°¡·Î ÀÎÇÑ Ãß°¡±Ý¾× »çÀÌÁî(87*57, 93*57)¿¡ ´ëÇÑ °ø½Ä 20% Ãß°¡±Ý¾× if (size_code.value == "psscp" || size_code.value == "pssd2"){ price.value = eval(price.value)/subtitle; price.value = Math.round((price.value * 1.2)/100)*100; price.value = eval(price.value)*subtitle; } price01_change(); } function excostchange() { var kind_code =document.orderform.kind_code; var paper_code =document.orderform.paper_code; var color_code =document.orderform.color_code; var coating_code =document.orderform.coating_code; var size_code =document.orderform.size_code; var qty_code =document.orderform.qty_code; var price =document.orderform.pay; var subtitle = document.orderform.product_num.value; var size01 = document.orderform.size01.value; var size02 = document.orderform.size02.value; size01=Number(size01); size02=Number(size02); document.orderform.cut1.value = size01; document.orderform.cut2.value = size02; document.getElementById("span_cut_width").innerHTML = size01+2; document.getElementById("span_cut_height").innerHTML = size02+2; size1 = Math.ceil(parseFloat((size01) / 90)) * Math.ceil(parseFloat((size02) / 50)); size2 = Math.ceil(parseFloat((size01) / 50)) * Math.ceil(parseFloat((size02) / 90)); size3 = Math.ceil(parseFloat((size01) / 86)) * Math.ceil(parseFloat((size02) / 52)); size4 = Math.ceil(parseFloat((size01) / 52)) * Math.ceil(parseFloat((size02) / 86)); if ((size01 <= 86 && size02 <= 52) || (size01 <= 52 && size02 <= 86)){ size1 = 1; size2 = 1; } if(size_code.value != "extra") { return false; } if(size1>size2){ if(size3>size4){ if(size2>size4){ size = size4; } else{ size = size2; } } else{ if(size2>size3){ size = size3; } else{ size = size2; } } } else{ if(size3>size4){ if(size1>size4){ size = size4; } else{ size = size1; } } else{ if(size1>size3){ size = size3; } else{ size = size1; } } } // alert("size1:"+size1+"size2:"+size2+"size3:"+size3+"size4:"+size4+"size:"+size); document.orderform.wsize.value = size; if(kind_code.value == "pdk01") { if(paper_code.value == "ppk16")//ÄÚÆÃ,200a { //´çÀÏÆÇ if(document.orderform.now_date[0].checked == true && qty_code.value > 500){ if(document.orderform.est_type.value == "Y"){ document.orderform.now_date[1].checked = true; } else{ document.orderform.now_date[1].checked = true; alert('ÄÚÆøíÇÔÀÇ ´çÀÏÆÇÀº 500¸Å±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.'); } } if(color_code.value == "cld04") { if(qty_code.value == 200){price.value= 2400*size*subtitle} else if(qty_code.value == 500){price.value =3300*size*subtitle} else if(qty_code.value == 1000){price.value = 5700*size*subtitle} else if(qty_code.value == 2000){price.value = 11300*size*subtitle} else if(qty_code.value == 3000){price.value =17200*size*subtitle} else if(qty_code.value == 4000){price.value =22500*size*subtitle} else if(qty_code.value == 5000){price.value =27900*size*subtitle} else if(qty_code.value == 6000){price.value =33200*size*subtitle} else if(qty_code.value == 7000){price.value =38600*size*subtitle} else if(qty_code.value == 8000){price.value =42800*size*subtitle} else if(qty_code.value == 9000){price.value =46100*size*subtitle} else if(qty_code.value == 10000){price.value =48200*size*subtitle} else if(qty_code.value == 20000){price.value =95300*size*subtitle} else if(qty_code.value == 30000){price.value =141300*size*subtitle} else if(qty_code.value == 40000){price.value =187300*size*subtitle} else if(qty_code.value == 50000){price.value =233300*size*subtitle} else if(qty_code.value == 100000){price.value =466000*size*subtitle} else if(qty_code.value == 200000){price.value =930000*size*subtitle} else if(qty_code.value == 300000){price.value =1390000*size*subtitle} else {price.value = 0} } if(color_code.value == "cld05") { if(qty_code.value == 200){price.value=(2400*size)*subtitle} else if(qty_code.value == 500){price.value =(3300*size)*subtitle} else if(qty_code.value == 1000){price.value = (5700*size)*subtitle} else { alert("ÄÚÆÃÀϹݸíÇÔ(216g) ¾ç¸é5µµ´Â 200¸Å, 500¸Å, 1000¸Å¸¸ ÁÖ¹®ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù."); qty_code.value = 1000;price.value = (6800*size)*subtitle; } } if(color_code.value == "cld08") { if(qty_code.value == 200){price.value=3400*size*subtitle} else if(qty_code.value == 500){price.value =4000*size*subtitle} else if(qty_code.value == 1000){price.value = 7900*size*subtitle} else if(qty_code.value == 2000){price.value = 15600*size*subtitle} else if(qty_code.value == 3000){price.value =22000*size*subtitle} else if(qty_code.value == 4000){price.value =27900*size*subtitle} else if(qty_code.value == 5000){price.value =33200*size*subtitle} else if(qty_code.value == 6000){price.value =38600*size*subtitle} else if(qty_code.value == 7000){price.value =43900*size*subtitle} else if(qty_code.value == 8000){price.value =49300*size*subtitle} else if(qty_code.value == 9000){price.value =52500*size*subtitle} else if(qty_code.value == 10000){price.value =55700*size*subtitle} else if(qty_code.value == 20000){price.value =107000*size*subtitle} else if(qty_code.value == 30000){price.value =160500*size*subtitle} else if(qty_code.value == 40000){price.value =214000*size*subtitle} else if(qty_code.value == 50000){price.value =262200*size*subtitle} else if(qty_code.value == 100000){price.value =524000*size*subtitle} else if(qty_code.value == 200000){price.value =1040000*size*subtitle} else if(qty_code.value == 300000){price.value =1570000*size*subtitle} else {price.value = 0} } } else if(paper_code.value == "ppk17")//ºñÄÚÆÃ,250sw { //´çÀÏÆÇ if(document.orderform.now_date[0].checked == true && qty_code.value > 500){ alert('ºñÄÚÆøíÇÔÀÇ ´çÀÏÆÇÀº 500¸Å±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.\n\n500¸Å ÃÊ°ú ÁÖ¹®À» ¿øÇÏ½Ç °æ¿ì ´çÀÏÆÇÀ» ¾Æ´Ï¿À·Î ¼±ÅÃÇϽŠÈÄ ÁÖ¹®ÇϽñ⠹ٶø´Ï´Ù.'); qty_code.value = 500; } if(color_code.value == "cld04") { if(qty_code.value == 200){price.value=2500*size*subtitle} else if(qty_code.value == 500){price.value=3000*size*subtitle} else if(qty_code.value == 1000){price.value=5800*size*subtitle} else if(qty_code.value == 2000){price.value=10600*size*subtitle} else if(qty_code.value == 3000){price.value=15400*size*subtitle} else if(qty_code.value == 4000){price.value=17200*size*subtitle} else if(qty_code.value == 5000){price.value=21000*size*subtitle} else if(qty_code.value == 6000){price.value=24800*size*subtitle} else if(qty_code.value == 7000){price.value=29600*size*subtitle} else if(qty_code.value == 8000){price.value=31400*size*subtitle} else if(qty_code.value == 9000){price.value=36200*size*subtitle} else if(qty_code.value == 10000){price.value=39000*size*subtitle} else if(qty_code.value == 20000){price.value=78000*size*subtitle} else if(qty_code.value == 30000){price.value=117000*size*subtitle} else if(qty_code.value == 40000){price.value=156000*size*subtitle} else if(qty_code.value == 50000){price.value=195000*size*subtitle} else if(qty_code.value == 100000){price.value=390000*size*subtitle} else if(qty_code.value == 200000){price.value=780000*size*subtitle} else if(qty_code.value == 300000){price.value=1170000*size*subtitle} else {price.value = 0} } else if(color_code.value == "cld05") { if(qty_code.value == 200){price.value=2500*size*subtitle} else if(qty_code.value == 500){price.value=3000*size*subtitle} else if(qty_code.value == 1000){price.value=5800*size*subtitle} else if(qty_code.value == 2000){price.value=10600*size*subtitle} else if(qty_code.value == 3000){price.value=15400*size*subtitle} else if(qty_code.value == 4000){price.value=17200*size*subtitle} else if(qty_code.value == 5000){price.value=21000*size*subtitle} else if(qty_code.value == 6000){price.value=24800*size*subtitle} else if(qty_code.value == 7000){price.value=29600*size*subtitle} else if(qty_code.value == 8000){price.value=31400*size*subtitle} else if(qty_code.value == 9000){price.value=36200*size*subtitle} else if(qty_code.value == 10000){price.value=39000*size*subtitle} else if(qty_code.value == 20000){price.value=78000*size*subtitle} else if(qty_code.value == 30000){price.value=117000*size*subtitle} else if(qty_code.value == 40000){price.value=156000*size*subtitle} else if(qty_code.value == 50000){price.value=195000*size*subtitle} else if(qty_code.value == 100000){price.value=390000*size*subtitle} else if(qty_code.value == 200000){price.value=780000*size*subtitle} else if(qty_code.value == 300000){price.value=1170000*size*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value=2900*size*subtitle} else if(qty_code.value == 500){price.value=3200*size*subtitle} else if(qty_code.value == 1000){price.value=6400*size*subtitle} else if(qty_code.value == 2000){price.value=12800*size*subtitle} else if(qty_code.value == 3000){price.value=17100*size*subtitle} else if(qty_code.value == 4000){price.value=22500*size*subtitle} else if(qty_code.value == 5000){price.value=26800*size*subtitle} else if(qty_code.value == 6000){price.value=31000*size*subtitle} else if(qty_code.value == 7000){price.value=35300*size*subtitle} else if(qty_code.value == 8000){price.value=36900*size*subtitle} else if(qty_code.value == 9000){price.value=43900*size*subtitle} else if(qty_code.value == 10000){price.value=48200*size*subtitle} else if(qty_code.value == 20000){price.value=93100*size*subtitle} else if(qty_code.value == 30000){price.value=138000*size*subtitle} else if(qty_code.value == 40000){price.value=183000*size*subtitle} else if(qty_code.value == 50000){price.value=227900*size*subtitle} else if(qty_code.value == 100000){price.value=431200*size*subtitle} else if(qty_code.value == 200000){price.value=820700*size*subtitle} else if(qty_code.value == 300000){price.value=1216600*size*subtitle} else {price.value = 0} } } } else if(kind_code.value == "pdk01_u") { //´çÀÏÆÇ if(document.orderform.now_date[0].checked==true) { alert('±Û·Î½ÃUV¸íÇÔ, °íÇ°°ÝÄÚÆøíÇÔ(300g)¸íÇÔÀº ´çÀÏÆÇÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.'); document.orderform.now_date[1].checked=true; } // 2017-01-13 Àû¿ë if(paper_code.value == "ppka1") { if(color_code.value == "cld04") { if(qty_code.value == 500){price.value=7800*size*subtitle} else if(qty_code.value == 1000){price.value=13700*size*subtitle} else if(qty_code.value == 2000){price.value=30900*size*subtitle} else if(qty_code.value == 3000){price.value=48000*size*subtitle} else if(qty_code.value == 4000){price.value=65100*size*subtitle} else if(qty_code.value == 5000){price.value=82200*size*subtitle} else if(qty_code.value == 6000){price.value=99300*size*subtitle} else if(qty_code.value == 7000){price.value=111100*size*subtitle} else if(qty_code.value == 8000){price.value=122900*size*subtitle} else if(qty_code.value == 9000){price.value=134700*size*subtitle} else if(qty_code.value == 10000){price.value=146400*size*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 500){price.value=9700*size*subtitle} else if(qty_code.value == 1000){price.value=18000*size*subtitle} else if(qty_code.value == 2000){price.value=40500*size*subtitle} else if(qty_code.value == 3000){price.value=63000*size*subtitle} else if(qty_code.value == 4000){price.value=85400*size*subtitle} else if(qty_code.value == 5000){price.value=107900*size*subtitle} else if(qty_code.value == 6000){price.value=130400*size*subtitle} else if(qty_code.value == 7000){price.value=147500*size*subtitle} else if(qty_code.value == 8000){price.value=164600*size*subtitle} else if(qty_code.value == 9000){price.value=181700*size*subtitle} else if(qty_code.value == 10000){price.value=198900*size*subtitle} else {price.value = 0} } } } else if(kind_code.value == "pdk02") //°íÇ°°Ý¸íÇÔ { if(paper_code.value == "ppk17") //250SW { //´çÀÏÆÇ if(document.orderform.now_date[0].checked == true && qty_code.value > 500){ alert('ÄÚÆøíÇÔÀÇ ´çÀÏÆÇÀº 500¸Å±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.\n\n500¸Å ÃÊ°ú ÁÖ¹®À» ¿øÇÏ½Ç °æ¿ì ´çÀÏÆÇÀ» ¾Æ´Ï¿À·Î ¼±ÅÃÇϽŠÈÄ ÁÖ¹®ÇϽñ⠹ٶø´Ï´Ù.'); qty_code.value = 500; } //2017-01-13 Àû¿ë if(color_code.value == "cld04") { if(qty_code.value == 200){price.value=(3200*size)*subtitle} else if(qty_code.value == 500){price.value=(4900*size)*subtitle} else if(qty_code.value == 1000){price.value=(8900*size)*subtitle} else if(qty_code.value == 2000){price.value=(16100*size)*subtitle} else if(qty_code.value == 3000){price.value=(22400*size)*subtitle} else if(qty_code.value == 4000){price.value=(28600*size)*subtitle} else if(qty_code.value == 5000){price.value=(34900*size)*subtitle} else if(qty_code.value == 6000){price.value=(45700*size)*subtitle} else if(qty_code.value == 7000){price.value=(61900*size)*subtitle} else if(qty_code.value == 8000){price.value=(62700*size)*subtitle} else if(qty_code.value == 9000){price.value=(79000*size)*subtitle} else if(qty_code.value == 10000){price.value=(79800*size)*subtitle} else if(qty_code.value == 20000){price.value=(156900*size)*subtitle} else if(qty_code.value == 30000){price.value=(230300*size)*subtitle} else if(qty_code.value == 40000){price.value=(303800*size)*subtitle} else if(qty_code.value == 50000){price.value=(376300*size)*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value=(4200*size)*subtitle} else if(qty_code.value == 500){price.value=(5800*size)*subtitle} else if(qty_code.value == 1000){price.value=(10800*size)*subtitle} else if(qty_code.value == 2000){price.value=(19700*size)*subtitle} else if(qty_code.value == 3000){price.value=(28700*size)*subtitle} else if(qty_code.value == 4000){price.value=(37700*size)*subtitle} else if(qty_code.value == 5000){price.value=(42100*size)*subtitle} else if(qty_code.value == 6000){price.value=(52900*size)*subtitle} else if(qty_code.value == 7000){price.value=(72800*size)*subtitle} else if(qty_code.value == 8000){price.value=(73600*size)*subtitle} else if(qty_code.value == 9000){price.value=(93500*size)*subtitle} else if(qty_code.value == 10000){price.value=(94300*size)*subtitle} else if(qty_code.value == 20000){price.value=(184100*size)*subtitle} else if(qty_code.value == 30000){price.value=(266700*size)*subtitle} else if(qty_code.value == 40000){price.value=(349200*size)*subtitle} else if(qty_code.value == 50000){price.value=(430900*size)*subtitle} else {price.value = 0} } } else if(paper_code.value == "ppk18" || paper_code.value == "ppks7") //300SW { //´çÀÏÆÇ if(document.orderform.now_date[0].checked==true){ document.orderform.now_date[1].checked=true; alert('±Û·Î½ÃUV¸íÇÔ, °íÇ°°ÝÄÚÆøíÇÔ(300g)¸íÇÔÀº ´çÀÏÆÇÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.'); } //2017-01-13 Àû¿ë if(color_code.value == "cld04") { if(qty_code.value == 200){price.value=(4700*size)*subtitle} else if(qty_code.value == 500){price.value=(5800*size)*subtitle} else if(qty_code.value == 1000){price.value=(10800*size)*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value=(5600*size)*subtitle} else if(qty_code.value == 500){price.value=(6700*size)*subtitle} else if(qty_code.value == 1000){price.value=(12600*size)*subtitle} else {price.value = 0} } } else if(paper_code.value == "ppkt5") //400SW { //´çÀÏÆÇ Ãß°¡ °íÇ°°Ý400g if ( (6 < 11 || 6 >= 20) && (4 == 2 || 4 == 4) ) { document.orderform.now_date[0].disabled=false; document.orderform.now_date[1].disabled=false; }else{ document.orderform.now_date[0].checked=false; document.orderform.now_date[1].checked=true; document.orderform.now_date[0].disabled=true; document.orderform.now_date[1].disabled=true; // alert('°íÇ°°Ý400gÀº ´çÀÏÆÇ ¿ù¿äÀÏ/¼ö¿äÀÏ ¿ÀÀü 11½Ã±îÁö °¡´ÉÇÕ´Ï´Ù.'); } //2017-01-13 Àû¿ë if(color_code.value == "cld04") { if(qty_code.value ==200){price.value=7800*size*subtitle} else if(qty_code.value ==500){price.value=10900*size*subtitle} else if(qty_code.value ==1000){price.value=18500*size*subtitle} else if(qty_code.value ==2000){price.value=36900*size*subtitle} else if(qty_code.value ==3000){price.value=55300*size*subtitle} else if(qty_code.value ==4000){price.value=73700*size*subtitle} else if(qty_code.value ==5000){price.value=92100*size*subtitle} else if(qty_code.value ==6000){price.value=110500*size*subtitle} else if(qty_code.value ==7000){price.value=128900*size*subtitle} else if(qty_code.value ==8000){price.value=147300*size*subtitle} else if(qty_code.value ==9000){price.value=165700*size*subtitle} else if(qty_code.value ==10000){price.value=184100*size*subtitle} else if(qty_code.value ==20000){price.value=368100*size*subtitle} else if(qty_code.value ==30000){price.value=552200*size*subtitle} else if(qty_code.value ==40000){price.value=736200*size*subtitle} else if(qty_code.value ==50000){price.value=920200*size*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value ==200){price.value=8600*size*subtitle} else if(qty_code.value ==500){price.value=12200*size*subtitle} else if(qty_code.value ==1000){price.value=20500*size*subtitle} else if(qty_code.value ==2000){price.value=40900*size*subtitle} else if(qty_code.value ==3000){price.value=61400*size*subtitle} else if(qty_code.value ==4000){price.value=81800*size*subtitle} else if(qty_code.value ==5000){price.value=102200*size*subtitle} else if(qty_code.value ==6000){price.value=122700*size*subtitle} else if(qty_code.value ==7000){price.value=143100*size*subtitle} else if(qty_code.value ==8000){price.value=163500*size*subtitle} else if(qty_code.value ==9000){price.value=184000*size*subtitle} else if(qty_code.value ==10000){price.value=204400*size*subtitle} else if(qty_code.value ==20000){price.value=408800*size*subtitle} else if(qty_code.value ==30000){price.value=613200*size*subtitle} else if(qty_code.value ==40000){price.value=817500*size*subtitle} else if(qty_code.value ==50000){price.value=1021900*size*subtitle} else {price.value = 0} } } } // if(size01>200 || size02>200) //201mm ÀÌ»ó »çÀÌÁî´Â ±âº»°¡ 1.1¹è Àû¿ë // { // price.value = Math.round(price.value * 1.1/100)*100 // } price01_change(); //¿ø°¡¿Í ¼¼±ÝÀ¸·Î ³ª´® } function memo1_change() { var kind_code =document.orderform.kind_code; var paper_code =document.orderform.paper_code; var color_code =document.orderform.color_code; var size_code =document.orderform.size_code; var qty_code =document.orderform.qty_code; var price =document.orderform.pay; var subtitle = document.orderform.product_num; document.all.memo1.innerHTML = paper_code.options[paper_code.selectedIndex].innerText + " / " + color_code.options[color_code.selectedIndex].innerText + " / " + size_code.options[size_code.selectedIndex].innerText+" / "+ qty_code.options[qty_code.selectedIndex].innerText + " / " + subtitle.options[subtitle.selectedIndex].innerText; } function price01_change() { var frm = document.orderform; //ÈÄ°¡°ø_¿À½Ã if(frm.after_osi.value!=""){ after_osi_cost(); } //ÈÄ°¡°ø_¹Ì½Ì if(frm.after_mis.value!=""){ after_mis_cost(); } //ÈÄ°¡°ø_Ÿ°ø if(frm.after_tar.value!=""){ after_tar_cost(); } //ÈÄ°¡°ø_±Íµµ¸® if(frm.after_gui.value!=""){ after_gui_cost(); } //ÈÄ°¡°ø_¿¥º¸ if(frm.after_emb.value!=""){ after_emb_cost(); } //ÈÄ°¡°ø_Çü¾Ð if(frm.after_hyung.value!=""){ after_hyung_cost(); } //ÈÄ°¡°ø_¹Ú if(frm.after_bak.value!=""){ after_bak_cost(); } if ($("select[name=after_bak_1]").length > 0){if ($("select[name=after_bak_1]").val()!=""){after_bak_cost_1();}}//¹Ú 2 if ($("select[name=after_bak_2]").length > 0){if ($("select[name=after_bak_2]").val()!=""){after_bak_cost_2();}}//¹Ú 3 //ÈÄ°¡°ø_³Ñ¹ö¸µ if(frm.after_num.value!=""){ after_num_cost(); } //ÈÄ°¡°øÃÑÇÕ total_after(); var price = frm.pay; var after_price = frm.after_total_price_plus.value; var price_01 = frm.price_01; price_01.value = Math.round(price.value); document.all.span_price.innerHTML = comma(Math.round(price.value)); document.all.break_pro_price_plus.innerHTML = comma(Math.round(price.value)); //Á¦Ç° ÃÑ¾× document.all.span_total_estimate_prie.innerHTML = comma(Math.round(eval(price.value)+eval(after_price))); //Á¦Ç° + ÈÄ°¡°ø ÃÑ¾× //alert(frm.after_total_price.value); //ºÎ°¡¼¼ tax_price = (eval(price.value)+eval(after_price))/10 frm.tax_price.value = tax_price; document.all.span_tax_price.innerHTML = comma(tax_price); //°ßÀûÃÑ¾× estimate_price = eval(price.value)+eval(after_price)+eval(tax_price) frm.estimate_price_end.value = estimate_price; document.all.span_estimate_price_end.innerHTML = comma(estimate_price); //º°»çÀÌÁî À϶§ ¹Ú,Çü¾Ð,¿¥º¸ ÈÄ°¡°øÀÌ ÀÖÀ» ½Ã °æ°í ¸Þ¼¼Áö ¶ç¿ò // var finish_plag = "N"; // if(document.orderform.size_code.value == "extra"){ // if(frm.after_price_bak_total.value != "0" && frm.after_price_bak_total.value != ""){ // finish_plag = "Y"; // } // if(frm.after_price_emb.value != "0" && frm.after_price_emb.value != ""){ // finish_plag = "Y"; // } // if(frm.after_price_hyung_total.value != "0" && frm.after_price_hyung_total.value != ""){ // finish_plag = "Y"; // } // // if (finish_plag == "Y"){ // alert("º°»çÀÌÁî¿¡ ¹Ú, Çü¾Ð, ¿¥º¸µîÀÇ ÈÄ°¡°øÁÖ¹®½Ã¿¡´Â Ãß°¡±Ý¾×ÀÌ ¹ß»ýÇϹǷΠº°µµ°ßÀûÀ» ¹®ÀÇÇϽñ⠹ٶø´Ï´Ù."); // } // } } function comma(x){ var txtNumber = '' + x; var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])'); var arrNumber = txtNumber.split('.'); arrNumber[0] += '.'; do{ arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2'); } while (rxSplit.test(arrNumber[0])); if (arrNumber.length > 1) { return arrNumber.join(''); }else{ return arrNumber[0].split('.')[0]; } }