function changeSelectCount() {

/* ƒŠƒXƒg‚Ì’l‚ð‘Ü”‚É•ÏŠ·@•@ƒvƒ‰ƒCƒX•ÏŠ· ŠJŽn */

	mo_mi_idx = document.forms[0].mo_mi_b.selectedIndex;
	mo_mi_cnt = document.forms[0].mo_mi_b.options[mo_mi_idx].value;
	if(mo_mi_cnt == 0){
		mo_mi_p = '';
	} else {
		mo_mi_p = mo_mi_cnt * 1522;
	}

	mo_ir_idx = document.forms[0].mo_ir_b.selectedIndex;
	mo_ir_cnt = document.forms[0].mo_ir_b.options[mo_ir_idx].value;
	if(mo_ir_cnt == 0){
		mo_ir_p = '';
	} else {
		mo_ir_p = mo_ir_cnt * 1522;
	}

/* ƒŠƒXƒg‚Ì’l‚ð‘Ü”‚É•ÏŠ· • ƒvƒ‰ƒCƒX•ÏŠ· I—¹ */
/*¤•i’PˆÊ‚Ì w“ü‘Ü”‚Ì‡Œv ŠJŽn */

	mo_to_b = 0;
	mo_to_b = Number(mo_mi_cnt) + Number(mo_ir_cnt);
	if(mo_to_b == 0){
		mo_to_b = '';
	}

/* ¤•i’PˆÊ‚Ìw“ü‘Ü”‚Ì‡Œv I—¹ */
/* ¤•i’PˆÊ‚Ìw“ü‹àŠz‚Ì‡Œv ŠJŽn */

	mo_to_p = 0;
	mo_to_p = Number(mo_mi_p) + Number(mo_ir_p);
	if(mo_to_p == 0){
		mo_to_p = '';
	}

/* ¤•i’PˆÊ‚Ìw“ü‹àŠz‚Ì‡Œv I—¹ */
/* w“ü‹àŠz‡Œv ŠJŽn */

	sub_total = Number(mo_to_p);

/* w“ü‹àŠz‡Œv I—¹ */
/* Š„ˆø—¦‚ÌŽZo ŠJŽn */

	discount_type_check = Number(mo_mi_cnt);

	if(discount_type_check > 0){
		if(Number(sub_total) < 7000){
			discount_per = 10316;
		} else if(Number(sub_total) < 30000){
			discount_per = 15178;
		} else if(Number(sub_total) < 60000){
			discount_per = 20000;
		} else {
			discount_per = 25493;
		}
	} else {
		if(Number(sub_total) < 7000){
			discount_per = 0;
		} else if(Number(sub_total) < 30000){
			discount_per = 5521;
		} else if(Number(sub_total) < 60000){
			discount_per = 10316;
		} else {
			discount_per = 15178;
		}
	}
/* Š„ˆø—¦‚ÌŽZo I—¹ */
/* Š„ˆøŠz‚ÌŽZo ŠJŽn */

	if(discount_per >= 0){
		discount = Math.floor((sub_total * discount_per) / 100000);
	}


/* Š„ˆøŠz‚ÌŽZo I—¹ */
/* ‘——¿‚ÌŽZo ŠJŽn */

	postage = 0;
	
	if(mo_ir_cnt == 1 && mo_mi_cnt == 0 ){
		postage = 100;
	} else {
		postage = 0;
	}

/* ‘——¿‚ÌŽZo I—¹ */
/* ‘ãˆø‚«ˆ— ŠJŽn */


/* ‘ãˆø‚«ˆ— I—¹ */
/* ‘‡Œv‚ÌŽZo ŠJŽn */

	total = Number(sub_total) - Number(discount) + Number(postage);

/* ‘‡Œv‚ÌŽZo I—¹ */
/* Š„ˆø—¦‚Ì•\Ž¦ ŠJŽn */

/* Š„ˆø—¦‚Ì•\Ž¦ I—¹ */
/* ” ƒTƒCƒY‚ÌŽZo ŠJŽn */


/* ” ƒTƒCƒY‚ÌŽZo I—¹ */
/* Œ…‹æØ‚è•ÏŠ· ŠJŽn */

	sub_total = String( sub_total );
	while( sub_total != ( sub_total = sub_total.replace( /^(\d+)(\d{3})/ , "$1,$2" ) ) ){}

	discount = String( discount );
	while( discount != ( discount = discount.replace( /^(\d+)(\d{3})/ , "$1,$2" ) ) ){}

	total = String( total );
	while( total != ( total = total.replace( /^(\d+)(\d{3})/ , "$1,$2" ) ) ){}

/* Œ…‹æØ‚è•ÏŠ· I—¹ */
/* ’•¶“à—e•ÏŠ· ŠJŽn */

	product = "";

	if(mo_mi_cnt != 0){
		product += "çÐ|_–ˆŒŽ•Ö_" + mo_mi_cnt + "‘Ü\n";
	}
	
	if(mo_ir_cnt != 0){
		product += "çÐ|_‚¢‚éŽž•Ö_" + mo_ir_cnt + "‘Ü\n";
	}
	
	product += "¬ŒvF" + sub_total + "‰~\nŠ„ˆøŠzF" + discount + "‰~\n‘——¿F" +postage +"‰~\n‚²¿‹‹àŠzF" + total + "‰~";

/* ’•¶“à—e•ÏŠ· I—¹ */

/* field’lì¬ ŠJŽn */

/* field’lì¬ I—¹ */

/* ƒtƒH[ƒ€‚Ö’l‚ð•Ò“ü ŠJŽn */

	document.forms[0].sub_total.value = sub_total;
	document.forms[0].discount.value = discount;
	document.forms[0].postage.value = postage;
	document.forms[0].total.value = total;

	document.forms[0].f000001963.value = product;

/* ƒtƒH[ƒ€‚Ö’l‚ð•Ò“ü I—¹ */

}
