function qty_code_select() { var size_code = document.orderform.size_code.value; //»çÀÌÁîÄڵ尪 document.all.line_1_1.innerHTML = size_code; var qty_code = document.orderform.qty_code.value; //±Ç¼ö document.all.line_1_2.innerHTML = qty_code; //¸Å¼öÁ¤¼ö var real_qty = 0; //´Ü°èÁ¤¼ö var step_num = 0; if (size_code == "pssp2") {real_qty = 32000; step_num = 160;} else if (size_code == "pssp3") {real_qty = 24000; step_num = 120;} else if (size_code == "pssp4") {real_qty = 16000; step_num = 80;} else if (size_code == "pssi1") {real_qty = 8000; step_num = 40;} else if (size_code == "pssp5") {real_qty = 16000; step_num = 80;} else if (size_code == "pssp6") {real_qty = 12000; step_num = 60;} else if (size_code == "pssp7") {real_qty = 8000; step_num = 40;} else if (size_code == "pssp8") {real_qty = 4000; step_num = 10;} document.all.line_1_3.innerHTML = real_qty; //Àå¼öº¯°æÁ¤¼ö var sheet_change_num = 100; document.all.line_1_4.innerHTML = sheet_change_num; //¿©ºÐ¸Å¼ö var rest_qty = 200; document.all.line_1_5.innerHTML = rest_qty; //Á¾À̼ö·® var paper_qty = 0; paper_qty = (qty_code * sheet_change_num) + rest_qty; document.all.line_1_6.innerHTML = paper_qty; //¿¬¼ö·Î º¯°æ var yun_num = 0; yun_num = paper_qty / real_qty; document.all.line_1_7.innerHTML = yun_num; //ÆÇÇü var pan_size = ""; if (size_code == "pssp2" || size_code == "pssp3" || size_code == "pssp4" || size_code == "pssi1") {pan_size = "4*6Àý";} else if (size_code == "pssp5" || size_code == "pssp6" || size_code == "pssp7" || size_code == "pssp8") {pan_size = "±¹Àü";} document.all.line_1_8.innerHTML = pan_size; //µÎ¹øÂ° ÁÙ //¿ëÁö¼±Åà var paper_code = document.orderform.paper_code.value; //Á¾ÀÌÄڵ尪 document.all.line_2_1.innerHTML = paper_code; //±âº»¿ëÁö°¡ var default_paper_price = 0; if (pan_size == "4*6Àý") { if (paper_code == "ppk58") {default_paper_price = 65030;} else if (paper_code == "ppk19") {default_paper_price = 71410;} else if (paper_code == "ppk21") {default_paper_price = 88490;} else if (paper_code == "ppk22") {default_paper_price = 106160;} } else if (pan_size == "±¹Àü") { if (paper_code == "ppk58") {default_paper_price = 45180;} else if (paper_code == "ppk19") {default_paper_price = 49610;} else if (paper_code == "ppk21") {default_paper_price = 61460;} else if (paper_code == "ppk22") {default_paper_price = 73750;} } document.all.line_2_2.innerHTML = default_paper_price; //°è»ê¿ëÁö´Ü°¡ var compute_paper_price = 0; compute_paper_price = Math.round(default_paper_price * yun_num); document.all.line_2_3.innerHTML = Math.round(compute_paper_price); //Àμ⵵¼ö (¾Õ¸é) var color_code = document.orderform.color_code.value; document.all.line_3_1.innerHTML = color_code; //±âº»Àμâºñ (±¸°£½ÃÀÛ°¡_Àμâºñ) var default_printing_price = 0; //Àμâºñ var rf_print_price = 0; //±¸°£½ÃÀÛ°¡_Á¦º»ºñ var st_bind_price = 0; //±¸°£½ÃÁõ°¨_Á¦º»ºñ var variation_bind_price = 0; //±âº»Àμâºñ (±¸°£½ÃÀÛ°¡_Àμâºñ) default_printing_price = print_count_01(qty_code, 1); document.all.line_3_2.innerHTML = default_printing_price; //Àμâºñ°è»êÁ¤¼ö rf_print_price = print_count_01(qty_code, 2); document.all.line_3_3.innerHTML = rf_print_price; //±¸°£½ÃÀÛ°¡_Á¦º»ºñ st_bind_price = print_count_01(qty_code, 3); //±¸°£½ÃÁõ°¨_Á¦º»ºñ variation_bind_price = print_count_01(qty_code, 4); //°è»ê´Ü°è1 (Àμâ¾Õ¸é) var count_001 = 0; if (size_code == "pssp2") { //64Àý if (qty_code >= 10 && qty_code < 20) {count_001 = qty_code - 10;} else if (qty_code >= 20 && qty_code < 170) {count_001 = qty_code - 20;} else if (qty_code >= 170 && qty_code < 330) {count_001 = qty_code - 170;} else if (qty_code >= 330 && qty_code < 490) {count_001 = qty_code - 330;} else if (qty_code >= 490 && qty_code < 650) {count_001 = qty_code - 490;} else if (qty_code >= 650 && qty_code < 810) {count_001 = qty_code - 650;} else if (qty_code >= 810 && qty_code < 970) {count_001 = qty_code - 810;} else if (qty_code >= 970) {count_001 = qty_code - 970;} } else if (size_code == "pssp3") { //48Àý if (qty_code >= 10 && qty_code < 20) {count_001 = qty_code - 10;} else if (qty_code >= 20 && qty_code < 130) {count_001 = qty_code - 20;} else if (qty_code >= 130 && qty_code < 250) {count_001 = qty_code - 130;} else if (qty_code >= 250 && qty_code < 370) {count_001 = qty_code - 250;} else if (qty_code >= 370 && qty_code < 490) {count_001 = qty_code - 370;} else if (qty_code >= 490 && qty_code < 610) {count_001 = qty_code - 490;} else if (qty_code >= 610 && qty_code < 730) {count_001 = qty_code - 610;} else if (qty_code >= 730 && qty_code < 850) {count_001 = qty_code - 730;} else if (qty_code >= 850 && qty_code < 970) {count_001 = qty_code - 850;} else if (qty_code >= 970) {count_001 = qty_code - 970;} } else if (size_code == "pssp4") { //32Àý if (qty_code >= 10 && qty_code < 20) {count_001 = qty_code - 10;} else if (qty_code >= 20 && qty_code < 90) {count_001 = qty_code - 20;} else if (qty_code >= 90 && qty_code < 170) {count_001 = qty_code - 90;} else if (qty_code >= 170 && qty_code < 250) {count_001 = qty_code - 170;} else if (qty_code >= 250 && qty_code < 330) {count_001 = qty_code - 250;} else if (qty_code >= 330 && qty_code < 410) {count_001 = qty_code - 330;} else if (qty_code >= 410 && qty_code < 490) {count_001 = qty_code - 410;} else if (qty_code >= 490 && qty_code < 570) {count_001 = qty_code - 490;} else if (qty_code >= 570 && qty_code < 650) {count_001 = qty_code - 570;} else if (qty_code >= 650 && qty_code < 730) {count_001 = qty_code - 650;} else if (qty_code >= 730 && qty_code < 810) {count_001 = qty_code - 730;} else if (qty_code >= 810 && qty_code < 890) {count_001 = qty_code - 810;} else if (qty_code >= 890 && qty_code < 970) {count_001 = qty_code - 890;} else if (qty_code >= 970) {count_001 = qty_code - 970;} } else if (size_code == "pssi1") { //16Àý if (qty_code >= 10 && qty_code < 50) {count_001 = qty_code - 10;} else if (qty_code >= 20 && qty_code < 50) {count_001 = qty_code - 20;} else if (qty_code >= 50 && qty_code < 90) {count_001 = qty_code - 50;} else if (qty_code >= 90 && qty_code < 130) {count_001 = qty_code - 90;} else if (qty_code >= 130 && qty_code < 170) {count_001 = qty_code - 130;} else if (qty_code >= 170 && qty_code < 210) {count_001 = qty_code - 170;} else if (qty_code >= 210 && qty_code < 250) {count_001 = qty_code - 210;} else if (qty_code >= 250 && qty_code < 290) {count_001 = qty_code - 250;} else if (qty_code >= 290 && qty_code < 330) {count_001 = qty_code - 290;} else if (qty_code >= 330 && qty_code < 370) {count_001 = qty_code - 330;} else if (qty_code >= 370 && qty_code < 410) {count_001 = qty_code - 370;} else if (qty_code >= 410 && qty_code < 450) {count_001 = qty_code - 410;} else if (qty_code >= 450 && qty_code < 490) {count_001 = qty_code - 450;} else if (qty_code >= 490 && qty_code < 530) {count_001 = qty_code - 490;} else if (qty_code >= 530 && qty_code < 570) {count_001 = qty_code - 530;} else if (qty_code >= 570 && qty_code < 610) {count_001 = qty_code - 570;} else if (qty_code >= 610 && qty_code < 650) {count_001 = qty_code - 610;} else if (qty_code >= 650 && qty_code < 690) {count_001 = qty_code - 650;} else if (qty_code >= 690 && qty_code < 730) {count_001 = qty_code - 690;} else if (qty_code >= 730 && qty_code < 770) {count_001 = qty_code - 730;} else if (qty_code >= 770 && qty_code < 810) {count_001 = qty_code - 770;} else if (qty_code >= 810 && qty_code < 850) {count_001 = qty_code - 810;} else if (qty_code >= 850 && qty_code < 890) {count_001 = qty_code - 850;} else if (qty_code >= 890 && qty_code < 930) {count_001 = qty_code - 890;} else if (qty_code >= 930 && qty_code < 970) {count_001 = qty_code - 930;} else if (qty_code >= 970) {count_001 = qty_code - 970;} } else if (size_code == "pssp5") { //A4(1/4) if (qty_code >= 10 && qty_code < 20) {count_001 = qty_code - 10;} else if (qty_code >= 20 && qty_code < 90) {count_001 = qty_code - 20;} else if (qty_code >= 90 && qty_code < 170) {count_001 = qty_code - 90;} else if (qty_code >= 170 && qty_code < 250) {count_001 = qty_code - 170;} else if (qty_code >= 250 && qty_code < 330) {count_001 = qty_code - 250;} else if (qty_code >= 330 && qty_code < 410) {count_001 = qty_code - 330;} else if (qty_code >= 410 && qty_code < 490) {count_001 = qty_code - 410;} else if (qty_code >= 490 && qty_code < 570) {count_001 = qty_code - 490;} else if (qty_code >= 570 && qty_code < 650) {count_001 = qty_code - 570;} else if (qty_code >= 650 && qty_code < 730) {count_001 = qty_code - 650;} else if (qty_code >= 730 && qty_code < 810) {count_001 = qty_code - 730;} else if (qty_code >= 810 && qty_code < 890) {count_001 = qty_code - 810;} else if (qty_code >= 890 && qty_code < 970) {count_001 = qty_code - 890;} else if (qty_code >= 970) {count_001 = qty_code - 970;} } else if (size_code == "pssp6") { //A4(1/3) if (qty_code >= 10 && qty_code < 70) {count_001 = qty_code - 10;} else if (qty_code >= 20 && qty_code < 70) {count_001 = qty_code - 20;} else if (qty_code >= 70 && qty_code < 130) {count_001 = qty_code - 70;} else if (qty_code >= 130 && qty_code < 190) {count_001 = qty_code - 130;} else if (qty_code >= 190 && qty_code < 250) {count_001 = qty_code - 190;} else if (qty_code >= 250 && qty_code < 310) {count_001 = qty_code - 250;} else if (qty_code >= 310 && qty_code < 370) {count_001 = qty_code - 310;} else if (qty_code >= 370 && qty_code < 430) {count_001 = qty_code - 370;} else if (qty_code >= 430 && qty_code < 490) {count_001 = qty_code - 430;} else if (qty_code >= 490 && qty_code < 550) {count_001 = qty_code - 490;} else if (qty_code >= 550 && qty_code < 610) {count_001 = qty_code - 550;} else if (qty_code >= 610 && qty_code < 670) {count_001 = qty_code - 610;} else if (qty_code >= 670 && qty_code < 730) {count_001 = qty_code - 670;} else if (qty_code >= 730 && qty_code < 790) {count_001 = qty_code - 730;} else if (qty_code >= 790 && qty_code < 850) {count_001 = qty_code - 790;} else if (qty_code >= 850 && qty_code < 910) {count_001 = qty_code - 850;} else if (qty_code >= 910 && qty_code < 970) {count_001 = qty_code - 910;} else if (qty_code >= 970) {count_001 = qty_code - 970;} } else if (size_code == "pssp7") { //A5 if (qty_code >= 10 && qty_code < 50) {count_001 = qty_code - 10;} else if (qty_code >= 20 && qty_code < 50) {count_001 = qty_code - 20;} else if (qty_code >= 50 && qty_code < 90) {count_001 = qty_code - 50;} else if (qty_code >= 90 && qty_code < 130) {count_001 = qty_code - 90;} else if (qty_code >= 130 && qty_code < 170) {count_001 = qty_code - 130;} else if (qty_code >= 170 && qty_code < 210) {count_001 = qty_code - 170;} else if (qty_code >= 210 && qty_code < 250) {count_001 = qty_code - 210;} else if (qty_code >= 250 && qty_code < 290) {count_001 = qty_code - 250;} else if (qty_code >= 290 && qty_code < 330) {count_001 = qty_code - 290;} else if (qty_code >= 330 && qty_code < 370) {count_001 = qty_code - 330;} else if (qty_code >= 370 && qty_code < 410) {count_001 = qty_code - 370;} else if (qty_code >= 410 && qty_code < 450) {count_001 = qty_code - 410;} else if (qty_code >= 450 && qty_code < 490) {count_001 = qty_code - 450;} else if (qty_code >= 490 && qty_code < 530) {count_001 = qty_code - 490;} else if (qty_code >= 530 && qty_code < 570) {count_001 = qty_code - 530;} else if (qty_code >= 570 && qty_code < 610) {count_001 = qty_code - 570;} else if (qty_code >= 610 && qty_code < 650) {count_001 = qty_code - 610;} else if (qty_code >= 650 && qty_code < 690) {count_001 = qty_code - 650;} else if (qty_code >= 690 && qty_code < 730) {count_001 = qty_code - 690;} else if (qty_code >= 730 && qty_code < 770) {count_001 = qty_code - 730;} else if (qty_code >= 770 && qty_code < 810) {count_001 = qty_code - 770;} else if (qty_code >= 810 && qty_code < 850) {count_001 = qty_code - 810;} else if (qty_code >= 850 && qty_code < 890) {count_001 = qty_code - 850;} else if (qty_code >= 890 && qty_code < 930) {count_001 = qty_code - 890;} else if (qty_code >= 930 && qty_code < 970) {count_001 = qty_code - 930;} else if (qty_code >= 970) {count_001 = qty_code - 970;} } else if (size_code == "pssp8") { //A4 if (qty_code >= 10 && qty_code < 50) {count_001 = qty_code - 10;} else if (qty_code >= 20 && qty_code < 50) {count_001 = qty_code - 20;} else if (qty_code >= 50 && qty_code < 90) {count_001 = qty_code - 50;} else if (qty_code >= 90 && qty_code < 130) {count_001 = qty_code - 90;} else if (qty_code >= 130 && qty_code < 170) {count_001 = qty_code - 130;} else if (qty_code >= 170 && qty_code < 210) {count_001 = qty_code - 170;} else if (qty_code >= 210 && qty_code < 250) {count_001 = qty_code - 210;} else if (qty_code >= 250 && qty_code < 290) {count_001 = qty_code - 250;} else if (qty_code >= 290 && qty_code < 330) {count_001 = qty_code - 290;} else if (qty_code >= 330 && qty_code < 370) {count_001 = qty_code - 330;} else if (qty_code >= 370 && qty_code < 410) {count_001 = qty_code - 370;} else if (qty_code >= 410 && qty_code < 450) {count_001 = qty_code - 410;} else if (qty_code >= 450 && qty_code < 490) {count_001 = qty_code - 450;} else if (qty_code >= 490 && qty_code < 530) {count_001 = qty_code - 490;} else if (qty_code >= 530 && qty_code < 570) {count_001 = qty_code - 530;} else if (qty_code >= 570 && qty_code < 610) {count_001 = qty_code - 570;} else if (qty_code >= 610 && qty_code < 650) {count_001 = qty_code - 610;} else if (qty_code >= 650 && qty_code < 690) {count_001 = qty_code - 650;} else if (qty_code >= 690 && qty_code < 730) {count_001 = qty_code - 690;} else if (qty_code >= 730 && qty_code < 770) {count_001 = qty_code - 730;} else if (qty_code >= 770 && qty_code < 810) {count_001 = qty_code - 770;} else if (qty_code >= 810 && qty_code < 850) {count_001 = qty_code - 810;} else if (qty_code >= 850 && qty_code < 890) {count_001 = qty_code - 850;} else if (qty_code >= 890 && qty_code < 930) {count_001 = qty_code - 890;} else if (qty_code >= 930 && qty_code < 970) {count_001 = qty_code - 930;} else if (qty_code >= 970) {count_001 = qty_code - 970;} } document.all.line_3_4.innerHTML = count_001; //°è»ê´Ü°è2 (¾Õ¸é) var count_002 = 0; count_002 = (count_001 / 10) + 1; document.all.line_3_5.innerHTML = count_002; //Àμâºñ1 (¾Õ¸é) var f_printing_price_01 = 0; if (qty_code == 10){f_printing_price_01 = default_printing_price;} else {f_printing_price_01 = default_printing_price + (rf_print_price * count_002);} document.all.line_3_6.innerHTML = f_printing_price_01; //Àμâºñ2 (¾Õ¸é) var f_printing_price_02 = 0; if (color_code == "cld01"){f_printing_price_02 = f_printing_price_01;} else if (color_code == "cld32" || color_code == "cld33"){f_printing_price_02 = f_printing_price_01 * 1.5;} else if (color_code == "cld34" || color_code == "cld35"){f_printing_price_02 = f_printing_price_01 + (f_printing_price_01 * 1.5);} else if (color_code == "cld36"){f_printing_price_02 = f_printing_price_01 * 3;} else {f_printing_price_02 = 0;} document.all.line_3_7.innerHTML = f_printing_price_02; //¾Õ¸éÀμâºñ document.all.line_3_8.innerHTML = f_printing_price_02; //Àμ⵵¼ö (µÞ¸é) var color_code_bak = document.orderform.color_code_bak.value; document.all.line_4_1.innerHTML = color_code_bak; //±âº»Àμâºñ (±¸°£½ÃÀÛ°¡_Àμâºñ) var bk_default_printing_price = 0; //Àμâºñ var bk_rf_print_price = 0; var bk_count_001 = 0; var bk_count_002 = 0; var bk_printing_price_01 = 0; var bk_printing_price_02 = 0; //µÞ¸é Àμ⵵¼ö°¡ ÀÖÀ¸¸é °è»ê if (color_code_bak == ""){ bk_default_printing_price = 0; bk_rf_print_price = 0; document.all.line_4_2.innerHTML = bk_default_printing_price; document.all.line_4_3.innerHTML = bk_rf_print_price; document.all.line_4_4.innerHTML = bk_count_001; document.all.line_4_5.innerHTML = bk_count_002; document.all.line_4_6.innerHTML = bk_printing_price_01; document.all.line_4_7.innerHTML = bk_printing_price_02; document.all.line_4_8.innerHTML = bk_printing_price_02; } else { //±âº»Àμâºñ (±¸°£½ÃÀÛ°¡_Àμâºñ) (µÞ¸é) bk_default_printing_price = print_count_01(qty_code, 1); document.all.line_4_2.innerHTML = bk_default_printing_price; //Àμâºñ°è»êÁ¤¼ö (µÞ¸é) bk_rf_print_price = print_count_01(qty_code, 2); document.all.line_4_3.innerHTML = bk_rf_print_price; //°è»ê´Ü°è1 (µÞ¸é) //¾Õ¸é°ú °°À½ count_001 bk_count_001 = count_001; document.all.line_4_4.innerHTML = bk_count_001; //°è»ê´Ü°è2 (µÞ¸é) bk_count_002 = 0; bk_count_002 = (bk_count_001 / 10) + 1; document.all.line_4_5.innerHTML = bk_count_002; //Àμâºñ1 (µÞ¸é) bk_printing_price_01 = 0; if (qty_code == 10){bk_printing_price_01 = bk_default_printing_price;} else {bk_printing_price_01 = bk_default_printing_price + (bk_rf_print_price * bk_count_002);} document.all.line_4_6.innerHTML = bk_printing_price_01; //Àμâºñ2 (µÞ¸é) bk_printing_price_02 = 0; if (color_code_bak == "cld01"){bk_printing_price_02 = bk_printing_price_01;} else if (color_code_bak == "cld32" || color_code_bak == "cld33"){bk_printing_price_02 = bk_printing_price_01 * 1.5;} else if (color_code_bak == "cld34" || color_code_bak == "cld35"){bk_printing_price_02 = bk_printing_price_01 + (bk_printing_price_01 * 1.5);} else if (color_code_bak == "cld36"){bk_printing_price_02 = bk_printing_price_01 * 3;} else {bk_printing_price_02 = 0;} document.all.line_4_7.innerHTML = bk_printing_price_02; //µÞ¸éÀμâºñ document.all.line_4_8.innerHTML = bk_printing_price_02; } //µÞ¸é Àμâºñ ¿©±â±îÁö === //Á¦º»ºñ //Á¦º»ºñ var jebon_price = 0; //´Ü°è*°è»êÁ¤¼ö var jebon_step_count = 0; //Á¦º»¹æ½Ä var jebon_yesno = document.orderform.jebon_yesno.value; document.all.line_5_1.innerHTML = jebon_yesno; //±¸°£½ÃÀÛ°¡_Á¦º»ºñ st_bind_price document.all.line_5_2.innerHTML = st_bind_price; //°è»ê´Ü°è1 count_001 document.all.line_5_3.innerHTML = count_001; //°è»ê´Ü°è2 (Á¦º») bind_count_002 = 0; bind_count_002 = (count_001 / 10) + 1; document.all.line_5_4.innerHTML = bind_count_002; //Á¦º»ºñ°è»êÁ¤¼ö = ±¸°£Áõ°¨_Á¦º»ºñ variation_bind_price document.all.line_5_5.innerHTML = variation_bind_price; //Á¦º»ÀÖÀ½ if (jebon_yesno == "Y"){ //´Ü°è*°è»êÁ¤¼ö jebon_step_count = bind_count_002 * variation_bind_price; document.all.line_5_6.innerHTML = jebon_step_count; //Á¦º»ºñ jebon_price = st_bind_price + jebon_step_count; document.all.line_5_7.innerHTML = jebon_price; } else { //´Ü°è*°è»êÁ¤¼ö document.all.line_5_6.innerHTML = jebon_step_count; //Á¦º»ºñ jebon_price = 0; document.all.line_5_7.innerHTML = jebon_price; } //ÇÕ°è //¿ëÁö´Ü°¡ document.all.line_6_1.innerHTML = compute_paper_price; //ÆÇºñ_¾Õ¸é var f_pan_price = 0; if (color_code == "cld01" || color_code == "cld32" || color_code == "cld33"){f_pan_price = 2000;} else {f_pan_price = 2000 * 2;} document.all.line_6_2.innerHTML = f_pan_price; //Àμâºñ_¾Õ¸é document.all.line_6_3.innerHTML = f_printing_price_02; //ÆÇºñ_µÞ¸é var bk_pan_price = 0; if (color_code_bak == "cld01" || color_code_bak == "cld32" || color_code_bak == "cld33"){bk_pan_price = 2000;} else if (color_code_bak == "cld34" || color_code_bak == "cld35" || color_code_bak == "cld36"){bk_pan_price = 2000 * 2;} else {bk_pan_price = 0;} document.all.line_6_4.innerHTML = bk_pan_price; //Àμâºñ_µÞ¸é document.all.line_6_5.innerHTML = bk_printing_price_02; //Á¦º»ºñ document.all.line_6_6.innerHTML = jebon_price; //ÃÖÁ¾±Ý¾×(¶ó¿îµåÀü°è»ê) var total_price = 0; total_price = compute_paper_price + f_pan_price + f_printing_price_02 + bk_pan_price + bk_printing_price_02 + jebon_price; document.all.line_6_7.innerHTML = total_price; //ÃÖÁ¾±Ý¾×(¶ó¿îµå°è»ê) total_price = Math.floor(total_price/1000) * 1000; document.all.line_6_8.innerHTML = total_price; //°¡°Ý ³Ö±â var price = document.orderform.pay; price.value = total_price; } //°¡°Ý»êÃâ ÇÔ¼ö ³¡ //±¸°£½ÃÀÛ°¡_Àμâºñ, Àμâºñ, ±¸°£½ÃÀÛ°¡_Á¦º»ºñ, ±¸°£Áõ°¨_Á¦º»ºñ ±¸ÇÏ´Â ÇÔ¼ö //turn_num ÀÌ 1ÀÌ¸é ±¸°£½ÃÀÛ°¡Àμâºñ, 2 : Àμâºñ, 3 : ±¸°£½ÃÀÛ°¡_Á¦º»ºñ, 4 : ±¸°£Áõ°¨_Á¦º»ºñ ¸¦ ¸®ÅÏÇÔ. function print_count_01(qty_code, turn_num){ var size_code = document.orderform.size_code.value; //»çÀÌÁîÄڵ尪 var default_printing_price = 0; var rf_print_price = 0; var st_bind_price = 0; var variation_bind_price = 0; if (size_code == "pssp2") { //64Àý if (qty_code >= 10 && qty_code < 170) {default_printing_price = 8000; rf_print_price = 0; st_bind_price = 8000; variation_bind_price = 0;} else if (qty_code >= 170 && qty_code < 330) {default_printing_price = 8000; rf_print_price = 438; st_bind_price = 8000; variation_bind_price = 750;} else if (qty_code >= 330 && qty_code < 490) {default_printing_price = 15008; rf_print_price = 438; st_bind_price = 20000; variation_bind_price = 750;} else if (qty_code >= 490 && qty_code < 650) {default_printing_price = 22008; rf_print_price = 375; st_bind_price = 32000; variation_bind_price = 750;} else if (qty_code >= 650 && qty_code < 810) {default_printing_price = 28008; rf_print_price = 250; st_bind_price = 44000; variation_bind_price = 750;} else if (qty_code >= 810 && qty_code < 970) {default_printing_price = 32008; rf_print_price = 250; st_bind_price = 56000; variation_bind_price = 750;} else if (qty_code >= 970) {default_printing_price = 36008; rf_print_price = 250; st_bind_price = 68000; variation_bind_price = 750;} } else if (size_code == "pssp3") { //48Àý if (qty_code >= 10 && qty_code < 130) {default_printing_price = 8000; rf_print_price = 0; st_bind_price = 8000; variation_bind_price = 0;} else if (qty_code >= 130 && qty_code < 250) {default_printing_price = 8000; rf_print_price = 583; st_bind_price = 8000; variation_bind_price = 917;} else if (qty_code >= 250 && qty_code < 370) {default_printing_price = 14996; rf_print_price = 583; st_bind_price = 19004; variation_bind_price = 917;} else if (qty_code >= 370 && qty_code < 490) {default_printing_price = 21992; rf_print_price = 500; st_bind_price = 30008; variation_bind_price = 917;} else if (qty_code >= 490 && qty_code < 610) {default_printing_price = 27992; rf_print_price = 333; st_bind_price = 41012; variation_bind_price = 917;} else if (qty_code >= 610 && qty_code < 730) {default_printing_price = 31988; rf_print_price = 333; st_bind_price = 52106; variation_bind_price = 917;} else if (qty_code >= 730 && qty_code < 850) {default_printing_price = 35984; rf_print_price = 500; st_bind_price = 63020; variation_bind_price = 917;} else if (qty_code >= 850 && qty_code < 970) {default_printing_price = 41984; rf_print_price = 500; st_bind_price = 74024; variation_bind_price = 917;} else if (qty_code >= 970) {default_printing_price = 47984; rf_print_price = 500; st_bind_price = 85028; variation_bind_price = 917;} } else if (size_code == "pssp4") { //32Àý if (qty_code >= 10 && qty_code < 90) {default_printing_price = 8000; rf_print_price = 0; st_bind_price = 8000; variation_bind_price = 0;} else if (qty_code >= 90 && qty_code < 170) {default_printing_price = 8000; rf_print_price = 875; st_bind_price = 8000; variation_bind_price = 1375;} else if (qty_code >= 170 && qty_code < 250) {default_printing_price = 15000; rf_print_price = 875; st_bind_price = 19000; variation_bind_price = 1375;} else if (qty_code >= 250 && qty_code < 330) {default_printing_price = 22000; rf_print_price = 750; st_bind_price = 30000; variation_bind_price = 1375;} else if (qty_code >= 330 && qty_code < 410) {default_printing_price = 28000; rf_print_price = 500; st_bind_price = 41000; variation_bind_price = 1375;} else if (qty_code >= 410 && qty_code < 490) {default_printing_price = 32000; rf_print_price = 500; st_bind_price = 52000; variation_bind_price = 1375;} else if (qty_code >= 490 && qty_code < 570) {default_printing_price = 36000; rf_print_price = 750; st_bind_price = 63000; variation_bind_price = 1375;} else if (qty_code >= 570 && qty_code < 650) {default_printing_price = 42000; rf_print_price = 750; st_bind_price = 74000; variation_bind_price = 1375;} else if (qty_code >= 650 && qty_code < 730) {default_printing_price = 48000; rf_print_price = 750; st_bind_price = 85000; variation_bind_price = 1375;} else if (qty_code >= 730 && qty_code < 810) {default_printing_price = 54000; rf_print_price = 750; st_bind_price = 96000; variation_bind_price = 1375;} else if (qty_code >= 810 && qty_code < 890) {default_printing_price = 60000; rf_print_price = 625; st_bind_price = 107000; variation_bind_price = 1375;} else if (qty_code >= 890 && qty_code < 970) {default_printing_price = 65000; rf_print_price = 625; st_bind_price = 118000; variation_bind_price = 1375;} else if (qty_code >= 970) {default_printing_price = 70000; rf_print_price = 625; st_bind_price = 129000; variation_bind_price = 1375;} } else if (size_code == "pssi1") { //16Àý if (qty_code >= 10 && qty_code < 50) {default_printing_price = 8000; rf_print_price = 0; st_bind_price = 8000; variation_bind_price = 0;} else if (qty_code >= 50 && qty_code < 90) {default_printing_price = 8000; rf_print_price = 1500; st_bind_price = 8000; variation_bind_price = 1750;} else if (qty_code >= 90 && qty_code < 130) {default_printing_price = 14000; rf_print_price = 1250; st_bind_price = 15000; variation_bind_price = 1875;} else if (qty_code >= 130 && qty_code < 170) {default_printing_price = 19000; rf_print_price = 1250; st_bind_price = 22500; variation_bind_price = 1875;} else if (qty_code >= 170 && qty_code < 210) {default_printing_price = 24000; rf_print_price = 750; st_bind_price = 30000; variation_bind_price = 1875;} else if (qty_code >= 210 && qty_code < 250) {default_printing_price = 27000; rf_print_price = 750; st_bind_price = 37500; variation_bind_price = 1875;} else if (qty_code >= 250 && qty_code < 290) {default_printing_price = 30000; rf_print_price = 1250; st_bind_price = 45000; variation_bind_price = 1875;} else if (qty_code >= 290 && qty_code < 330) {default_printing_price = 35000; rf_print_price = 1250; st_bind_price = 52500; variation_bind_price = 1875;} else if (qty_code >= 330 && qty_code < 370) {default_printing_price = 40000; rf_print_price = 1250; st_bind_price = 60000; variation_bind_price = 1875;} else if (qty_code >= 370 && qty_code < 410) {default_printing_price = 45000; rf_print_price = 1250; st_bind_price = 67500; variation_bind_price = 1875;} else if (qty_code >= 410 && qty_code < 450) {default_printing_price = 50000; rf_print_price = 1250; st_bind_price = 75000; variation_bind_price = 1875;} else if (qty_code >= 450 && qty_code < 490) {default_printing_price = 55000; rf_print_price = 1250; st_bind_price = 82500; variation_bind_price = 1875;} else if (qty_code >= 490 && qty_code < 530) {default_printing_price = 60000; rf_print_price = 1250; st_bind_price = 90000; variation_bind_price = 1875;} else if (qty_code >= 530 && qty_code < 570) {default_printing_price = 65000; rf_print_price = 1250; st_bind_price = 97500; variation_bind_price = 1875;} else if (qty_code >= 570 && qty_code < 610) {default_printing_price = 70000; rf_print_price = 1250; st_bind_price = 105000; variation_bind_price = 1875;} else if (qty_code >= 610 && qty_code < 650) {default_printing_price = 75000; rf_print_price = 1250; st_bind_price = 112500; variation_bind_price = 1875;} else if (qty_code >= 650 && qty_code < 690) {default_printing_price = 80000; rf_print_price = 1250; st_bind_price = 120000; variation_bind_price = 1875;} else if (qty_code >= 690 && qty_code < 730) {default_printing_price = 85000; rf_print_price = 1250; st_bind_price = 127500; variation_bind_price = 1875;} else if (qty_code >= 730 && qty_code < 770) {default_printing_price = 90000; rf_print_price = 1250; st_bind_price = 135000; variation_bind_price = 1875;} else if (qty_code >= 770 && qty_code < 810) {default_printing_price = 95000; rf_print_price = 1250; st_bind_price = 142500; variation_bind_price = 1875;} else if (qty_code >= 810 && qty_code < 850) {default_printing_price = 100000; rf_print_price = 1250; st_bind_price = 150000; variation_bind_price = 1875;} else if (qty_code >= 850 && qty_code < 890) {default_printing_price = 105000; rf_print_price = 1250; st_bind_price = 157500; variation_bind_price = 1875;} else if (qty_code >= 890 && qty_code < 930) {default_printing_price = 110000; rf_print_price = 1250; st_bind_price = 165000; variation_bind_price = 1875;} else if (qty_code >= 930 && qty_code < 970) {default_printing_price = 115000; rf_print_price = 1250; st_bind_price = 172500; variation_bind_price = 1875;} else if (qty_code >= 970) {default_printing_price = 120000; rf_print_price = 1250; st_bind_price = 180000; variation_bind_price = 1875;} } else if (size_code == "pssp5") { //A4(1/4) if (qty_code >= 10 && qty_code < 90) {default_printing_price = 8000; rf_print_price = 0; st_bind_price = 8000; variation_bind_price = 0;} else if (qty_code >= 90 && qty_code < 170) {default_printing_price = 8000; rf_print_price = 875; st_bind_price = 8000; variation_bind_price = 1750;} else if (qty_code >= 170 && qty_code < 250) {default_printing_price = 15000; rf_print_price = 625; st_bind_price = 22000; variation_bind_price = 1375;} else if (qty_code >= 250 && qty_code < 330) {default_printing_price = 20000; rf_print_price = 750; st_bind_price = 33000; variation_bind_price = 1375;} else if (qty_code >= 330 && qty_code < 410) {default_printing_price = 26000; rf_print_price = 625; st_bind_price = 44000; variation_bind_price = 1375;} else if (qty_code >= 410 && qty_code < 490) {default_printing_price = 31000; rf_print_price = 625; st_bind_price = 55000; variation_bind_price = 1375;} else if (qty_code >= 490 && qty_code < 570) {default_printing_price = 36000; rf_print_price = 750; st_bind_price = 66000; variation_bind_price = 1375;} else if (qty_code >= 570 && qty_code < 650) {default_printing_price = 42000; rf_print_price = 750; st_bind_price = 77000; variation_bind_price = 1375;} else if (qty_code >= 650 && qty_code < 730) {default_printing_price = 48000; rf_print_price = 750; st_bind_price = 88000; variation_bind_price = 1375;} else if (qty_code >= 730 && qty_code < 810) {default_printing_price = 54000; rf_print_price = 750; st_bind_price = 99000; variation_bind_price = 1375;} else if (qty_code >= 810 && qty_code < 890) {default_printing_price = 60000; rf_print_price = 750; st_bind_price = 110000; variation_bind_price = 1375;} else if (qty_code >= 890 && qty_code < 970) {default_printing_price = 66000; rf_print_price = 750; st_bind_price = 121000; variation_bind_price = 1375;} else if (qty_code >= 970) {default_printing_price = 72000; rf_print_price = 750; st_bind_price = 132000; variation_bind_price = 1375;} } else if (size_code == "pssp6") { //A4(1/3) if (qty_code >= 10 && qty_code < 70) {default_printing_price = 8000; rf_print_price = 0; st_bind_price = 8000; variation_bind_price = 0;} else if (qty_code >= 70 && qty_code < 130) {default_printing_price = 8000; rf_print_price = 1167; st_bind_price = 8000; variation_bind_price = 2000;} else if (qty_code >= 130 && qty_code < 190) {default_printing_price = 15002; rf_print_price = 917; st_bind_price = 20000; variation_bind_price = 1500;} else if (qty_code >= 190 && qty_code < 250) {default_printing_price = 20504; rf_print_price = 917; st_bind_price = 29000; variation_bind_price = 1500;} else if (qty_code >= 250 && qty_code < 310) {default_printing_price = 26006; rf_print_price = 833; st_bind_price = 38000; variation_bind_price = 1333;} else if (qty_code >= 310 && qty_code < 370) {default_printing_price = 31004; rf_print_price = 833; st_bind_price = 45998; variation_bind_price = 1333;} else if (qty_code >= 370 && qty_code < 430) {default_printing_price = 36002; rf_print_price = 1000; st_bind_price = 53996; variation_bind_price = 1500;} else if (qty_code >= 430 && qty_code < 490) {default_printing_price = 42002; rf_print_price = 1000; st_bind_price = 62996; variation_bind_price = 1500;} else if (qty_code >= 490 && qty_code < 550) {default_printing_price = 48002; rf_print_price = 1000; st_bind_price = 71996; variation_bind_price = 1500;} else if (qty_code >= 550 && qty_code < 610) {default_printing_price = 54002; rf_print_price = 1000; st_bind_price = 80996; variation_bind_price = 1500;} else if (qty_code >= 610 && qty_code < 670) {default_printing_price = 60002; rf_print_price = 1000; st_bind_price = 89996; variation_bind_price = 1500;} else if (qty_code >= 670 && qty_code < 730) {default_printing_price = 66002; rf_print_price = 1000; st_bind_price = 98996; variation_bind_price = 1500;} else if (qty_code >= 730 && qty_code < 790) {default_printing_price = 72002; rf_print_price = 1000; st_bind_price = 107996; variation_bind_price = 1500;} else if (qty_code >= 790 && qty_code < 850) {default_printing_price = 78002; rf_print_price = 1000; st_bind_price = 116996; variation_bind_price = 1500;} else if (qty_code >= 850 && qty_code < 910) {default_printing_price = 84002; rf_print_price = 1000; st_bind_price = 125996; variation_bind_price = 1500;} else if (qty_code >= 910 && qty_code < 970) {default_printing_price = 90002; rf_print_price = 1000; st_bind_price = 134996; variation_bind_price = 1500;} else if (qty_code >= 970) {default_printing_price = 96002; rf_print_price = 1000; st_bind_price = 143996; variation_bind_price = 1500;} } else if (size_code == "pssp7") { //A5 if (qty_code >= 10 && qty_code < 50) {default_printing_price = 8000; rf_print_price = 0; st_bind_price = 8000; variation_bind_price = 0;} else if (qty_code >= 50 && qty_code < 90) {default_printing_price = 8000; rf_print_price = 1250; st_bind_price = 8000; variation_bind_price = 1500;} else if (qty_code >= 90 && qty_code < 130) {default_printing_price = 13000; rf_print_price = 1375; st_bind_price = 14000; variation_bind_price = 1750;} else if (qty_code >= 130 && qty_code < 170) {default_printing_price = 18500; rf_print_price = 1375; st_bind_price = 21000; variation_bind_price = 1750;} else if (qty_code >= 170 && qty_code < 210) {default_printing_price = 24000; rf_print_price = 750; st_bind_price = 28000; variation_bind_price = 1625;} else if (qty_code >= 210 && qty_code < 250) {default_printing_price = 27000; rf_print_price = 750; st_bind_price = 34500; variation_bind_price = 1625;} else if (qty_code >= 250 && qty_code < 290) {default_printing_price = 30000; rf_print_price = 1250; st_bind_price = 41000; variation_bind_price = 1625;} else if (qty_code >= 290 && qty_code < 330) {default_printing_price = 35000; rf_print_price = 1250; st_bind_price = 47500; variation_bind_price = 1625;} else if (qty_code >= 330 && qty_code < 370) {default_printing_price = 40000; rf_print_price = 1250; st_bind_price = 54000; variation_bind_price = 1625;} else if (qty_code >= 370 && qty_code < 410) {default_printing_price = 45000; rf_print_price = 1250; st_bind_price = 60500; variation_bind_price = 1625;} else if (qty_code >= 410 && qty_code < 450) {default_printing_price = 50000; rf_print_price = 1250; st_bind_price = 67000; variation_bind_price = 1625;} else if (qty_code >= 450 && qty_code < 490) {default_printing_price = 55000; rf_print_price = 1250; st_bind_price = 73500; variation_bind_price = 1625;} else if (qty_code >= 490 && qty_code < 530) {default_printing_price = 60000; rf_print_price = 1250; st_bind_price = 80000; variation_bind_price = 1625;} else if (qty_code >= 530 && qty_code < 570) {default_printing_price = 65000; rf_print_price = 1250; st_bind_price = 86500; variation_bind_price = 1625;} else if (qty_code >= 570 && qty_code < 610) {default_printing_price = 70000; rf_print_price = 1250; st_bind_price = 93000; variation_bind_price = 1625;} else if (qty_code >= 610 && qty_code < 650) {default_printing_price = 75000; rf_print_price = 1250; st_bind_price = 99500; variation_bind_price = 1625;} else if (qty_code >= 650 && qty_code < 690) {default_printing_price = 80000; rf_print_price = 1250; st_bind_price = 106000; variation_bind_price = 1625;} else if (qty_code >= 690 && qty_code < 730) {default_printing_price = 85000; rf_print_price = 1250; st_bind_price = 112500; variation_bind_price = 1625;} else if (qty_code >= 730 && qty_code < 770) {default_printing_price = 90000; rf_print_price = 1250; st_bind_price = 119000; variation_bind_price = 1625;} else if (qty_code >= 770 && qty_code < 810) {default_printing_price = 95000; rf_print_price = 1250; st_bind_price = 125500; variation_bind_price = 1625;} else if (qty_code >= 810 && qty_code < 850) {default_printing_price = 100000; rf_print_price = 1250; st_bind_price = 132000; variation_bind_price = 1625;} else if (qty_code >= 850 && qty_code < 890) {default_printing_price = 105000; rf_print_price = 1250; st_bind_price = 138500; variation_bind_price = 1625;} else if (qty_code >= 890 && qty_code < 930) {default_printing_price = 110000; rf_print_price = 1250; st_bind_price = 145000; variation_bind_price = 1625;} else if (qty_code >= 930 && qty_code < 970) {default_printing_price = 115000; rf_print_price = 1250; st_bind_price = 151500; variation_bind_price = 1625;} else if (qty_code >= 970) {default_printing_price = 120000; rf_print_price = 1250; st_bind_price = 158000; variation_bind_price = 1625;} } else if (size_code == "pssp8") { //A4 if (qty_code >= 10 && qty_code < 20) {default_printing_price = 8000; rf_print_price = 0; st_bind_price = 8000; variation_bind_price = 0;} else if (qty_code >= 20 && qty_code < 50) {default_printing_price = 10000; rf_print_price = 2000; st_bind_price = 8000; variation_bind_price = 0;} else if (qty_code >= 50 && qty_code < 90) {default_printing_price = 14000; rf_print_price = 2500; st_bind_price = 12000; variation_bind_price = 3000;} else if (qty_code >= 90 && qty_code < 130) {default_printing_price = 24000; rf_print_price = 1500; st_bind_price = 24000; variation_bind_price = 3000;} else if (qty_code >= 130 && qty_code < 170) {default_printing_price = 30000; rf_print_price = 2500; st_bind_price = 36000; variation_bind_price = 3000;} else if (qty_code >= 170 && qty_code < 210) {default_printing_price = 40000; rf_print_price = 2500; st_bind_price = 48000; variation_bind_price = 2750;} else if (qty_code >= 210 && qty_code < 250) {default_printing_price = 50000; rf_print_price = 2500; st_bind_price = 59000; variation_bind_price = 3000;} else if (qty_code >= 250 && qty_code < 290) {default_printing_price = 60000; rf_print_price = 2500; st_bind_price = 71000; variation_bind_price = 3000;} else if (qty_code >= 290 && qty_code < 330) {default_printing_price = 70000; rf_print_price = 2500; st_bind_price = 83000; variation_bind_price = 3000;} else if (qty_code >= 330 && qty_code < 370) {default_printing_price = 80000; rf_print_price = 2500; st_bind_price = 95000; variation_bind_price = 3000;} else if (qty_code >= 370 && qty_code < 410) {default_printing_price = 90000; rf_print_price = 2500; st_bind_price = 107000; variation_bind_price = 3000;} else if (qty_code >= 410 && qty_code < 450) {default_printing_price = 100000; rf_print_price = 2500; st_bind_price = 119000; variation_bind_price = 3000;} else if (qty_code >= 450 && qty_code < 490) {default_printing_price = 110000; rf_print_price = 2500; st_bind_price = 131000; variation_bind_price = 3000;} else if (qty_code >= 490 && qty_code < 530) {default_printing_price = 120000; rf_print_price = 2500; st_bind_price = 143000; variation_bind_price = 3000;} else if (qty_code >= 530 && qty_code < 570) {default_printing_price = 130000; rf_print_price = 2500; st_bind_price = 155000; variation_bind_price = 3000;} else if (qty_code >= 570 && qty_code < 610) {default_printing_price = 140000; rf_print_price = 2500; st_bind_price = 167000; variation_bind_price = 3000;} else if (qty_code >= 610 && qty_code < 650) {default_printing_price = 150000; rf_print_price = 2500; st_bind_price = 179000; variation_bind_price = 3000;} else if (qty_code >= 650 && qty_code < 690) {default_printing_price = 160000; rf_print_price = 2500; st_bind_price = 191000; variation_bind_price = 3000;} else if (qty_code >= 690 && qty_code < 730) {default_printing_price = 170000; rf_print_price = 2500; st_bind_price = 203000; variation_bind_price = 3000;} else if (qty_code >= 730 && qty_code < 770) {default_printing_price = 180000; rf_print_price = 2500; st_bind_price = 215000; variation_bind_price = 3000;} else if (qty_code >= 770 && qty_code < 810) {default_printing_price = 190000; rf_print_price = 2500; st_bind_price = 227000; variation_bind_price = 3000;} else if (qty_code >= 810 && qty_code < 850) {default_printing_price = 200000; rf_print_price = 2500; st_bind_price = 239000; variation_bind_price = 3000;} else if (qty_code >= 850 && qty_code < 890) {default_printing_price = 210000; rf_print_price = 2500; st_bind_price = 251000; variation_bind_price = 3000;} else if (qty_code >= 890 && qty_code < 930) {default_printing_price = 220000; rf_print_price = 2500; st_bind_price = 263000; variation_bind_price = 3000;} else if (qty_code >= 930 && qty_code < 970) {default_printing_price = 230000; rf_print_price = 2500; st_bind_price = 275000; variation_bind_price = 3000;} else if (qty_code >= 970) {default_printing_price = 240000; rf_print_price = 2500; st_bind_price = 287000; variation_bind_price = 3000;} } //alert(default_printing_price); if (turn_num == 1){ return default_printing_price; } else if (turn_num == 2){ return rf_print_price; } else if (turn_num == 3){ return st_bind_price; } else if (turn_num == 4){ return variation_bind_price; } else { return 0; } }