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; memo1_change(); if(document.orderform.size_code.value == "psss3"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 52mm x 73mm" } else if(document.orderform.size_code.value == "psss4"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 98mm x 73mm" } else if(document.orderform.size_code.value == "psss5"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 98mm x 148mm" } else if(document.orderform.size_code.value == "psss6"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 198mm x 148mm" } else if(document.orderform.size_code.value == "psss7"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 298mm x 148mm" } if(kind_code.value == "pdkd7") { if(size_code.value == "psss3") { if(color_code.value == "cld01" || color_code.value == "cld04") { if(qty_code.value == 3000){price.value = 380000*subtitle} else if(qty_code.value == 6000){price.value = 700000*subtitle} else if(qty_code.value == 9000){price.value = 1060000*subtitle} else if(qty_code.value == 12000){price.value = 1350000*subtitle} else {price.value = 0} } } else if(size_code.value == "psss4") { if(color_code.value == "cld01" || color_code.value == "cld04") { if(qty_code.value == 1500){price.value = 380000*subtitle} else if(qty_code.value == 3000){price.value = 700000*subtitle} else if(qty_code.value == 4500){price.value = 1100000*subtitle} else if(qty_code.value == 6000){price.value = 1350000*subtitle} else {price.value = 0} } } else if(size_code.value == "psss5") { if(color_code.value == "cld01" || color_code.value == "cld04") { if(qty_code.value == 720){price.value = 600000*subtitle} else if(qty_code.value == 1080){price.value = 900000*subtitle} else if(qty_code.value == 1440){price.value = 1140000*subtitle} else if(qty_code.value == 1800){price.value = 1416000*subtitle} else if(qty_code.value == 2160){price.value = 1680000*subtitle} else if(qty_code.value == 2520){price.value = 1956000*subtitle} else if(qty_code.value == 2880){price.value = 2244000*subtitle} else if(qty_code.value == 3240){price.value = 2520000*subtitle} else if(qty_code.value == 3600){price.value = 2784000*subtitle} else {price.value = 0} } } else if(size_code.value == "psss6" || size_code.value == "psss7") { if(color_code.value == "cld01" || color_code.value == "cld04") { if(qty_code.value == 240){price.value = 600000*subtitle} else if(qty_code.value == 360){price.value = 900000*subtitle} else if(qty_code.value == 480){price.value = 1140000*subtitle} else if(qty_code.value == 600){price.value = 1416000*subtitle} else if(qty_code.value == 720){price.value = 1680000*subtitle} else if(qty_code.value == 840){price.value = 1956000*subtitle} else if(qty_code.value == 960){price.value = 2244000*subtitle} else if(qty_code.value == 1080){price.value = 2520000*subtitle} else if(qty_code.value == 1200){price.value = 2784000*subtitle} else {price.value = 0} } } } price01_change(); } function excostchange() { 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 size01 = document.orderform.size01.value; var size02 = document.orderform.size02.value; size01=Number(size01); size02=Number(size02); document.orderform.cut1.value = size01+2; document.orderform.cut2.value = size02+2; document.getElementById("span_cut_width").innerHTML = size01+2; document.getElementById("span_cut_height").innerHTML = size02+2; size1 = Math.ceil(parseFloat(size01 / 92)) * Math.ceil(parseFloat(size02 / 52)); size2 = Math.ceil(parseFloat(size01 / 52)) * Math.ceil(parseFloat(size02 / 92)); if(size_code.value != "extra") { return false; } if(size1>size2){size = size2;} else{size=size1;} document.orderform.wsize.value = size; if(kind_code.value == "pdkb5") { if(color_code.value == "cld04") { if(qty_code.value == 200){price.value = (2000*size)*subtitle} else if(qty_code.value == 400){price.value = (4000*size)*subtitle} else if(qty_code.value == 600){price.value = (6000*size)*subtitle} else if(qty_code.value == 800){price.value = (8000*size)*subtitle} else if(qty_code.value == 1000){price.value = (10000*size)*subtitle} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value = (3000*size)*subtitle} else if(qty_code.value == 400){price.value = (6000*size)*subtitle} else if(qty_code.value == 600){price.value = (9000*size)*subtitle} else if(qty_code.value == 800){price.value = (12000*size)*subtitle} else if(qty_code.value == 1000){price.value = (15000*size)*subtitle} else {price.value = 0} } } if(size01>200 || size02>200) //201mm ÀÌ»ó »çÀÌÁî´Â ±âº»°¡ 1.1¹è Àû¿ë { price.value = Math.round(price.value * 1.1) } 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_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]; } }