function size_change() { var kind_code =document.orderform.kind_code; var paper_code =document.orderform.paper_code; var size_code =document.orderform.size_code; var color_code =document.orderform.color_code; //UV Àμâ true if(paper_code.value=="ppkhe" || paper_code.value=="ppkhf"){ // alert("PP½ãĸÀº UVÀμâ Æ÷ÇÔ ÀÔ´Ï´Ù."); color_code.options[0].selected = true; color_code.options[1].selected = false; } //UV Àμâ false if(paper_code.value=="ppkhg" || paper_code.value=="ppkhh"){ // alert("Á¾À̽ãĸÀº UVÀμâ Æ÷ÇÔÇÏÁö ¾Ê½À´Ï´Ù."); color_code.options[1].selected = true; color_code.options[0].selected = false; } if(paper_code.value=="ppkhe" || paper_code.value=="ppkhg"){ size_code.options[0].selected = true; size_code.options[1].selected = false; document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : (â) 295mm * 221mm (¶ì) 605mm * 80mm"; } else if(paper_code.value=="ppkhf" || paper_code.value=="ppkhh"){ size_code.options[1].selected = true; size_code.options[0].selected = false; document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 346mm x 423mm"; } } function qty_change(){ if(document.orderform.paper_code.value == "ppkhg" || document.orderform.paper_code.value == "ppkhh") { 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¸Å"; } else { document.orderform.qty_code.options[0].value = "1000"; document.orderform.qty_code.options[0].text = "1000¸Å"; document.orderform.qty_code.options[1].value = "2000"; document.orderform.qty_code.options[1].text = "2000¸Å"; document.orderform.qty_code.options[2].value = "3000"; document.orderform.qty_code.options[2].text = "3000¸Å"; document.orderform.qty_code.options[3].value = "4000"; document.orderform.qty_code.options[3].text = "4000¸Å"; document.orderform.qty_code.options[4].value = "5000"; document.orderform.qty_code.options[4].text = "5000¸Å"; document.orderform.qty_code.options[5].value = "6000"; document.orderform.qty_code.options[5].text = "6000¸Å"; document.orderform.qty_code.options[6].value = "7000"; document.orderform.qty_code.options[6].text = "7000¸Å"; document.orderform.qty_code.options[7].value = "8000"; document.orderform.qty_code.options[7].text = "8000¸Å"; document.orderform.qty_code.options[8].value = "9000"; document.orderform.qty_code.options[8].text = "9000¸Å"; document.orderform.qty_code.options[9].value = "10000"; document.orderform.qty_code.options[9].text = "10000¸Å"; document.orderform.qty_code.options[10].value = "0"; document.orderform.qty_code.options[10].text = "----"; document.orderform.qty_code.options[11].value = "0"; document.orderform.qty_code.options[11].text = "----"; } } function costchange() { 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 partcoting_price =document.orderform.partcoting_price; var subtitle = document.orderform.product_num.value; if(document.orderform.paper_code.value == "ppkhe") { //PP½ãĸ A if(qty_code.value == 1000){price.value = 460000*subtitle} else if(qty_code.value == 2000){price.value = 700000*subtitle} else if(qty_code.value == 3000){price.value = 930000*subtitle} else if(qty_code.value == 4000){price.value = 1240000*subtitle} else if(qty_code.value == 5000){price.value = 1250000*subtitle} else if(qty_code.value == 6000){price.value = 1440000*subtitle} else if(qty_code.value == 7000){price.value = 1680000*subtitle} else if(qty_code.value == 8000){price.value = 1920000*subtitle} else if(qty_code.value == 9000){price.value = 2160000*subtitle} else if(qty_code.value == 10000){price.value = 2200000*subtitle} } if(document.orderform.paper_code.value == "ppkhf") {//PP½ãĸ B if(qty_code.value == 1000){price.value = 500000*subtitle} else if(qty_code.value == 2000){price.value = 780000*subtitle} else if(qty_code.value == 3000){price.value = 1050000*subtitle} else if(qty_code.value == 4000){price.value = 1400000*subtitle} else if(qty_code.value == 5000){price.value = 1700000*subtitle} else if(qty_code.value == 6000){price.value = 2040000*subtitle} else if(qty_code.value == 7000){price.value = 2380000*subtitle} else if(qty_code.value == 8000){price.value = 2720000*subtitle} else if(qty_code.value == 9000){price.value = 3060000*subtitle} else if(qty_code.value == 10000){price.value = 3200000*subtitle} } if(document.orderform.paper_code.value == "ppkhg") {//Á¾À̽ãĸ A if(qty_code.value == 200){price.value = 260000*subtitle} else if(qty_code.value == 500){price.value = 285000*subtitle} else if(qty_code.value == 1000){price.value = 310000*subtitle} else if(qty_code.value == 2000){price.value = 380000*subtitle} else if(qty_code.value == 3000){price.value = 480000*subtitle} else if(qty_code.value == 4000){price.value = 600000*subtitle} else if(qty_code.value == 5000){price.value = 700000*subtitle} else if(qty_code.value == 6000){price.value = 780000*subtitle} else if(qty_code.value == 7000){price.value = 840000*subtitle} else if(qty_code.value == 8000){price.value = 960000*subtitle} else if(qty_code.value == 9000){price.value = 1080000*subtitle} else if(qty_code.value == 10000){price.value = 1100000*subtitle} } if(document.orderform.paper_code.value == "ppkhh") {//Á¾À̽ãĸ B if(qty_code.value == 200){price.value = 280000*subtitle} else if(qty_code.value == 500){price.value = 315000*subtitle} else if(qty_code.value == 1000){price.value = 370000*subtitle} else if(qty_code.value == 2000){price.value = 460000*subtitle} else if(qty_code.value == 3000){price.value = 600000*subtitle} else if(qty_code.value == 4000){price.value = 680000*subtitle} else if(qty_code.value == 5000){price.value = 850000*subtitle} else if(qty_code.value == 6000){price.value = 960000*subtitle} else if(qty_code.value == 7000){price.value = 1050000*subtitle} else if(qty_code.value == 8000){price.value = 1120000*subtitle} else if(qty_code.value == 9000){price.value = 1260000*subtitle} else if(qty_code.value == 10000){price.value = 1380000*subtitle} } price01_change(); memo1_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; var price = frm.pay; var price_01 = frm.price_01; price_01.value = Math.round(price.value); document.all.span_price.innerHTML = comma(Math.round(eval(price.value) + eval(document.orderform.after_pay.value))); document.all.break_pro_price_plus.innerHTML = comma(Math.round(eval(price.value) + eval(document.orderform.after_pay.value))); //Á¦Ç° ÃÑ¾× document.all.span_total_estimate_prie.innerHTML = comma(Math.round(eval(price.value) + eval(document.orderform.after_pay.value))); //Á¦Ç° //ºÎ°¡¼¼ tax_price = (eval(price.value) + eval(document.orderform.after_pay.value))/10 frm.tax_price.value = tax_price; document.all.span_tax_price.innerHTML = comma(tax_price); //°ßÀûÃÑ¾× estimate_price = (eval(price.value) + eval(document.orderform.after_pay.value))+eval(tax_price) frm.estimate_price_end.value = estimate_price; document.all.span_estimate_price_end.innerHTML = comma(estimate_price); }