function chkcost() { memo1_change(); var paper_num = 0; if(document.orderform.size_code.value == "pss17"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 213mm x 300mm" paper_num = 4000; document.orderform.qty_code.options[0].value = "1000"; document.orderform.qty_code.options[0].text = "1,000¸Å"; document.orderform.qty_code.options[1].value = "2000"; document.orderform.qty_code.options[1].text = "2,000¸Å"; document.orderform.qty_code.options[2].value = "4000"; document.orderform.qty_code.options[2].text = "4,000¸Å"; for (i=2 ; i<=98 ; i++) { document.orderform.qty_code.options[i+1].value = i*4000; document.orderform.qty_code.options[i+1].text = comma(i*4000)+"¸Å"; } } else if(document.orderform.size_code.value == "pss18"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 300mm x 423mm" paper_num = 2000; document.orderform.qty_code.options[0].value = "1000"; document.orderform.qty_code.options[0].text = "1,000¸Å"; document.orderform.qty_code.options[1].value = "2000"; document.orderform.qty_code.options[1].text = "2,000¸Å"; for (i=2 ; i<=98 ; i++) { document.orderform.qty_code.options[i].value = i*2000; document.orderform.qty_code.options[i].text = comma(i*2000)+"¸Å"; } } else if(document.orderform.size_code.value == "pss21"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 185mm x 260mm" paper_num = 8000; document.orderform.qty_code.options[0].value = "1000"; document.orderform.qty_code.options[0].text = "1,000¸Å"; document.orderform.qty_code.options[1].value = "2000"; document.orderform.qty_code.options[1].text = "2,000¸Å"; document.orderform.qty_code.options[2].value = "4000"; document.orderform.qty_code.options[2].text = "4,000¸Å"; document.orderform.qty_code.options[3].value = "8000"; document.orderform.qty_code.options[3].text = "8,000¸Å"; for (i=2 ; i<=97 ; i++) { document.orderform.qty_code.options[i+2].value = i*8000; document.orderform.qty_code.options[i+2].text = comma(i*8000)+"¸Å"; } } else if(document.orderform.size_code.value == "pss22"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 260mm x 370mm" paper_num = 4000; document.orderform.qty_code.options[0].value = "1000"; document.orderform.qty_code.options[0].text = "1,000¸Å"; document.orderform.qty_code.options[1].value = "2000"; document.orderform.qty_code.options[1].text = "2,000¸Å"; document.orderform.qty_code.options[2].value = "4000"; document.orderform.qty_code.options[2].text = "4,000¸Å"; for (i=2 ; i<=98 ; i++) { document.orderform.qty_code.options[i+1].value = i*4000; document.orderform.qty_code.options[i+1].text = comma(i*4000)+"¸Å"; } } document.getElementById("number_span").innerHTML = "¸Å¼ö : "+comma(eval(document.orderform.qty_code.value))+"¸Å"; document.orderform.real_paper_number.value=eval(document.orderform.qty_code.value); 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 = ""; /** A3ÀÏ°æ¿ì Ÿ°øºÎºÐ µð½º¾îºí ó¸® (19.10.24) **/ if(document.orderform.size_code.value == "pss18") { document.all.after_chk[0].disabled = true; } else{ document.all.after_chk[0].disabled = false; } costchange(); } 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; if(paper_code.value == "ppkv8")// ÇÁ¸®¹Ì¾ö ¿¡ÄÚÁö { if(size_code.value == "pss17")// A4 { if(color_code.value == "cld04") { if(qty_code.value == 1000){price.value = 32000*subtitle} else if(qty_code.value == 2000){price.value = 38000*subtitle} else if(qty_code.value == 4000){price.value = 55000*subtitle} else { price.value = (eval(qty_code.value)/4000) * 55000 * subtitle; } } else if(color_code.value == "cld08") { if(qty_code.value == 1000){price.value = 37000*subtitle} else if(qty_code.value == 2000){price.value = 44000*subtitle} else if(qty_code.value == 4000){price.value = 64000*subtitle} else { price.value = (eval(qty_code.value)/4000) * 64000 * subtitle; } } } else if(size_code.value == "pss18")// A3 { if(color_code.value == "cld04") { if(qty_code.value == 500){price.value = 36000*subtitle} else if(qty_code.value == 1000){price.value = 46000*subtitle} else if(qty_code.value == 2000){price.value = 65000*subtitle} else { price.value = (eval(qty_code.value)/2000) * 65000 * subtitle; } } else if(color_code.value == "cld08") { if(qty_code.value == 500){price.value = 44000*subtitle} else if(qty_code.value == 1000){price.value = 54000*subtitle} else if(qty_code.value == 2000){price.value = 78000*subtitle} else { price.value = (eval(qty_code.value)/2000) * 78000 * subtitle; } } } else if(size_code.value == "pss21")// 16Àý { if(color_code.value == "cld04") { if(qty_code.value == 1000){price.value = 24000*subtitle} else if(qty_code.value == 2000){price.value = 31000*subtitle} else if(qty_code.value == 4000){price.value = 44000*subtitle} else if(qty_code.value == 8000){price.value = 76000*subtitle} else { price.value = (eval(qty_code.value)/8000) * 76000 * subtitle; } } else if(color_code.value == "cld08") { if(qty_code.value == 1000){price.value = 30000*subtitle} else if(qty_code.value == 2000){price.value = 36000*subtitle} else if(qty_code.value == 4000){price.value = 50000*subtitle} else if(qty_code.value == 8000){price.value = 87000*subtitle} else { price.value = (eval(qty_code.value)/8000) * 87000 * subtitle; } } } else if(size_code.value == "pss22")// 8Àý { if(color_code.value == "cld04") { if(qty_code.value == 500){price.value = 27000*subtitle} else if(qty_code.value == 1000){price.value = 37000*subtitle} else if(qty_code.value == 2000){price.value = 50000*subtitle} else if(qty_code.value == 4000){price.value = 80000*subtitle} else { price.value = (eval(qty_code.value)/4000) * 80000 * subtitle; } } else if(color_code.value == "cld08") { if(qty_code.value == 500){price.value = 34000*subtitle} else if(qty_code.value == 1000){price.value = 44000*subtitle} else if(qty_code.value == 2000){price.value = 62000*subtitle} else if(qty_code.value == 4000){price.value = 93000*subtitle} else { price.value = (eval(qty_code.value)/4000) * 93000 * subtitle; } } } } price.value = eval(price.value) / subtitle; price.value = eval(price.value) * 1.2; //Á¦ÁÖµµ °¡°Ý price.value = Math.round(eval(price.value)/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; } function price01_change() { var frm = document.orderform; //ÈÄ°¡°ø_¹Ì½Ì if(frm.after_mis.value!=""){ after_mis_cost(); } //ÈÄ°¡°ø_Ÿ°ø if(frm.after_tar.value!=""){ after_tar_cost(); } //ÈÄ°¡°ø_Á¢Áö if(frm.after_jub_print.value!=""){ after_jub_print_cost(); } //ÈÄ°¡°ø_º°Àç´Ü if(frm.after_etc_cut.value!=""){ after_etc_cut_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); }