function costchange() { var kind_code =document.orderform.kind_code; var paper_code =document.orderform.paper_code; var color_code =document.orderform.color_code; var qty_code =document.orderform.qty_code; var coat_type =document.orderform.coat_type; var price =document.orderform.pay; var subtitle = document.orderform.product_num.value; var coting = document.orderform.coting; var after_bak = document.orderform.after_bak.value; //¹Úº¯¼ö var bak_price = 0; var addbc = document.orderform.addbc.value; //¸íÇÔ²ÈÀ̺¯¼ö var addbc_price = 0; var frm = document.orderform; if (document.orderform.paper_code.value == "ppkhl" ){ document.orderform.after_bak.value=""; document.orderform.after_bak.style.background = "#eeeeee"; document.orderform.after_bak.disabled = true; document.orderform.addbc.value=""; document.orderform.addbc.style.background = "#eeeeee"; document.orderform.addbc.disabled = true; document.orderform.qty_code.options[0].value = "1"; document.orderform.qty_code.options[0].text = "1¸Å"; document.orderform.qty_code.options[1].value = "5"; document.orderform.qty_code.options[1].text = "5¸Å"; document.orderform.qty_code.options[2].value = "10"; document.orderform.qty_code.options[2].text = "10¸Å"; document.orderform.qty_code.options[3].value = "20"; document.orderform.qty_code.options[3].text = "20¸Å"; document.orderform.qty_code.options[4].value = "30"; document.orderform.qty_code.options[4].text = "30¸Å"; document.orderform.qty_code.options[5].value = "40"; document.orderform.qty_code.options[5].text = "40¸Å"; document.orderform.qty_code.options[6].value = "50"; document.orderform.qty_code.options[6].text = "50¸Å"; document.orderform.qty_code.options[7].value = "60"; document.orderform.qty_code.options[7].text = "60¸Å"; document.orderform.qty_code.options[8].value = "70"; document.orderform.qty_code.options[8].text = "70¸Å"; document.orderform.qty_code.options[9].value = "80"; document.orderform.qty_code.options[9].text = "80¸Å"; document.orderform.qty_code.options[10].value = "90"; document.orderform.qty_code.options[10].text = "90¸Å"; document.orderform.qty_code.options[11].value = "100"; document.orderform.qty_code.options[11].text = "100¸Å"; document.orderform.qty_code.options[12].value = "500"; document.orderform.qty_code.options[12].text = "500¸Å"; document.orderform.qty_code.options[13].value = "----"; document.orderform.qty_code.options[13].text = "----"; } else{ //document.orderform.after_bak.value=""; document.orderform.after_bak.style.background = "#ffffff"; document.orderform.after_bak.disabled = false; //document.orderform.addbc.value=""; document.orderform.addbc.style.background = "#ffffff"; document.orderform.addbc.disabled = false; 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 = "3000"; document.orderform.qty_code.options[2].text = "3,000¸Å"; document.orderform.qty_code.options[3].value = "4000"; document.orderform.qty_code.options[3].text = "4,000¸Å"; document.orderform.qty_code.options[4].value = "5000"; document.orderform.qty_code.options[4].text = "5,000¸Å"; document.orderform.qty_code.options[5].value = "6000"; document.orderform.qty_code.options[5].text = "6,000¸Å"; document.orderform.qty_code.options[6].value = "7000"; document.orderform.qty_code.options[6].text = "7,000¸Å"; document.orderform.qty_code.options[7].value = "8000"; document.orderform.qty_code.options[7].text = "8,000¸Å"; document.orderform.qty_code.options[8].value = "9000"; document.orderform.qty_code.options[8].text = "9,000¸Å"; document.orderform.qty_code.options[9].value = "10000"; document.orderform.qty_code.options[9].text = "10,000¸Å"; document.orderform.qty_code.options[10].value = "20000"; document.orderform.qty_code.options[10].text = "20,000¸Å"; document.orderform.qty_code.options[11].value = "30000"; document.orderform.qty_code.options[11].text = "30,000¸Å"; document.orderform.qty_code.options[12].value = "40000"; document.orderform.qty_code.options[12].text = "40,000¸Å"; document.orderform.qty_code.options[13].value = "50000"; document.orderform.qty_code.options[13].text = "50,000¸Å"; } if (document.orderform.paper_code.value == "ppkhl" ){ document.all.out_msg.style.display="none"; document.all.out_msg_holder.style.display="none"; } else if (document.orderform.paper_code.value == "ppkhm" ){ document.all.out_msg.style.display="none"; document.all.out_msg_holder.style.display="block"; } else if (document.orderform.paper_code.value == "ppkhn" ){ document.all.out_msg.style.display="none"; document.all.out_msg_holder.style.display="none"; } memo1_change(); var qty_value = eval(qty_code.value); if(paper_code.value == "ppkhl") //°¡º¯Çü ¼Ò·® LȦ´õ { if(qty_code.value == 1){price.value = 6000*qty_value} else if(qty_code.value == 5){price.value = 5000*qty_value} else if(qty_code.value == 10){price.value = 3000*qty_value} else if(qty_code.value == 20){price.value = 2900*qty_value} else if(qty_code.value == 30){price.value = 2800*qty_value} else if(qty_code.value == 40){price.value = 2700*qty_value} else if(qty_code.value == 50){price.value = 2600*qty_value} else if(qty_code.value == 60){price.value = 2500*qty_value} else if(qty_code.value == 70){price.value = 2400*qty_value} else if(qty_code.value == 80){price.value = 2300*qty_value} else if(qty_code.value == 90){price.value = 2200*qty_value} else if(qty_code.value == 100){price.value = 2100*qty_value} else if(qty_code.value == 500){price.value = 2000*qty_value} } else { if(qty_code.value == 1000){price.value = 300*qty_value} else if(qty_code.value == 2000){price.value = 250*qty_value} else if(qty_code.value == 3000){price.value = 230*qty_value} else if(qty_code.value == 4000){price.value = 230*qty_value} else if(qty_code.value == 5000){price.value = 200*qty_value} else if(qty_code.value == 6000){price.value = 200*qty_value} else if(qty_code.value == 7000){price.value = 190*qty_value} else if(qty_code.value == 8000){price.value = 190*qty_value} else if(qty_code.value == 9000){price.value = 190*qty_value} else if(qty_code.value == 10000){price.value = 180*qty_value} else if(qty_code.value == 20000){price.value = 170*qty_value} else if(qty_code.value == 30000){price.value = 170*qty_value} else if(qty_code.value == 40000){price.value = 160*qty_value} else if(qty_code.value == 50000){price.value = 160*qty_value} if(after_bak != ""){ if(qty_code.value == 1000){bak_price = 200*qty_value} else if(qty_code.value == 2000){bak_price = 180*qty_value} else if(qty_code.value == 3000){bak_price = 160*qty_value} else if(qty_code.value == 4000){bak_price = 160*qty_value} else if(qty_code.value == 5000){bak_price = 150*qty_value} else if(qty_code.value == 6000){bak_price = 150*qty_value} else if(qty_code.value == 7000){bak_price = 140*qty_value} else if(qty_code.value == 8000){bak_price = 140*qty_value} else if(qty_code.value == 9000){bak_price = 140*qty_value} else if(qty_code.value == 10000){bak_price = 130*qty_value} else if(qty_code.value == 20000){bak_price = 130*qty_value} else if(qty_code.value == 30000){bak_price = 130*qty_value} else if(qty_code.value == 40000){bak_price = 120*qty_value} else if(qty_code.value == 50000){bak_price = 120*qty_value} document.all.break_after_bak_detail.innerHTML=frm.after_bak[frm.after_bak.selectedIndex].text; document.all.break_after_bak.style.display=''; frm.after_price_bak_total.value=eval(bak_price); } else { bak_price = 0; document.all.break_after_bak.style.display='none'; frm.after_price_bak_total.value=0; } if(addbc != ""){ addbc_price = qty_value*50; document.all.break_after_addbc_detail.innerHTML=frm.addbc[frm.addbc.selectedIndex].text; document.all.break_after_addbc.style.display=''; frm.after_price_addbc_total.value=eval(addbc_price); } else { addbc_price = 0; document.all.break_after_addbc.style.display='none'; frm.after_price_addbc_total.value=0; } var total_price_after = 0; total_price_after = eval(frm.after_price_bak_total.value) + eval(frm.after_price_addbc_total.value); //ÈÄ°¡°ø frm.after_total_price_plus.value = total_price_after; document.all.span_total_after_price_plus.innerHTML = comma(total_price_after); } 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; var coat_type = document.orderform.coat_type; document.all.memo1.innerHTML = paper_code.options[paper_code.selectedIndex].innerText + " / " + color_code.options[color_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 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(eval(price.value))); document.all.break_pro_price_plus.innerHTML = comma(Math.round(eval(price.value))); //Á¦Ç° ÃÑ¾× // document.all.view_price.innerHTML = comma(Math.round(eval(price.value))); //Á¦Ç° ÃѾ×(»ó´Ü)20111226 Ãß°¡ document.all.span_total_estimate_prie.innerHTML = comma(Math.round(eval(price.value) + eval(after_price))); //Á¦Ç° + ÈÄ°¡°ø ÃÑ¾× //ºÎ°¡¼¼ 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); }