	box1 = true;
	box2 = true;
	box3 = true;
	box4 = true;
	box5 = true;
	box6 = true;

	box7 = true;
	box8 = true;
	box9 = true;
	box10 = true;
	box11 = true;
	box12 = true;

	box13 = true;
	box14 = true;
	box15 = true;
	box16 = true;
	box17 = true;
	box18 = true;

	num = Math.floor(Math.random() * 10);

	IMG = new Array();

	IMG[0] = new Image(); IMG[0].src = "/monimg/list/num_0.gif";
	IMG[1] = new Image(); IMG[1].src = "/monimg/list/num_1.gif";
	IMG[2] = new Image(); IMG[2].src = "/monimg/list/num_2.gif";
	IMG[3] = new Image(); IMG[3].src = "/monimg/list/num_3.gif";
	IMG[4] = new Image(); IMG[4].src = "/monimg/list/num_4.gif";
	IMG[5] = new Image(); IMG[5].src = "/monimg/list/num_5.gif";
	IMG[6] = new Image(); IMG[6].src = "/monimg/list/num_6.gif";
	IMG[7] = new Image(); IMG[7].src = "/monimg/list/num_7.gif";
	IMG[8] = new Image(); IMG[8].src = "/monimg/list/num_8.gif";
	IMG[9] = new Image(); IMG[9].src = "/monimg/list/num_9.gif";

	//¸ØÃã
	function roll_end(variable){
		var FJ = document.form;
		if(variable == 1) {
			box1 = false;
			if (document.images["no11"]) document.images["no11"].src = "/monimg/list/num_"+FJ.num11.value+".gif";	}
		if(variable == 2) {
			box2 = false;
			if (document.images["no12"]) document.images["no12"].src = "/monimg/list/num_"+FJ.num12.value+".gif";	}
		if(variable == 3) {
			box3 = false;
			if (document.images["no13"]) document.images["no13"].src = "/monimg/list/num_"+FJ.num13.value+".gif";	}
		if(variable == 4) {
			box4 = false;
			if (document.images["no14"]) document.images["no14"].src = "/monimg/list/num_"+FJ.num14.value+".gif";	}
		if(variable == 5) {
			box5 = false;
			if (document.images["no15"]) document.images["no15"].src = "/monimg/list/num_"+FJ.num15.value+".gif";	}
		if(variable == 6) {
			box6 = false;
			if (document.images["no16"]) document.images["no16"].src = "/monimg/list/num_"+FJ.num16.value+".gif";	}

		if(variable == 7) {
			box7 = false;
			if (document.images["no21"]) document.images["no21"].src = "/monimg/list/num_"+FJ.num21.value+".gif";	}
		if(variable == 8) {
			box8 = false;
			if (document.images["no22"]) document.images["no22"].src = "/monimg/list/num_"+FJ.num22.value+".gif";	}
		if(variable == 9) {
			box9 = false;
			if (document.images["no23"]) document.images["no23"].src = "/monimg/list/num_"+FJ.num23.value+".gif";	}
		if(variable == 10) {
			box10 = false;
			if (document.images["no24"]) document.images["no24"].src = "/monimg/list/num_"+FJ.num24.value+".gif";	}
		if(variable == 11) {
			box11 = false;
			if (document.images["no25"]) document.images["no25"].src = "/monimg/list/num_"+FJ.num25.value+".gif";	}
		if(variable == 12) {
			box12 = false;
			if (document.images["no26"]) document.images["no26"].src = "/monimg/list/num_"+FJ.num26.value+".gif";	}

		if(variable == 13) {
			box13 = false;
			if (document.images["no31"]) document.images["no31"].src = "/monimg/list/num_"+FJ.num31.value+".gif";	}
		if(variable == 14) {
			box14 = false;
			if (document.images["no32"]) document.images["no32"].src = "/monimg/list/num_"+FJ.num32.value+".gif";	}
		if(variable == 15) {
			box15 = false;
			if (document.images["no33"]) document.images["no33"].src = "/monimg/list/num_"+FJ.num33.value+".gif";	}
		if(variable == 16) {
			box16 = false;
			if (document.images["no34"]) document.images["no34"].src = "/monimg/list/num_"+FJ.num34.value+".gif";	}
		if(variable == 17) {
			box17 = false;
			if (document.images["no35"]) document.images["no35"].src = "/monimg/list/num_"+FJ.num35.value+".gif";	}
		if(variable == 18) {
			box18 = false;
			if (document.images["no36"]) document.images["no36"].src = "/monimg/list/num_"+FJ.num36.value+".gif";	}
		
		
		if(
			(box1 == false) && (box2 == false) && (box3 == false) && (box4 == false) && (box5 == false)
			&& (box6 == false) && (box7 == false) && (box8 == false) && (box9 == false) && (box10 == false)
			&& (box11 == false) && (box12 == false) && (box13 == false) && (box14 == false) && (box15 == false)
			&& (box16 == false) && (box17 == false) && (box18 == false)
		){
			clearTimeout(tid)
		}
	}

	function runnumber(){
		if(num == 10) num = 0
		if (document.images["no11"]) if (box1) document.images["no11"].src = IMG[num % 10].src;
		if (document.images["no12"]) if (box2) document.images["no12"].src = IMG[(num + 3) % 10].src;
		if (document.images["no13"]) if (box3) document.images["no13"].src = IMG[(num + 5) % 10].src;
		if (document.images["no14"]) if (box4) document.images["no14"].src = IMG[(num + 7) % 10].src;
		if (document.images["no15"]) if (box5) document.images["no15"].src = IMG[(num + 9) % 10].src;
		if (document.images["no16"]) if (box6) document.images["no16"].src = IMG[(num + 11) % 10].src;

		if (document.images["no21"]) if (box7) document.images["no21"].src = IMG[num % 10].src;
		if (document.images["no22"]) if (box8) document.images["no22"].src = IMG[(num + 3) % 10].src;
		if (document.images["no23"]) if (box9) document.images["no23"].src = IMG[(num + 5) % 10].src;
		if (document.images["no24"]) if (box10) document.images["no24"].src = IMG[(num + 7) % 10].src;
		if (document.images["no25"]) if (box11) document.images["no25"].src = IMG[(num + 9) % 10].src;
		if (document.images["no26"]) if (box12) document.images["no26"].src = IMG[(num + 11) % 10].src;

		if (document.images["no31"]) if (box13) document.images["no31"].src = IMG[num % 10].src;
		if (document.images["no32"]) if (box14) document.images["no32"].src = IMG[(num + 3) % 10].src;
		if (document.images["no33"]) if (box15) document.images["no33"].src = IMG[(num + 5) % 10].src;
		if (document.images["no34"]) if (box16) document.images["no34"].src = IMG[(num + 7) % 10].src;
		if (document.images["no35"]) if (box17) document.images["no35"].src = IMG[(num + 9) % 10].src;
		if (document.images["no36"]) if (box18) document.images["no36"].src = IMG[(num + 11) % 10].src;
		num += 1
	}

	function stopnumber() {
		tid = setInterval("runnumber()",50)
		if (document.images["no11"]) tid = setTimeout("roll_end(1)",400)
		if (document.images["no12"]) tid = setTimeout("roll_end(2)",500)
		if (document.images["no13"]) tid = setTimeout("roll_end(3)",590)
		if (document.images["no14"]) tid = setTimeout("roll_end(4)",670)
		if (document.images["no15"]) tid = setTimeout("roll_end(5)",740)
		if (document.images["no16"]) tid = setTimeout("roll_end(6)",800)


		if (document.images["no21"]) tid = setTimeout("roll_end(7)",900)
		if (document.images["no22"]) tid = setTimeout("roll_end(8)",1000)
		if (document.images["no23"]) tid = setTimeout("roll_end(9)",1090)
		if (document.images["no24"]) tid = setTimeout("roll_end(10)",1170)
		if (document.images["no25"]) tid = setTimeout("roll_end(11)",1240)
		if (document.images["no26"]) tid = setTimeout("roll_end(12)",1300)

		if (document.images["no31"]) tid = setTimeout("roll_end(13)",1400)
		if (document.images["no32"]) tid = setTimeout("roll_end(14)",1500)
		if (document.images["no33"]) tid = setTimeout("roll_end(15)",1590)
		if (document.images["no34"]) tid = setTimeout("roll_end(16)",1670)
		if (document.images["no35"]) tid = setTimeout("roll_end(17)",1740)
		if (document.images["no36"]) tid = setTimeout("roll_end(18)",1800)
	}
