function chkcost(){ memo1_change(); 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 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 frm = document.orderform; //¾ÆÆ®Áö300 ¾ç¸é¹«±¤ÄÚÆÃ, ¾ÆÆ®Áö300 ¾ç¸éº§ºªÄÚÆà Á¾ÀÌÄڵ尡 °°¾Æ¼­ //ÄÚÆðªÀ» ¹Ù²ãÁÖ°í ¾Æ·¡ºÎºÐ¿¡¼­ Á¾ÀÌÄڵ尪À» ¹Ù²ãÁà¾ß Çؼ­... var paper_code_imsi =document.orderform.paper_code_imsi; paper_code.value = paper_code_imsi.value; if(paper_code.value == "ppk09") //¾ÆÆ®Áö300 ¾ç¸é¹«±¤ÄÚÆà { coating_code.value = "cot06"; } else if(paper_code.value == "ppk09_cot12") //¾ÆÆ®Áö300 ¾ç¸éº§ºªÄÚÆà { coating_code.value = "cot12"; } else //³ª¸ÓÁöÁ¾ÀÌ ºñÄÚÆà { coating_code.value = "cot02"; } //¿©±âºÎÅÍ ±Ý¾× if(paper_code.value == "ppkx7") //¶ûµ¥ºä240g { if(color_code.value == "cld04") { price.value = (eval(qty_code.value) / 200) * 18000 * subtitle; } else if(color_code.value == "cld08") { price.value = (eval(qty_code.value) / 200) * 19000 * subtitle; } else if(color_code.value == "cld10") { price.value = (eval(qty_code.value) / 200) * 22000 * subtitle; } } else if(paper_code.value == "ppklz") //½ºÅ¸µå¸²(±Û¶ó½Ã½º)240g { if(color_code.value == "cld04") { price.value = (eval(qty_code.value) / 200) * 19000 * subtitle; } else if(color_code.value == "cld08") { price.value = (eval(qty_code.value) / 200) * 20000 * subtitle; } else if(color_code.value == "cld10") { price.value = (eval(qty_code.value) / 200) * 23000 * subtitle; } } else if(paper_code.value == "ppk09") //¾ÆÆ®Áö300 ¾ç¸é¹«±¤ÄÚÆà { if(color_code.value == "cld04") { price.value = (eval(qty_code.value) / 200) * 17000 * subtitle; } else if(color_code.value == "cld08") { price.value = (eval(qty_code.value) / 200) * 18000 * subtitle; } else if(color_code.value == "cld10") { price.value = (eval(qty_code.value) / 200) * 21000 * subtitle; } } else if(paper_code.value == "ppk09_cot12") //½º³ë¿ì300 ¾ç¸éº§ºªÄÚÆà { paper_code.value = "ppk09"; if(color_code.value == "cld04") { price.value = (eval(qty_code.value) / 200) * 19000 * subtitle; } else if(color_code.value == "cld08") { price.value = (eval(qty_code.value) / 200) * 20000 * subtitle; } else if(color_code.value == "cld10") { price.value = (eval(qty_code.value) / 200) * 23000 * subtitle; } } // else if(paper_code.value == "") //³ªÁß¿¡ °¡°ÝÀÌ ¸Å¼ö¸¶´Ù ´Þ¶óÁö¸é ¾Æ·¡ºÎºÐÀ» ½á¾ß ÇÔ // { // if(color_code.value == "cld04") // { // if(qty_code.value == 200){price.value = 000*subtitle} // else if(qty_code.value == 400){price.value = 000*subtitle} // else if(qty_code.value == 600){price.value = 000*subtitle} // else if(qty_code.value == 800){price.value = 000*subtitle} // else if(qty_code.value == 1000){price.value = 000*subtitle} // else if(qty_code.value == 2000){price.value = 000*subtitle} // else if(qty_code.value == 3000){price.value = 000*subtitle} // else if(qty_code.value == 4000){price.value = 000*subtitle} // else if(qty_code.value == 5000){price.value = 000*subtitle} // else if(qty_code.value == 6000){price.value = 000*subtitle} // else if(qty_code.value == 7000){price.value = 000*subtitle} // else if(qty_code.value == 8000){price.value = 000*subtitle} // else if(qty_code.value == 9000){price.value = 000*subtitle} // else if(qty_code.value == 10000){price.value = 000*subtitle} // else {price.value = 0} // } // else if(color_code.value == "cld08") // { // if(qty_code.value == 200){price.value = 000*subtitle} // else if(qty_code.value == 400){price.value = 000*subtitle} // else if(qty_code.value == 600){price.value = 000*subtitle} // else if(qty_code.value == 800){price.value = 000*subtitle} // else if(qty_code.value == 1000){price.value = 000*subtitle} // else if(qty_code.value == 2000){price.value = 000*subtitle} // else if(qty_code.value == 3000){price.value = 000*subtitle} // else if(qty_code.value == 4000){price.value = 000*subtitle} // else if(qty_code.value == 5000){price.value = 000*subtitle} // else if(qty_code.value == 6000){price.value = 000*subtitle} // else if(qty_code.value == 7000){price.value = 000*subtitle} // else if(qty_code.value == 8000){price.value = 000*subtitle} // else if(qty_code.value == 9000){price.value = 000*subtitle} // else if(qty_code.value == 10000){price.value = 000*subtitle} // else {price.value = 0} // } // else if(color_code.value == "cld10") // { // if(qty_code.value == 200){price.value = 000*subtitle} // else if(qty_code.value == 400){price.value = 000*subtitle} // else if(qty_code.value == 600){price.value = 000*subtitle} // else if(qty_code.value == 800){price.value = 000*subtitle} // else if(qty_code.value == 1000){price.value = 000*subtitle} // else if(qty_code.value == 2000){price.value = 000*subtitle} // else if(qty_code.value == 3000){price.value = 000*subtitle} // else if(qty_code.value == 4000){price.value = 000*subtitle} // else if(qty_code.value == 5000){price.value = 000*subtitle} // else if(qty_code.value == 6000){price.value = 000*subtitle} // else if(qty_code.value == 7000){price.value = 000*subtitle} // else if(qty_code.value == 8000){price.value = 000*subtitle} // else if(qty_code.value == 9000){price.value = 000*subtitle} // else if(qty_code.value == 10000){price.value = 000*subtitle} // else {price.value = 0} // } // } //Á¦ÁÖµµ °¡°Ý 7% Àλó price.value = eval(price.value)/subtitle; price.value = Math.round((price.value * 1.07)/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_imsi.options[paper_code_imsi.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; if (document.orderform.paper_code.value == "" ){price.value =0;} var after_price = frm.after_total_price_plus.value; var price_01 = frm.price_01; var wongo_total_price = frm.wongo_hidden_price_total.value; //¿ø°íÃÑ±Ý¾× 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.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)+eval(wongo_total_price))/10 //Á¦Ç° + ÈÄ°¡°ø ÃÑ¾× + ¿ø°íÃÑ±Ý¾× /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)+eval(wongo_total_price) //Á¦Ç° + ÈÄ°¡°ø ÃÑ¾× + ¿ø°íÃÑ±Ý¾× frm.estimate_price_end.value = estimate_price; document.all.span_estimate_price_end.innerHTML = comma(estimate_price); //ÁÖ¹® ¹Ù·Î¹Ø¿¡ Á¦Ç°±Ý¾×, ºÎ°¡¼¼, °ßÀûÃÑ¾× # ±Ý¾× view_price display:none 2017-12-15 if ($("#span_total_estimate_prie_sub").length > 0){ var span_total_estimate_prie_val = $("#span_total_estimate_prie").text(); $("#span_total_estimate_prie_sub").text(span_total_estimate_prie_val); } if ($("#span_tax_price_sub").length > 0){ var span_tax_price_val = $("#span_tax_price").text(); $("#span_tax_price_sub").text(span_tax_price_val); } if ($("#span_estimate_price_end_sub").length > 0){ var span_estimate_price_end_val = $("#span_estimate_price_end").text(); $("#span_estimate_price_end_sub").text(span_estimate_price_end_val); } } 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]; } }