function chkcost(){ if(document.orderform.paper_code.value == "ppkej" || document.orderform.paper_code.value == "ppkek"){ document.orderform.size_code.options[0].value = "pssv3"; document.orderform.size_code.options[0].text = "600mm x 1600mm"; document.orderform.size_code.options[1].value = "pssv2"; document.orderform.size_code.options[1].text = "600mm x 1800mm"; document.orderform.color_code.options[0].value = "cld04"; document.orderform.color_code.options[0].text = "´Ü¸é(´Ü¸é Àμâ·Î ¾Õ¸é 1Àå)"; // document.orderform.color_code.options[1].value = "cld08"; document.orderform.color_code.options[1].text = "¾ç¸é(´Ü¸é Àμâ·Î ¾ÕµÚ °¢ 1À徿)"; document.orderform.silsa_coating.options[0].value = "mu_cool"; document.orderform.silsa_coating.options[0].text = "¹«±¤Äð(Cool)ÄÚÆÃ"; document.orderform.silsa_coating.options[1].value = "yu_cool"; document.orderform.silsa_coating.options[1].text = "À¯±¤Äð(Cool)ÄÚÆÃ(+1000)"; } else if (document.orderform.paper_code.value == "ppkel"){ document.orderform.size_code.options[0].value = "pssv4"; document.orderform.size_code.options[0].text = "150mm x 300mm (¼ÒÇü)"; document.orderform.size_code.options[1].value = "pssv5"; document.orderform.size_code.options[1].text = "180mm x 420mm (ÁßÇü)"; document.orderform.color_code.options[0].value = "cld04"; document.orderform.color_code.options[0].text = "´Ü¸é(´Ü¸é Àμâ·Î ¾Õ¸é 1Àå)"; // document.orderform.color_code.options[1].value = ""; document.orderform.color_code.options[1].text = "----"; document.orderform.silsa_coating.options[0].value = "mu_cool"; document.orderform.silsa_coating.options[0].text = "¹«±¤Äð(Cool)ÄÚÆÃ"; document.orderform.silsa_coating.options[1].value = "yu_cool"; document.orderform.silsa_coating.options[1].text = "À¯±¤Äð(Cool)ÄÚÆÃ(+500)"; } if(document.orderform.paper_code.value == "ppkej"){ //ÆäÆ®¹è³Ê ½Ç¿Ü¿ë document.orderform.stand_code.options[1].value = "ÇÏÀ̹è³Ê°ÅÄ¡´ë(´Ü¸é)"; document.orderform.stand_code.options[1].text = "ÇÏÀ̹è³Ê°ÅÄ¡´ë-12¸®ÅÍ(´Ü¸é)"; document.orderform.stand_code.options[2].value = "ÇÏÀ̹è³Ê°ÅÄ¡´ë(¾ç¸é)"; document.orderform.stand_code.options[2].text = "ÇÏÀ̹è³Ê°ÅÄ¡´ë-12¸®ÅÍ(¾ç¸é)"; 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 = "----"; document.orderform.stand_code.options[5].value = ""; document.orderform.stand_code.options[5].text = "----"; document.orderform.stand_code.options[6].value = ""; document.orderform.stand_code.options[6].text = "----"; } else if (document.orderform.paper_code.value == "ppkek"){ //ÆäÆ®¹è³Ê ½Ç³»¿ë 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 = "----"; document.orderform.stand_code.options[5].value = ""; document.orderform.stand_code.options[5].text = "----"; document.orderform.stand_code.options[6].value = ""; document.orderform.stand_code.options[6].text = "----"; } else if (document.orderform.paper_code.value == "ppkel"){ //¹Ì´ÏÆäÆ®¹è³Ê if (document.orderform.size_code.value == "pssv4"){ document.orderform.stand_code.options[0].value = "¹Ì´Ï¹è³Ê°ÅÄ¡´ë"; document.orderform.stand_code.options[0].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 = "----"; document.orderform.stand_code.options[5].value = ""; document.orderform.stand_code.options[5].text = "----"; document.orderform.stand_code.options[6].value = ""; document.orderform.stand_code.options[6].text = "----"; } else if (document.orderform.size_code.value == "pssv5"){ document.orderform.stand_code.options[0].value = "¹Ì´Ï¹è³Ê°ÅÄ¡´ë"; document.orderform.stand_code.options[0].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 = "----"; document.orderform.stand_code.options[5].value = ""; document.orderform.stand_code.options[5].text = "----"; document.orderform.stand_code.options[6].value = ""; document.orderform.stand_code.options[6].text = "----"; } } if(document.orderform.size_code.value == "pssv3"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 602mm x 1602mm"; } else if(document.orderform.size_code.value == "pssv2"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 602mm x 1802mm"; } else if(document.orderform.size_code.value == "pssv4"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 152mm x 302mm"; } else if(document.orderform.size_code.value == "pssv5"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 182mm x 422mm"; } costchange(); memo1_change(); } 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.value; var silsa_coating = document.orderform.silsa_coating; //°ÅÄ¡´ë ¼±Åùڽº È°¼ºÈ­ document.orderform.stand_qty.readonly = false; if(kind_code.value == "pdke4") { if(size_code.value == "pssv4"){ if(qty_code.value == 1){price.value = 4500*subtitle} else { price.value = 4500*qty_code.value*subtitle; } } else if(size_code.value == "pssv5"){ if(qty_code.value == 1){price.value = 5500*subtitle} else { price.value = 5500*qty_code.value*subtitle; } } price.value = Math.round(Number(price.value)*0.01) * 100; if (stand_code.value == "¹Ì´Ï¹è³Ê°ÅÄ¡´ë"){ //price.value = Number(price.value) + (2500*stand_qty); document.orderform.stand_qty.readonly = true; } document.orderform.stand_qty.value = subtitle*eval(qty_code.value); //ÄÚÆôܰ¡ if(silsa_coating.value == "yu_cool") {price.value = Number(price.value) + (500*subtitle*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; var stand_code = document.orderform.stand_code; var stand_qty = document.orderform.stand_qty; 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 + " / " + stand_code.options[stand_code.selectedIndex].innerText + " " + stand_qty.value + "°³"; } 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); } } 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]; } }