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 subtitle = document.orderform.product_num.value; var coting = document.orderform.coting.value; document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 1045mm x 734mm" if(paper_code.value == "ppk05" || paper_code.value == "ppk14") //150¾ÆÆ®, ½º³ë¿ì { if(qty_code.value == 100){price.value = 119000*subtitle} else if(qty_code.value == 200){price.value = 135000*subtitle} else if(qty_code.value == 300){price.value = 151000*subtitle} else if(qty_code.value == 400){price.value = 166000*subtitle} else if(qty_code.value == 500){price.value = 182000*subtitle} } else if(paper_code.value == "ppk06" || paper_code.value == "ppk15") //180¾ÆÆ®, ½º³ë¿ì { if(qty_code.value == 100){price.value = 126000*subtitle} else if(qty_code.value == 200){price.value = 144000*subtitle} else if(qty_code.value == 300){price.value = 163000*subtitle} else if(qty_code.value == 400){price.value = 182000*subtitle} else if(qty_code.value == 500){price.value = 201000*subtitle} } else if(paper_code.value == "ppk23") //150¸ðÁ¶ { if(qty_code.value == 100){price.value = 118000*subtitle} else if(qty_code.value == 200){price.value = 134000*subtitle} else if(qty_code.value == 300){price.value = 149000*subtitle} else if(qty_code.value == 400){price.value = 164000*subtitle} else if(qty_code.value == 500){price.value = 179000*subtitle} } else if(paper_code.value == "ppk24") //180¸ðÁ¶ { if(qty_code.value == 100){price.value = 126000*subtitle} else if(qty_code.value == 200){price.value = 143000*subtitle} else if(qty_code.value == 300){price.value = 162000*subtitle} else if(qty_code.value == 400){price.value = 181000*subtitle} else if(qty_code.value == 500){price.value = 200000*subtitle} } //ÄÚÆÃ ¼±Åýà if(coting == "spk90"){ document.orderform.coting_price.value = 60000; document.orderform.after_price_bak_total.value = 60000; document.orderform.after_total_price_plus.value = 60000; } else if(coting == "spk92"){ document.orderform.coting_price.value = 60000; document.orderform.after_price_bak_total.value = 60000; document.orderform.after_total_price_plus.value = 60000; } else { document.orderform.coting_price.value = 0; document.orderform.after_price_bak_total.value = 0; document.orderform.after_total_price_plus.value = 0; } 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; 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_after_price_plus.innerHTML = comma(after_price); //Èİ¡°ø±Ý¾× 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]; } }