function showtime () { endday = new Date("09/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("09/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() { if(document.orderform.now_date[0].checked && 17 > 12 && (document.orderform.paper_code[0].selected == true || document.orderform.paper_code[1].selected == true )){ alert('ÄÚÆÃÁ¦Ç°Àº ¿ÀÈÄ 1½Ã±îÁö ´çÀÏÆÇÀÌ °¡´ÉÇÕ´Ï´Ù.'); document.orderform.now_date[1].checked=true; } if(document.orderform.now_mode.value == "Y"){ if(document.orderform.paper_code[0].selected == true) {//cot01 document.orderform.kind_code_1.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[4].selected == true) {//cot02 document.orderform.kind_coed_1.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¸Å"; } } else { if(document.orderform.paper_code[0].selected == true) {//cot01 document.orderform.kind_code_1.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[4].selected == true) {//cot02 document.orderform.kind_code_1.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_1.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_1.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[1].selected == true || document.orderform.paper_code.value == "ppkeo" || document.orderform.paper_code.value == "ppkt5") { document.orderform.kind_code_1.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[4].selected ==false){ document.orderform.after_num.value=""; num_change(); document.all.after_chk[3].checked = false; document.all.after_chk[3].disabled = true; document.all.after_view[3].style.display = "none"; } else{ document.all.after_chk[3].disabled = false; } //400±×·¥ ´çÀÏÆÇ if ( document.orderform.paper_code.value == "ppkt5"){ //´çÀÏÆÇ Ãß°¡ °íÇ°°Ý400g if ( document.orderform.now_date[0].checked && (17 < 11 || 17 >= 20) && ( 5 == 2 || 5 == 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½Ã±îÁö °¡´ÉÇÕ´Ï´Ù.'); } } } memo1_change(); if(document.orderform.size_code.value != "extra") { if(document.orderform.size_code.value == "card1"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 160mm x 74mm"; document.orderform.n_size01.value = "160"; document.orderform.n_size02.value = "74"; } else if(document.orderform.size_code.value == "card2"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 170mm x 74mm"; document.orderform.n_size01.value = "170"; document.orderform.n_size02.value = "74"; } else if(document.orderform.size_code.value == "card3"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 174mm x 74mm"; document.orderform.n_size01.value = "174"; document.orderform.n_size02.value = "74"; } else if(document.orderform.size_code.value == "card4"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 150mm x 70mm"; document.orderform.n_size01.value = "150"; document.orderform.n_size02.value = "70"; } else if(document.orderform.size_code.value == "card5"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 162mm x 75mm"; document.orderform.n_size01.value = "162"; document.orderform.n_size02.value = "75"; } 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") { document.orderform.size01.disabled = false; document.orderform.size02.disabled = false; document.orderform.n_size01.value = ""; document.orderform.n_size02.value = ""; 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; size01=Number(size01); size02=Number(size02); var maxNum; var minNum1 = 50; var minNum2 = 60; var maxNum1 = 500; var maxNum2 = 500; // Max °ªÁß ÀÛÀº°ª ¼¼Æà if(maxNum1>maxNum2){ maxNum = maxNum2; }else{ maxNum = maxNum1; } if(size01>size02){ sizeTemp = size01; size01 = size02; size02 = sizeTemp; } // µÎ °ªÀÌ Max °ªÁß ÀÛÀº »çÀÌÁ ³Ñ±â¸é ¾Æ¿ô if (size01 > maxNum && size02 > maxNum ){ valCKBack(minNum1, minNum2, maxNum1, maxNum2); }else if(size01 >= minNum1 && size01 <= maxNum1){ if(size02 < minNum2 || size02 > maxNum2){ valCKBack(minNum1, minNum2, maxNum1, maxNum2); }else {excostchange();} }else if(size02 >= minNum2 && size02 <= maxNum2){ if(size01 < minNum1 || size01 > maxNum1){ valCKBack(minNum1, minNum2, maxNum1, maxNum2); }else {excostchange();} }else if(size01 < minNum1 && size02 < minNum2){ valCKBack(minNum1, minNum2, maxNum1, maxNum2); }else if(size01 > maxNum1 && size02 > maxNum2){ valCKBack(minNum1, minNum2, maxNum1, maxNum2); } } function valCKBack(num1, num2, num3, num4 ){ alert("ÃÖ¼Ò »çÀÌÁî´Â "+num1+"x"+num2+" ÀÌ»óÀ̸ç.\n\nÃÖ´ë »çÀÌÁî´Â "+num3+"x"+num4+" ÀÔ´Ï´Ù. \n\n±× ¿ÜÀÇ »çÀÌÁî´Â º°µµ ¹®ÀÇ ¹Ù¶ø´Ï´Ù. \n\n064)702-1352"); 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 kind_code_1 =document.orderform.kind_code_1; 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; if(kind_code_1.value == "pdk01") { if(paper_code.value == "ppk16")//ÄÚÆÃ,200a { // 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= 2200 *subtitle} else if(qty_code.value == 500){price.value =3400*subtitle} else if(qty_code.value == 1000){price.value = 6800*subtitle} else if(qty_code.value == 2000){price.value = 12600*subtitle} else if(qty_code.value == 3000){price.value =18400*subtitle} else if(qty_code.value == 4000){price.value =21200*subtitle} else if(qty_code.value == 5000){price.value =26000*subtitle} else if(qty_code.value == 6000){price.value =30800*subtitle} else if(qty_code.value == 7000){price.value =37600*subtitle} else if(qty_code.value == 8000){price.value =41400*subtitle} else if(qty_code.value == 9000){price.value =44200*subtitle} else if(qty_code.value == 10000){price.value =48000*subtitle} else if(qty_code.value == 20000){price.value =96000*subtitle} else if(qty_code.value == 30000){price.value =144000*subtitle} else if(qty_code.value == 40000){price.value =192000*subtitle} else if(qty_code.value == 50000){price.value =240000*subtitle} else if(qty_code.value == 100000){price.value =480000*subtitle} else if(qty_code.value == 200000){price.value =960000*subtitle} else if(qty_code.value == 300000){price.value =1440000*subtitle} else {price.value = 0} } else if(color_code.value == "cld05") { if(qty_code.value == 200){price.value= 2200 *subtitle} else if(qty_code.value == 500){price.value =3400*subtitle} else if(qty_code.value == 1000){price.value = 6800*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=3200*subtitle} else if(qty_code.value == 500){price.value =4400*subtitle} else if(qty_code.value == 1000){price.value = 8800*subtitle} else if(qty_code.value == 2000){price.value = 17600*subtitle} else if(qty_code.value == 3000){price.value =26400*subtitle} else if(qty_code.value == 4000){price.value =31200*subtitle} else if(qty_code.value == 5000){price.value =37000*subtitle} else if(qty_code.value == 6000){price.value =42800*subtitle} else if(qty_code.value == 7000){price.value =49600*subtitle} else if(qty_code.value == 8000){price.value =52400*subtitle} else if(qty_code.value == 9000){price.value =55200*subtitle} else if(qty_code.value == 10000){price.value =57000*subtitle} else if(qty_code.value == 20000){price.value =114000*subtitle} else if(qty_code.value == 30000){price.value =171000*subtitle} else if(qty_code.value == 40000){price.value =228000*subtitle} else if(qty_code.value == 50000){price.value =285000*subtitle} else if(qty_code.value == 100000){price.value =570000*subtitle} else if(qty_code.value == 200000){price.value =1140000*subtitle} else if(qty_code.value == 300000){price.value =1710000*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=2200*subtitle} else if(qty_code.value == 500){price.value=2900*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=2200*subtitle} else if(qty_code.value == 500){price.value=2900*subtitle} else { alert("ºñÄÚÆÃÀϹÝƼÄÏ ¾ç¸é5µµ´Â 200¸Å, 500¸Å¸¸ ÁÖ¹®ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù."); qty_code.value = 500; price.value = 2900*subtitle; } } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value=2700*subtitle} else if(qty_code.value == 500){price.value=4400*subtitle} else if(qty_code.value == 1000){price.value=8800*subtitle} else if(qty_code.value == 2000){price.value=17600*subtitle} else if(qty_code.value == 3000){price.value=26400*subtitle} else if(qty_code.value == 4000){price.value=31200*subtitle} else if(qty_code.value == 5000){price.value=37000*subtitle} else if(qty_code.value == 6000){price.value=42800*subtitle} else if(qty_code.value == 7000){price.value=49600*subtitle} else if(qty_code.value == 8000){price.value=52400*subtitle} else if(qty_code.value == 9000){price.value=55200*subtitle} else if(qty_code.value == 10000){price.value=57000*subtitle} else if(qty_code.value == 20000){price.value=114000*subtitle} else if(qty_code.value == 30000){price.value=171000*subtitle} else if(qty_code.value == 40000){price.value=228000*subtitle} else if(qty_code.value == 50000){price.value=285000*subtitle} else if(qty_code.value == 100000){price.value=570000*subtitle} else if(qty_code.value == 200000){price.value=1140000*subtitle} else if(qty_code.value == 300000){price.value=1710000*subtitle} else {price.value = 0} } } } else if(kind_code_1.value == "pdk01_u") { //´çÀÏÆÇ if(document.orderform.now_date[0].checked==true){ alert('UV, °íÇ°°ÝÄÚÆÃÀçÁú(300g)Àº ´çÀÏÆÇÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.'); document.orderform.now_date[1].checked=true; } if(paper_code.value == "ppka1") { if(color_code.value == "cld04") { if(qty_code.value == 500){price.value=7600*subtitle} else if(qty_code.value == 1000){price.value=12600*subtitle} else if(qty_code.value == 2000){price.value=25200*subtitle} else if(qty_code.value == 3000){price.value=37800*subtitle} else if(qty_code.value == 4000){price.value=50400*subtitle} else if(qty_code.value == 5000){price.value=63000*subtitle} else if(qty_code.value == 6000){price.value=75700*subtitle} else if(qty_code.value == 7000){price.value=88300*subtitle} else if(qty_code.value == 8000){price.value=100900*subtitle} else if(qty_code.value == 9000){price.value=113500*subtitle} else if(qty_code.value == 10000){price.value=126100*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 500){price.value=9400*subtitle} else if(qty_code.value == 1000){price.value=14400*subtitle} else if(qty_code.value == 2000){price.value=28800*subtitle} else if(qty_code.value == 3000){price.value=43300*subtitle} else if(qty_code.value == 4000){price.value=57700*subtitle} else if(qty_code.value == 5000){price.value=72100*subtitle} else if(qty_code.value == 6000){price.value=86600*subtitle} else if(qty_code.value == 7000){price.value=101000*subtitle} else if(qty_code.value == 8000){price.value=115400*subtitle} else if(qty_code.value == 9000){price.value=129900*subtitle} else if(qty_code.value == 10000){price.value=144300*subtitle} else {price.value = 0} } } } else if(kind_code_1.value == "pdk02") //°íÇ°°Ý¸íÇÔ { if(paper_code.value == "ppk17") //250SW { //´çÀÏÆÇ if(document.orderform.now_date[0].checked == true && qty_code.value > 500){ alert('ÄÚÆÃÀçÁúÀÇ ´çÀÏÆÇÀº 500¸Å±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.\n\n200¸Å ÃÊ°ú ÁÖ¹®À» ¿øÇÏ½Ç °æ¿ì ´çÀÏÆÇÀ» ¾Æ´Ï¿À·Î ¼±ÅÃÇϽŠÈÄ ÁÖ¹®ÇϽñ⠹ٶø´Ï´Ù.'); qty_code.value = 500; } 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") //300SW { //´çÀÏÆÇ if(document.orderform.now_date[0].checked==true){ document.orderform.now_date[1].checked=true; alert('±Û·Î½ÃUV, °íÇ°°ÝÄÚÆÃ(300g)ÀçÁúÀº ´çÀÏÆÇÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.'); } 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 ( (17 < 11 || 17 >= 20) && (5 == 2 || 5 == 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½Ã±îÁö °¡´ÉÇÕ´Ï´Ù.'); } if(color_code.value == "cld04") { if(qty_code.value ==200){price.value=7200*subtitle} else if(qty_code.value ==500){price.value=10100*subtitle} else if(qty_code.value ==1000){price.value=17200*subtitle} else if(qty_code.value ==2000){price.value=34400*subtitle} else if(qty_code.value ==3000){price.value=51600*subtitle} else if(qty_code.value ==4000){price.value=68800*subtitle} else if(qty_code.value ==5000){price.value=86000*subtitle} else if(qty_code.value ==6000){price.value=103200*subtitle} else if(qty_code.value ==7000){price.value=120400*subtitle} else if(qty_code.value ==8000){price.value=137600*subtitle} else if(qty_code.value ==9000){price.value=154800*subtitle} else if(qty_code.value ==10000){price.value=172000*subtitle} else if(qty_code.value ==20000){price.value=344000*subtitle} else if(qty_code.value ==30000){price.value=516000*subtitle} else if(qty_code.value ==40000){price.value=688000*subtitle} else if(qty_code.value ==50000){price.value=860000*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value ==200){price.value=8000*subtitle} else if(qty_code.value ==500){price.value=11400*subtitle} else if(qty_code.value ==1000){price.value=19100*subtitle} else if(qty_code.value ==2000){price.value=38200*subtitle} else if(qty_code.value ==3000){price.value=57300*subtitle} else if(qty_code.value ==4000){price.value=76400*subtitle} else if(qty_code.value ==5000){price.value=95500*subtitle} else if(qty_code.value ==6000){price.value=114600*subtitle} else if(qty_code.value ==7000){price.value=133700*subtitle} else if(qty_code.value ==8000){price.value=152800*subtitle} else if(qty_code.value ==9000){price.value=171900*subtitle} else if(qty_code.value ==10000){price.value=191000*subtitle} else if(qty_code.value ==20000){price.value=382000*subtitle} else if(qty_code.value ==30000){price.value=573000*subtitle} else if(qty_code.value ==40000){price.value=764000*subtitle} else if(qty_code.value ==50000){price.value=955000*subtitle} else {price.value = 0} } } } console.log("cost="+price.value); //»çÀÌÁî¿¡ µû¶ó °¡°Ýº¯µ¿ (ÀÚ¸´¼ö¿¡ µû¶ó.) if(document.orderform.size_code.value == "card1" || document.orderform.size_code.value == "card4" || document.orderform.size_code.value == "card5"){ price.value = (price.value*3); } else{ price.value = (price.value*4); } price01_change(); } function excostchange() { var kind_code =document.orderform.kind_code; var kind_code_1 =document.orderform.kind_code_1; 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+2; document.orderform.cut2.value = size02+2; 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)); if(size_code.value != "extra") { return false; } if(size1>size2){size = size2;} else{size=size1;} document.orderform.wsize.value = size; if(kind_code_1.value == "pdk01") { if(paper_code.value == "ppk16")//ÄÚÆÃ,200a { //´çÀÏÆÇ if(document.orderform.now_date[0].checked == true && qty_code.value > 200){ if(document.orderform.est_type.value == "Y"){ document.orderform.now_date[1].checked = true; } else{ document.orderform.now_date[1].checked = true; alert('ÄÚÆÃÀçÁúÀÇ ´çÀÏÆÇÀº 200¸Å±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.'); } } if(color_code.value == "cld04") { if(qty_code.value == 200){price.value=(2200*size)*subtitle} else if(qty_code.value == 500){price.value =(3400*size)*subtitle} else if(qty_code.value == 1000){price.value = (6800*size)*subtitle} else if(qty_code.value == 2000){price.value = (12600*size)*subtitle} else if(qty_code.value == 3000){price.value =(18400*size)*subtitle} else if(qty_code.value == 4000){price.value =(21200*size)*subtitle} else if(qty_code.value == 5000){price.value =(26000*size)*subtitle} else if(qty_code.value == 6000){price.value =(30800*size)*subtitle} else if(qty_code.value == 7000){price.value =(37600*size)*subtitle} else if(qty_code.value == 8000){price.value =(41400*size)*subtitle} else if(qty_code.value == 9000){price.value =(44200*size)*subtitle} else if(qty_code.value == 10000){price.value =(48000*size)*subtitle} else if(qty_code.value == 20000){price.value =(96000*size)*subtitle} else if(qty_code.value == 30000){price.value =(144000*size)*subtitle} else if(qty_code.value == 40000){price.value =(192000*size)*subtitle} else if(qty_code.value == 50000){price.value =(240000*size)*subtitle} else if(qty_code.value == 100000){price.value =(480000*size)*subtitle} else if(qty_code.value == 200000){price.value =(960000*size)*subtitle} else if(qty_code.value == 300000){price.value =(1440000*size)*subtitle} else {price.value = 0} } else if(color_code.value == "cld05") { if(qty_code.value == 200){price.value=(2200*size)*subtitle} else if(qty_code.value == 500){price.value =(3400*size)*subtitle} else if(qty_code.value == 1000){price.value = (6800*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=(3200*size)*subtitle} else if(qty_code.value == 500){price.value =(4400*size)*subtitle} else if(qty_code.value == 1000){price.value = (8800*size)*subtitle} else if(qty_code.value == 2000){price.value = (17600*size)*subtitle} else if(qty_code.value == 3000){price.value =(26400*size)*subtitle} else if(qty_code.value == 4000){price.value =(31200*size)*subtitle} else if(qty_code.value == 5000){price.value =(37000*size)*subtitle} else if(qty_code.value == 6000){price.value =(42800*size)*subtitle} else if(qty_code.value == 7000){price.value =(49600*size)*subtitle} else if(qty_code.value == 8000){price.value =(52400*size)*subtitle} else if(qty_code.value == 9000){price.value =(55200*size)*subtitle} else if(qty_code.value == 10000){price.value =(57000*size)*subtitle} else if(qty_code.value == 20000){price.value =(114000*size)*subtitle} else if(qty_code.value == 30000){price.value =(171000*size)*subtitle} else if(qty_code.value == 40000){price.value =(228000*size)*subtitle} else if(qty_code.value == 50000){price.value =(285000*size)*subtitle} else if(qty_code.value == 100000){price.value =(570000*size)*subtitle} else if(qty_code.value == 200000){price.value =(1140000*size)*subtitle} else if(qty_code.value == 300000){price.value =(1710000*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=(2200*size)*subtitle} else if(qty_code.value == 500){price.value=(2900*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=(2200*size)*subtitle} else if(qty_code.value == 500){price.value=(2900*size)*subtitle} else { alert("ºñÄÚÆÃÀϹÝƼÄÏ ¾ç¸é5µµ´Â 200¸Å, 500¸Å¸¸ ÁÖ¹®ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù."); qty_code.value = 500; price.value = (2900*size)*subtitle; } } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value=(2700*size)*subtitle} else if(qty_code.value == 500){price.value=(4400*size)*subtitle} else if(qty_code.value == 1000){price.value=(8800*size)*subtitle} else if(qty_code.value == 2000){price.value=(17600*size)*subtitle} else if(qty_code.value == 3000){price.value=(26400*size)*subtitle} else if(qty_code.value == 4000){price.value=(31200*size)*subtitle} else if(qty_code.value == 5000){price.value=(37000*size)*subtitle} else if(qty_code.value == 6000){price.value=(42800*size)*subtitle} else if(qty_code.value == 7000){price.value=(49600*size)*subtitle} else if(qty_code.value == 8000){price.value=(52400*size)*subtitle} else if(qty_code.value == 9000){price.value=(55200*size)*subtitle} else if(qty_code.value == 10000){price.value=(57000*size)*subtitle} else if(qty_code.value == 20000){price.value=(114000*size)*subtitle} else if(qty_code.value == 30000){price.value=(171000*size)*subtitle} else if(qty_code.value == 40000){price.value=(228000*size)*subtitle} else if(qty_code.value == 50000){price.value=(285000*size)*subtitle} else if(qty_code.value == 100000){price.value=(570000*size)*subtitle} else if(qty_code.value == 200000){price.value=(1140000*size)*subtitle} else if(qty_code.value == 300000){price.value=(1710000*size)*subtitle} else {price.value = 0} } } } else if(kind_code_1.value == "pdk01_u") { //´çÀÏÆÇ if(document.orderform.now_date[0].checked==true){ alert('±Û·Î½ÃUV, °íÇ°°ÝÄÚÆÃ(300g)ÀçÁúÀº ´çÀÏÆÇÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.'); document.orderform.now_date[1].checked=true; } if(paper_code.value == "ppka1") { if(color_code.value == "cld04") { if(qty_code.value == 500){price.value=(7600*size)*subtitle} else if(qty_code.value == 1000){price.value=(12600*size)*subtitle} else if(qty_code.value == 2000){price.value=(25200*size)*subtitle} else if(qty_code.value == 3000){price.value=(37800*size)*subtitle} else if(qty_code.value == 4000){price.value=(50400*size)*subtitle} else if(qty_code.value == 5000){price.value=(63000*size)*subtitle} else if(qty_code.value == 6000){price.value=(75700*size)*subtitle} else if(qty_code.value == 7000){price.value=(88300*size)*subtitle} else if(qty_code.value == 8000){price.value=(100900*size)*subtitle} else if(qty_code.value == 9000){price.value=(113500*size)*subtitle} else if(qty_code.value == 10000){price.value=(126100*size)*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 500){price.value=(9400*size)*subtitle} else if(qty_code.value == 1000){price.value=(14400*size)*subtitle} else if(qty_code.value == 2000){price.value=(28800*size)*subtitle} else if(qty_code.value == 3000){price.value=(43300*size)*subtitle} else if(qty_code.value == 4000){price.value=(57700*size)*subtitle} else if(qty_code.value == 5000){price.value=(72100*size)*subtitle} else if(qty_code.value == 6000){price.value=(86600*size)*subtitle} else if(qty_code.value == 7000){price.value=(101000*size)*subtitle} else if(qty_code.value == 8000){price.value=(115400*size)*subtitle} else if(qty_code.value == 9000){price.value=(129900*size)*subtitle} else if(qty_code.value == 10000){price.value=(144300*size)*subtitle} else {price.value = 0} } } } else if(kind_code_1.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 ( (17 < 11 || 17 >= 20) && (5 == 2 || 5 == 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=(7200*size)*subtitle} else if(qty_code.value == 500){price.value=(10100*size)*subtitle} else if(qty_code.value == 1000){price.value=(17200*size)*subtitle} else if(qty_code.value == 2000){price.value=(34400*size)*subtitle} else if(qty_code.value == 3000){price.value=(51600*size)*subtitle} else if(qty_code.value == 4000){price.value=(68800*size)*subtitle} else if(qty_code.value == 5000){price.value=(86000*size)*subtitle} else if(qty_code.value == 6000){price.value=(103200*size)*subtitle} else if(qty_code.value == 7000){price.value=(120400*size)*subtitle} else if(qty_code.value == 8000){price.value=(137600*size)*subtitle} else if(qty_code.value == 9000){price.value=(154800*size)*subtitle} else if(qty_code.value == 10000){price.value=(172000*size)*subtitle} else if(qty_code.value == 20000){price.value=(344000*size)*subtitle} else if(qty_code.value == 30000){price.value=(516000*size)*subtitle} else if(qty_code.value == 40000){price.value=(688000*size)*subtitle} else if(qty_code.value == 50000){price.value=(860000*size)*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value=(8000*size)*subtitle} else if(qty_code.value == 500){price.value=(11400*size)*subtitle} else if(qty_code.value == 1000){price.value=(19100*size)*subtitle} else if(qty_code.value == 2000){price.value=(38200*size)*subtitle} else if(qty_code.value == 3000){price.value=(57300*size)*subtitle} else if(qty_code.value == 4000){price.value=(76400*size)*subtitle} else if(qty_code.value == 5000){price.value=(95500*size)*subtitle} else if(qty_code.value == 6000){price.value=(114600*size)*subtitle} else if(qty_code.value == 7000){price.value=(133700*size)*subtitle} else if(qty_code.value == 8000){price.value=(152800*size)*subtitle} else if(qty_code.value == 9000){price.value=(171900*size)*subtitle} else if(qty_code.value == 10000){price.value=(191000*size)*subtitle} else if(qty_code.value == 20000){price.value=(382000*size)*subtitle} else if(qty_code.value == 30000){price.value=(573000*size)*subtitle} else if(qty_code.value == 40000){price.value=(764000*size)*subtitle} else if(qty_code.value == 50000){price.value=(955000*size)*subtitle} else {price.value = 0} } } } console.log("extcost="+price.value); if(size01>200 || size02>200) //201mm ÀÌ»ó »çÀÌÁî´Â ±âº»°¡ 1.1¹è Àû¿ë { price.value = eval(price.value)/subtitle; price.value = Math.round((price.value * 1.1)/100)*100; price.value = eval(price.value)*subtitle; } 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_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); } 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]; } }