function chkcost(){ if(document.orderform.paper_code.value == "ppkgx"){ //ÆäÆ®¹è³Ê ½Ç¿Ü¿ë document.orderform.stand_code.options[1].value = "ÇÏÀ̹è³Ê°ÅÄ¡´ë(´Ü¸é)"; document.orderform.stand_code.options[1].text = "ÇÏÀ̹è³Ê°ÅÄ¡´ë(´Ü¸é)"; document.orderform.stand_code.options[2].value = "ÇÏÀ̹è³Ê°ÅÄ¡´ë(¾ç¸é)"; document.orderform.stand_code.options[2].text = "ÇÏÀ̹è³Ê°ÅÄ¡´ë(¾ç¸é)"; document.orderform.stand_code.options[3].value = ""; document.orderform.stand_code.options[3].text = "----"; document.orderform.stand_code.options[4].value = ""; document.orderform.stand_code.options[4].text = "----"; } else if (document.orderform.paper_code.value == "ppkgy"){ //ÆäÆ®¹è³Ê ½Ç³»¿ë document.orderform.stand_code.options[1].value = "ÇÏÀ̹è³Ê°ÅÄ¡´ë"; document.orderform.stand_code.options[1].text = "ÇÏÀ̹è³Ê°ÅÄ¡´ë"; document.orderform.stand_code.options[2].value = ""; document.orderform.stand_code.options[2].text = "----"; document.orderform.stand_code.options[3].value = ""; document.orderform.stand_code.options[3].text = "----"; document.orderform.stand_code.options[4].value = ""; document.orderform.stand_code.options[4].text = "----"; } else if (document.orderform.paper_code.value == "ppkgz"){ //¹Ì´ÏÆäÆ®¹è³Ê document.orderform.stand_code.options[1].value = "¹Ì´Ï¹è³Ê°ÅÄ¡´ë"; document.orderform.stand_code.options[1].text = "¹Ì´Ï¹è³Ê°ÅÄ¡´ë"; document.orderform.stand_code.options[2].value = ""; document.orderform.stand_code.options[2].text = "----"; document.orderform.stand_code.options[3].value = ""; document.orderform.stand_code.options[3].text = "----"; document.orderform.stand_code.options[4].value = ""; document.orderform.stand_code.options[4].text = "----"; } if(document.orderform.paper_code.value == "ppkgx"){ document.orderform.size_code.options[1].value = "pssv2"; document.orderform.size_code.options[1].text = "600mm x 1800mm"; document.orderform.size_code.options[2].value = "pssv3"; document.orderform.size_code.options[2].text = "600mm x 1600mm"; document.orderform.color_code.options[0].value = "cld04"; document.orderform.color_code.options[0].text = "´Ü¸é(´Ü¸é Àμâ·Î ¾Õ¸é 1Àå)"; } else if(document.orderform.paper_code.value == "ppkgy"){ document.orderform.size_code.options[1].value = "pssv2"; document.orderform.size_code.options[1].text = "600mm x 1800mm"; document.orderform.size_code.options[2].value = "pssv3"; document.orderform.size_code.options[2].text = "600mm x 1600mm"; document.orderform.color_code.options[0].value = "cld04"; document.orderform.color_code.options[0].text = "´Ü¸é(´Ü¸é Àμâ·Î ¾Õ¸é 1Àå)"; } else if (document.orderform.paper_code.value == "ppkgz"){ document.orderform.size_code.options[1].value = "pssv4"; document.orderform.size_code.options[1].text = "150mm x 300mm (¼ÒÇü)"; document.orderform.size_code.options[2].value = "pssv5"; document.orderform.size_code.options[2].text = "180mm x 420mm (ÁßÇü)"; document.orderform.color_code.options[0].value = "cld04"; document.orderform.color_code.options[0].text = "´Ü¸é(´Ü¸é Àμâ·Î ¾Õ¸é 1Àå)"; } 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 stand_code =document.orderform.stand_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 stand_qty =document.orderform.stand_qty; if(kind_code.value == "pdkg3") { if(document.orderform.paper_code.value == "ppkgx"){ //ÆäÆ®¹è³Ê ½Ç¿Ü¿ë if (stand_code.value == "ÇÏÀ̹è³Ê°ÅÄ¡´ë(´Ü¸é)"){price.value = 16000*eval(qty_code.value);} else if (stand_code.value == "ÇÏÀ̹è³Ê°ÅÄ¡´ë(¾ç¸é)"){price.value = 18000*eval(qty_code.value);} } else if(document.orderform.paper_code.value == "ppkgy"){ //ÆäÆ®¹è³Ê ½Ç³»¿ë if (stand_code.value == "ÇÏÀ̹è³Ê°ÅÄ¡´ë"){price.value = 9000*eval(qty_code.value);} else {price.value = 0;} } else if (document.orderform.paper_code.value == "ppkgz"){ //¹Ì´ÏÆäÆ® ¹è³Ê price.value = 2000*eval(qty_code.value); } } //¹è³Ê°¹¼ö¸¦ ¸Þ¸ð¿¡ ³Ö¾îÁÖ±â À§ÇØ stand_qty.value = qty_code.value; 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; // //ÈÄ°¡°ø_¿À½Ã // if(frm.after_osi.value!=""){ // after_osi_cost(); // } // // //ÈÄ°¡°ø_¹Ì½Ì // if(frm.after_mis.value!=""){ // after_mis_cost(); // } // // //ÈÄ°¡°ø_Ÿ°ø // if(frm.after_tar.value!=""){ // after_tar_cost(); // } // // //ÈÄ°¡°ø_±Íµµ¸® // if(frm.after_gui.value!=""){ // after_gui_cost(); // } // // //ÈÄ°¡°ø_¿¥º¸ // if(frm.after_emb.value!=""){ // after_emb_cost(); // } // // //ÈÄ°¡°ø_Çü¾Ð // if(frm.after_hyung.value!=""){ // after_hyung_cost(); // } // // //ÈÄ°¡°ø_¹Ú // if(frm.after_bak.value!=""){ // after_bak_cost(); // } // // //ÈÄ°¡°ø_³Ñ¹ö¸µ // if(frm.after_num.value!=""){ // after_num_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.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); //ÁÖ¹® ¹Ù·Î¹Ø¿¡ Á¦Ç°±Ý¾×, ºÎ°¡¼¼, °ßÀûÃÑ¾× # ±Ý¾× 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); } document.all.memo.innerHTML = document.all.stand_code.value; } 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]; } }