function chkcost() { var paper_code =document.orderform.paper_code; memo1_change(); if(paper_code.value == "ppkc5" || paper_code.value == "ppkc6" || paper_code.value == "ppkc7" || paper_code.value == "ppkdc") { // document.orderform.qty_code.options[0].value = "100"; document.orderform.qty_code.options[0].text = "100¸Å"; // document.orderform.qty_code.options[1].value = "200"; document.orderform.qty_code.options[1].text = "200¸Å"; // document.orderform.qty_code.options[2].value = "400"; document.orderform.qty_code.options[2].text = "400¸Å"; // document.orderform.qty_code.options[3].value = "600"; document.orderform.qty_code.options[3].text = "600¸Å"; // document.orderform.qty_code.options[4].value = "800"; document.orderform.qty_code.options[4].text = "800¸Å"; // document.orderform.qty_code.options[5].value = "1000"; document.orderform.qty_code.options[5].text = "1000¸Å"; // document.orderform.qty_code.options[6].value = "2000"; document.orderform.qty_code.options[6].text = "2000¸Å"; // document.orderform.qty_code.options[7].value = "3000"; document.orderform.qty_code.options[7].text = "3000¸Å"; // document.orderform.qty_code.options[8].value = "4000"; document.orderform.qty_code.options[8].text = "4000¸Å"; // document.orderform.qty_code.options[9].value = "5000"; document.orderform.qty_code.options[9].text = "5000¸Å"; // document.orderform.qty_code.options[10].value = "6000"; document.orderform.qty_code.options[10].text = "6000¸Å"; // document.orderform.qty_code.options[11].value = "7000"; document.orderform.qty_code.options[11].text = "7000¸Å"; // document.orderform.qty_code.options[12].value = "8000"; document.orderform.qty_code.options[12].text = "8000¸Å"; // document.orderform.qty_code.options[13].value = "9000"; document.orderform.qty_code.options[13].text = "9000¸Å"; // document.orderform.qty_code.options[14].value = "10000"; document.orderform.qty_code.options[14].text = "10000¸Å"; document.orderform.qty_code.options[0].value = "200"; document.orderform.qty_code.options[0].text = "200¸Å"; document.orderform.qty_code.options[1].value = "400"; document.orderform.qty_code.options[1].text = "400¸Å"; document.orderform.qty_code.options[2].value = "600"; document.orderform.qty_code.options[2].text = "600¸Å"; document.orderform.qty_code.options[3].value = "800"; document.orderform.qty_code.options[3].text = "800¸Å"; document.orderform.qty_code.options[4].value = "1000"; document.orderform.qty_code.options[4].text = "1000¸Å"; document.orderform.qty_code.options[5].value = "2000"; document.orderform.qty_code.options[5].text = "2000¸Å"; document.orderform.qty_code.options[6].value = "3000"; document.orderform.qty_code.options[6].text = "3000¸Å"; document.orderform.qty_code.options[7].value = "4000"; document.orderform.qty_code.options[7].text = "4000¸Å"; document.orderform.qty_code.options[8].value = "5000"; document.orderform.qty_code.options[8].text = "5000¸Å"; document.orderform.qty_code.options[9].value = "6000"; document.orderform.qty_code.options[9].text = "6000¸Å"; document.orderform.qty_code.options[10].value = "7000"; document.orderform.qty_code.options[10].text = "7000¸Å"; document.orderform.qty_code.options[11].value = "8000"; document.orderform.qty_code.options[11].text = "8000¸Å"; document.orderform.qty_code.options[12].value = "9000"; document.orderform.qty_code.options[12].text = "9000¸Å"; document.orderform.qty_code.options[13].value = "10000"; document.orderform.qty_code.options[13].text = "10000¸Å"; document.orderform.qty_code.options[14].value = ""; document.orderform.qty_code.options[14].text = "----"; } else { document.orderform.qty_code.options[0].value = "200"; document.orderform.qty_code.options[0].text = "200¸Å"; document.orderform.qty_code.options[1].value = "400"; document.orderform.qty_code.options[1].text = "400¸Å"; document.orderform.qty_code.options[2].value = "600"; document.orderform.qty_code.options[2].text = "600¸Å"; document.orderform.qty_code.options[3].value = "800"; document.orderform.qty_code.options[3].text = "800¸Å"; document.orderform.qty_code.options[4].value = "1000"; document.orderform.qty_code.options[4].text = "1000¸Å"; document.orderform.qty_code.options[5].value = "2000"; document.orderform.qty_code.options[5].text = "2000¸Å"; document.orderform.qty_code.options[6].value = "3000"; document.orderform.qty_code.options[6].text = "3000¸Å"; document.orderform.qty_code.options[7].value = "4000"; document.orderform.qty_code.options[7].text = "4000¸Å"; document.orderform.qty_code.options[8].value = "5000"; document.orderform.qty_code.options[8].text = "5000¸Å"; document.orderform.qty_code.options[9].value = "6000"; document.orderform.qty_code.options[9].text = "6000¸Å"; document.orderform.qty_code.options[10].value = "7000"; document.orderform.qty_code.options[10].text = "7000¸Å"; document.orderform.qty_code.options[11].value = "8000"; document.orderform.qty_code.options[11].text = "8000¸Å"; document.orderform.qty_code.options[12].value = "9000"; document.orderform.qty_code.options[12].text = "9000¸Å"; document.orderform.qty_code.options[13].value = "10000"; document.orderform.qty_code.options[13].text = "10000¸Å"; document.orderform.qty_code.options[14].value = ""; document.orderform.qty_code.options[14].text = "----"; } if(document.orderform.size_code.value != "extra") { if(document.orderform.size_code.value == "card1"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 160mm x 74mm"; document.orderform.n_size01.value = "160"; document.orderform.n_size02.value = "74"; } else if(document.orderform.size_code.value == "card2"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 170mm x 74mm"; document.orderform.n_size01.value = "170"; document.orderform.n_size02.value = "74"; } else if(document.orderform.size_code.value == "card3"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 174mm x 74mm"; document.orderform.n_size01.value = "174"; document.orderform.n_size02.value = "74"; } else if(document.orderform.size_code.value == "card4"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 150mm x 70mm"; document.orderform.n_size01.value = "150"; document.orderform.n_size02.value = "70"; } else if(document.orderform.size_code.value == "card5"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 162mm x 75mm"; document.orderform.n_size01.value = "162"; document.orderform.n_size02.value = "75"; } document.getElementById("span_cut_width").innerHTML = 0; document.getElementById("span_cut_height").innerHTML = 0; document.orderform.size01.disabled = true; document.orderform.size02.disabled = true; document.orderform.size01.value = ""; document.orderform.size02.value = ""; document.orderform.cut1.value = ""; document.orderform.cut2.value = ""; document.orderform.wsize.value = ""; costchange(); } else if(document.orderform.size_code.value == "extra") { document.orderform.size01.disabled = false; document.orderform.size02.disabled = false; document.orderform.n_size01.value = ""; document.orderform.n_size02.value = ""; document.getElementById("size_span").innerHTML = "¾Æ·¡ÀÇ ºñ±Ô°Ý »çÀÌÁ ÀÔ·ÂÇϼ¼¿ä."; if(document.orderform.size01.value != "" && document.orderform.size02.value != ""){chkexsize();} else{ document.orderform.pay.value = 0; document.all.span_price.innerHTML = 0; return false; } } } function chkexsize() { var size01 = document.orderform.size01.value; var size02 = document.orderform.size02.value; size01=Number(size01); size02=Number(size02); var maxNum; var minNum1 = 50; var minNum2 = 60; var maxNum1 = 500; var maxNum2 = 500; // Max °ªÁß ÀÛÀº°ª ¼¼Æà if(maxNum1>maxNum2){ maxNum = maxNum2; }else{ maxNum = maxNum1; } if(size01>size02){ sizeTemp = size01; size01 = size02; size02 = sizeTemp; } // µÎ °ªÀÌ Max °ªÁß ÀÛÀº »çÀÌÁ ³Ñ±â¸é ¾Æ¿ô if (size01 > maxNum && size02 > maxNum ){ valCKBack(minNum1, minNum2, maxNum1, maxNum2); }else if(size01 >= minNum1 && size01 <= maxNum1){ if(size02 < minNum2 || size02 > maxNum2){ valCKBack(minNum1, minNum2, maxNum1, maxNum2); }else {excostchange();} }else if(size02 >= minNum2 && size02 <= maxNum2){ if(size01 < minNum1 || size01 > maxNum1){ valCKBack(minNum1, minNum2, maxNum1, maxNum2); }else {excostchange();} }else if(size01 < minNum1 && size02 < minNum2){ valCKBack(minNum1, minNum2, maxNum1, maxNum2); }else if(size01 > maxNum1 && size02 > maxNum2){ valCKBack(minNum1, minNum2, maxNum1, maxNum2); } } function valCKBack(num1, num2, num3, num4 ){ alert("ÃÖ¼Ò »çÀÌÁî´Â "+num1+"x"+num2+" ÀÌ»óÀ̸ç.\n\nÃÖ´ë »çÀÌÁî´Â "+num3+"x"+num4+" ÀÔ´Ï´Ù. \n\n±× ¿ÜÀÇ »çÀÌÁî´Â º°µµ ¹®ÀÇ ¹Ù¶ø´Ï´Ù. \n\n064)702-1352"); document.orderform.size01.value = ""; document.orderform.size02.value = ""; document.orderform.pay.value = "0"; document.all.span_price.innerHTML = 0; document.getElementById("span_cut_width").innerHTML = 0; document.getElementById("span_cut_height").innerHTML = 0; document.orderform.size01.focus(); } 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 size = 1; if(paper_code.value == "ppkc5" || paper_code.value == "ppkc6" || paper_code.value == "ppkc7" || paper_code.value == "ppkc8" || paper_code.value == "ppkc9" || paper_code.value == "ppkdc") //ppkdc ¶í¶Ç·¹¶Ç { if(color_code.value == "cld04") { if(qty_code.value == 200){price.value = 8600*subtitle*size} else if(qty_code.value == 400){price.value = 17100*subtitle*size} else if(qty_code.value == 600){price.value = 25600*subtitle*size} else if(qty_code.value == 800){price.value = 34200*subtitle*size} else if(qty_code.value == 1000){price.value = 42800*subtitle*size} else if(qty_code.value == 2000){price.value = 85600*subtitle*size} else if(qty_code.value == 3000){price.value = 128400*subtitle*size} else if(qty_code.value == 4000){price.value = 171200*subtitle*size} else if(qty_code.value == 5000){price.value = 214000*subtitle*size} else if(qty_code.value == 6000){price.value = 256800*subtitle*size} else if(qty_code.value == 7000){price.value = 299600*subtitle*size} else if(qty_code.value == 8000){price.value = 342400*subtitle*size} else if(qty_code.value == 9000){price.value = 385200*subtitle*size} else if(qty_code.value == 10000){price.value = 428000*subtitle*size} else if(qty_code.value == 20000){price.value = 856000*subtitle*size} else if(qty_code.value == 30000){price.value = 1284000*subtitle*size} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value = 11600*subtitle*size} else if(qty_code.value == 400){price.value = 21400*subtitle*size} else if(qty_code.value == 600){price.value = 32100*subtitle*size} else if(qty_code.value == 800){price.value = 42800*subtitle*size} else if(qty_code.value == 1000){price.value = 53500*subtitle*size} else if(qty_code.value == 2000){price.value = 107000*subtitle*size} else if(qty_code.value == 3000){price.value = 160500*subtitle*size} else if(qty_code.value == 4000){price.value = 214000*subtitle*size} else if(qty_code.value == 5000){price.value = 267500*subtitle*size} else if(qty_code.value == 6000){price.value = 321000*subtitle*size} else if(qty_code.value == 7000){price.value = 374500*subtitle*size} else if(qty_code.value == 8000){price.value = 428000*subtitle*size} else if(qty_code.value == 9000){price.value = 481500*subtitle*size} else if(qty_code.value == 10000){price.value = 535000*subtitle*size} else if(qty_code.value == 20000){price.value = 1070000*subtitle*size} else if(qty_code.value == 30000){price.value = 1605000*subtitle*size} else {price.value = 0} } } if(paper_code.value == "ppkv6") //È­ÀÌÆ®¿¡±×½© 400g { if(color_code.value == "cld04" || color_code.value == "cld08") { if(qty_code.value == 200){price.value = 7500*subtitle*size} else if(qty_code.value == 400){price.value = 13900*subtitle*size} else if(qty_code.value == 600){price.value = 20300*subtitle*size} else if(qty_code.value == 800){price.value = 26800*subtitle*size} else if(qty_code.value == 1000){price.value = 33200*subtitle*size} else if(qty_code.value == 2000){price.value = 66300*subtitle*size} else if(qty_code.value == 3000){price.value = 99500*subtitle*size} else if(qty_code.value == 4000){price.value = 132700*subtitle*size} else if(qty_code.value == 5000){price.value = 165900*subtitle*size} else if(qty_code.value == 6000){price.value = 199000*subtitle*size} else if(qty_code.value == 7000){price.value = 232200*subtitle*size} else if(qty_code.value == 8000){price.value = 265400*subtitle*size} else if(qty_code.value == 9000){price.value = 298500*subtitle*size} else if(qty_code.value == 10000){price.value = 331700*subtitle*size} else {price.value = 0} } } if(paper_code.value == "ppkfe") //¸ÅƮȭÀÌÆ® 330g { if(color_code.value == "cld04") { if(qty_code.value == 200){price.value = 5800*subtitle*size} else if(qty_code.value == 400){price.value = 11700*subtitle*size} else if(qty_code.value == 600){price.value = 17600*subtitle*size} else if(qty_code.value == 800){price.value = 23500*subtitle*size} else if(qty_code.value == 1000){price.value = 29400*subtitle*size} else if(qty_code.value == 2000){price.value = 58800*subtitle*size} else if(qty_code.value == 3000){price.value = 88200*subtitle*size} else if(qty_code.value == 4000){price.value = 117700*subtitle*size} else if(qty_code.value == 5000){price.value = 147100*subtitle*size} else if(qty_code.value == 6000){price.value = 176500*subtitle*size} else if(qty_code.value == 7000){price.value = 205900*subtitle*size} else if(qty_code.value == 8000){price.value = 235400*subtitle*size} else if(qty_code.value == 9000){price.value = 264800*subtitle*size} else if(qty_code.value == 10000){price.value = 294200*subtitle*size} else if(qty_code.value == 20000){price.value = 588500*subtitle*size} else if(qty_code.value == 30000){price.value = 877400*subtitle*size} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value = 8000*subtitle*size} else if(qty_code.value == 400){price.value = 16000*subtitle*size} else if(qty_code.value == 600){price.value = 24000*subtitle*size} else if(qty_code.value == 800){price.value = 32100*subtitle*size} else if(qty_code.value == 1000){price.value = 40100*subtitle*size} else if(qty_code.value == 2000){price.value = 80200*subtitle*size} else if(qty_code.value == 3000){price.value = 120300*subtitle*size} else if(qty_code.value == 4000){price.value = 160500*subtitle*size} else if(qty_code.value == 5000){price.value = 200600*subtitle*size} else if(qty_code.value == 6000){price.value = 240700*subtitle*size} else if(qty_code.value == 7000){price.value = 280800*subtitle*size} else if(qty_code.value == 8000){price.value = 321000*subtitle*size} else if(qty_code.value == 9000){price.value = 361100*subtitle*size} else if(qty_code.value == 10000){price.value = 401200*subtitle*size} else if(qty_code.value == 20000){price.value = 802500*subtitle*size} else if(qty_code.value == 30000){price.value = 1177000*subtitle*size} else {price.value = 0} } } //»çÀÌÁî¿¡ µû¶ó °¡°Ýº¯µ¿ (ÀÚ¸´¼ö¿¡ µû¶ó.) if(document.orderform.size_code.value == "card4" ){ price.value = (price.value*3); } else{ price.value = (price.value*4); } if(paper_code.value == "ppkc9") //·¯¹ö½º 20121231 { price.value = Math.floor((price.value*0.9) / 100) * 100; } 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; //ÀÛ¾÷»çÀÌÁî ±âÁØÀ¸·Î º¯°æ 120502 size01=Number(size01+2); size02=Number(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(paper_code.value == "ppkc5" || paper_code.value == "ppkc6" || paper_code.value == "ppkc7" || paper_code.value == "ppkc8" || paper_code.value == "ppkc9" || paper_code.value == "ppkdc") //ppkv6 ¼ø¹é´©ºê ppkdc ¶í¶Ç·¹¶Ç { if(color_code.value == "cld04") { if(qty_code.value == 200){price.value = 8600*subtitle*size} else if(qty_code.value == 400){price.value = 17100*subtitle*size} else if(qty_code.value == 600){price.value = 25600*subtitle*size} else if(qty_code.value == 800){price.value = 34200*subtitle*size} else if(qty_code.value == 1000){price.value = 42800*subtitle*size} else if(qty_code.value == 2000){price.value = 85600*subtitle*size} else if(qty_code.value == 3000){price.value = 128400*subtitle*size} else if(qty_code.value == 4000){price.value = 171200*subtitle*size} else if(qty_code.value == 5000){price.value = 214000*subtitle*size} else if(qty_code.value == 6000){price.value = 256800*subtitle*size} else if(qty_code.value == 7000){price.value = 299600*subtitle*size} else if(qty_code.value == 8000){price.value = 342400*subtitle*size} else if(qty_code.value == 9000){price.value = 385200*subtitle*size} else if(qty_code.value == 10000){price.value = 428000*subtitle*size} else if(qty_code.value == 20000){price.value = 856000*subtitle*size} else if(qty_code.value == 30000){price.value = 1284000*subtitle*size} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value = 11600*subtitle*size} else if(qty_code.value == 400){price.value = 21400*subtitle*size} else if(qty_code.value == 600){price.value = 32100*subtitle*size} else if(qty_code.value == 800){price.value = 42800*subtitle*size} else if(qty_code.value == 1000){price.value = 53500*subtitle*size} else if(qty_code.value == 2000){price.value = 107000*subtitle*size} else if(qty_code.value == 3000){price.value = 160500*subtitle*size} else if(qty_code.value == 4000){price.value = 214000*subtitle*size} else if(qty_code.value == 5000){price.value = 267500*subtitle*size} else if(qty_code.value == 6000){price.value = 321000*subtitle*size} else if(qty_code.value == 7000){price.value = 374500*subtitle*size} else if(qty_code.value == 8000){price.value = 428000*subtitle*size} else if(qty_code.value == 9000){price.value = 481500*subtitle*size} else if(qty_code.value == 10000){price.value = 535000*subtitle*size} else if(qty_code.value == 20000){price.value = 1070000*subtitle*size} else if(qty_code.value == 30000){price.value = 1605000*subtitle*size} else {price.value = 0} } } if(paper_code.value == "ppkv6") //È­ÀÌÆ®¿¡±×½© 400g { if(color_code.value == "cld04" || color_code.value == "cld08") { if(qty_code.value == 200){price.value = 7500*subtitle*size} else if(qty_code.value == 400){price.value = 13900*subtitle*size} else if(qty_code.value == 600){price.value = 20300*subtitle*size} else if(qty_code.value == 800){price.value = 26800*subtitle*size} else if(qty_code.value == 1000){price.value = 33200*subtitle*size} else if(qty_code.value == 2000){price.value = 66300*subtitle*size} else if(qty_code.value == 3000){price.value = 99500*subtitle*size} else if(qty_code.value == 4000){price.value = 132700*subtitle*size} else if(qty_code.value == 5000){price.value = 165900*subtitle*size} else if(qty_code.value == 6000){price.value = 199000*subtitle*size} else if(qty_code.value == 7000){price.value = 232200*subtitle*size} else if(qty_code.value == 8000){price.value = 265400*subtitle*size} else if(qty_code.value == 9000){price.value = 298500*subtitle*size} else if(qty_code.value == 10000){price.value = 331700*subtitle*size} else {price.value = 0} } } if(paper_code.value == "ppkfe") //¸ÅƮȭÀÌÆ® 330g { if(color_code.value == "cld04") { if(qty_code.value == 200){price.value = 5800*subtitle*size} else if(qty_code.value == 400){price.value = 11700*subtitle*size} else if(qty_code.value == 600){price.value = 17600*subtitle*size} else if(qty_code.value == 800){price.value = 23500*subtitle*size} else if(qty_code.value == 1000){price.value = 29400*subtitle*size} else if(qty_code.value == 2000){price.value = 58800*subtitle*size} else if(qty_code.value == 3000){price.value = 88200*subtitle*size} else if(qty_code.value == 4000){price.value = 117700*subtitle*size} else if(qty_code.value == 5000){price.value = 147100*subtitle*size} else if(qty_code.value == 6000){price.value = 176500*subtitle*size} else if(qty_code.value == 7000){price.value = 205900*subtitle*size} else if(qty_code.value == 8000){price.value = 235400*subtitle*size} else if(qty_code.value == 9000){price.value = 264800*subtitle*size} else if(qty_code.value == 10000){price.value = 294200*subtitle*size} else if(qty_code.value == 20000){price.value = 588500*subtitle*size} else if(qty_code.value == 30000){price.value = 877400*subtitle*size} else {price.value = 0} } else if(color_code.value == "cld08") { if(qty_code.value == 200){price.value = 8000*subtitle*size} else if(qty_code.value == 400){price.value = 16000*subtitle*size} else if(qty_code.value == 600){price.value = 24000*subtitle*size} else if(qty_code.value == 800){price.value = 32100*subtitle*size} else if(qty_code.value == 1000){price.value = 40100*subtitle*size} else if(qty_code.value == 2000){price.value = 80200*subtitle*size} else if(qty_code.value == 3000){price.value = 120300*subtitle*size} else if(qty_code.value == 4000){price.value = 160500*subtitle*size} else if(qty_code.value == 5000){price.value = 200600*subtitle*size} else if(qty_code.value == 6000){price.value = 240700*subtitle*size} else if(qty_code.value == 7000){price.value = 280800*subtitle*size} else if(qty_code.value == 8000){price.value = 321000*subtitle*size} else if(qty_code.value == 9000){price.value = 361100*subtitle*size} else if(qty_code.value == 10000){price.value = 401200*subtitle*size} else if(qty_code.value == 20000){price.value = 802500*subtitle*size} else if(qty_code.value == 30000){price.value = 1177000*subtitle*size} else {price.value = 0} } } if(size01>200 || size02>200) //201mm ÀÌ»ó »çÀÌÁî´Â ±âº»°¡ 1.1¹è Àû¿ë { price.value = eval(price.value)/subtitle; price.value = Math.round((price.value * 1.1)/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.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.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]; } }