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 bak_code = document.orderform.after_bak.value; if (bak_code == "spk25" || bak_code == "spk26" || bak_code == "spk29"){ document.orderform.after_bak_side_new.value = "1"; } else if (bak_code == "spk59" || bak_code == "spk60" || bak_code == "spk63"){ document.orderform.after_bak_side_new.value = "2"; } memo1_change(); document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 232mm x 157mm" if (bak_code == ""){ if(qty_code.value >= 50 && qty_code.value <= 1000){price.value = eval(qty_code.value)*500*subtitle} else if(qty_code.value == 2000){price.value = eval(qty_code.value)*500*subtitle} else if(qty_code.value == 3000){price.value = eval(qty_code.value)*500*subtitle} else if(qty_code.value == 4000){price.value = eval(qty_code.value)*500*subtitle} else if(qty_code.value == 5000){price.value = eval(qty_code.value)*500*subtitle} else if(qty_code.value == 6000){price.value = eval(qty_code.value)*500*subtitle} else if(qty_code.value == 7000){price.value = eval(qty_code.value)*500*subtitle} else if(qty_code.value == 8000){price.value = eval(qty_code.value)*500*subtitle} else if(qty_code.value == 9000){price.value = eval(qty_code.value)*500*subtitle} else if(qty_code.value == 10000){price.value = eval(qty_code.value)*500*subtitle} } else if (bak_code == "spk25" || bak_code == "spk26" || bak_code == "spk29"){ //´Ü¸é¹Ú if(qty_code.value == 50){price.value = eval(qty_code.value)*1300*subtitle} else if(qty_code.value == 100){price.value = eval(qty_code.value)*1050*subtitle} else if(qty_code.value == 200){price.value = eval(qty_code.value)*900*subtitle} else if(qty_code.value == 300){price.value = eval(qty_code.value)*790*subtitle} else if(qty_code.value == 400){price.value = eval(qty_code.value)*780*subtitle} else if(qty_code.value == 500){price.value = eval(qty_code.value)*770*subtitle} else if(qty_code.value == 600){price.value = eval(qty_code.value)*770*subtitle} else if(qty_code.value == 700){price.value = eval(qty_code.value)*770*subtitle} else if(qty_code.value == 800){price.value = eval(qty_code.value)*770*subtitle} else if(qty_code.value == 900){price.value = eval(qty_code.value)*770*subtitle} else if(qty_code.value == 1000){price.value = eval(qty_code.value)*770*subtitle} else if(qty_code.value == 2000){price.value = eval(qty_code.value)*760*subtitle} else if(qty_code.value == 3000){price.value = eval(qty_code.value)*760*subtitle} else if(qty_code.value == 4000){price.value = eval(qty_code.value)*760*subtitle} else if(qty_code.value == 5000){price.value = eval(qty_code.value)*760*subtitle} else if(qty_code.value == 6000){price.value = eval(qty_code.value)*760*subtitle} else if(qty_code.value == 7000){price.value = eval(qty_code.value)*760*subtitle} else if(qty_code.value == 8000){price.value = eval(qty_code.value)*760*subtitle} else if(qty_code.value == 9000){price.value = eval(qty_code.value)*760*subtitle} else if(qty_code.value == 10000){price.value = eval(qty_code.value)*760*subtitle} } else if (bak_code == "spk59" || bak_code == "spk60" || bak_code == "spk63"){ if(qty_code.value == 50){price.value = eval(qty_code.value)*1800*subtitle} else if(qty_code.value == 100){price.value = eval(qty_code.value)*1350*subtitle} else if(qty_code.value == 200){price.value = eval(qty_code.value)*1100*subtitle} else if(qty_code.value == 300){price.value = eval(qty_code.value)*920*subtitle} else if(qty_code.value == 400){price.value = eval(qty_code.value)*900*subtitle} else if(qty_code.value == 500){price.value = eval(qty_code.value)*890*subtitle} else if(qty_code.value == 600){price.value = eval(qty_code.value)*890*subtitle} else if(qty_code.value == 700){price.value = eval(qty_code.value)*890*subtitle} else if(qty_code.value == 800){price.value = eval(qty_code.value)*890*subtitle} else if(qty_code.value == 900){price.value = eval(qty_code.value)*890*subtitle} else if(qty_code.value == 1000){price.value = eval(qty_code.value)*880*subtitle} else if(qty_code.value == 2000){price.value = eval(qty_code.value)*860*subtitle} else if(qty_code.value == 3000){price.value = eval(qty_code.value)*860*subtitle} else if(qty_code.value == 4000){price.value = eval(qty_code.value)*860*subtitle} else if(qty_code.value == 5000){price.value = eval(qty_code.value)*860*subtitle} else if(qty_code.value == 6000){price.value = eval(qty_code.value)*860*subtitle} else if(qty_code.value == 7000){price.value = eval(qty_code.value)*860*subtitle} else if(qty_code.value == 8000){price.value = eval(qty_code.value)*860*subtitle} else if(qty_code.value == 9000){price.value = eval(qty_code.value)*860*subtitle} else if(qty_code.value == 10000){price.value = eval(qty_code.value)*860*subtitle} } jeju_cost = (eval(qty_code.value)/50) * 10000; price.value = eval(price.value) + eval(jeju_cost) 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.span_total_after_price_plus.innerHTML = comma(after_price); //ÈÄ°¡°ø±Ý¾× document.all.break_pro_price_plus.innerHTML = comma(Math.round(price.value)); //Á¦Ç° ÃÑ¾× // document.all.view_price.innerHTML = comma(Math.round(price.value)); //Á¦Ç° ÃѾ×(»ó´Ü)20111226 Ãß°¡ 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]; } }