function edown()
--C
				--A
	if hand0==0 then	--J[hID
hrank0 = false			--N
	elseif hand1==0 then	--J[hID
hrank1 = false			--N
	elseif hand2==0 then	--J[hID
hrank2 = false			--N
	elseif hand3==0 then	--J[hID
hrank3 = false			--N
	elseif hand4==0 then	--J[hID
hrank4 = false			--N
	end
				--܂łIDAN̂ꂼ̒l͓ꂷ
--쌂
	if hand0==1 then
hrank0 = false
	elseif hand1==1 then
hrank1 = false
	elseif hand2==1 then
hrank2 = false
	elseif hand3==1 then
hrank3 = false
	elseif hand4==1 then
hrank4 = false
	end
--K[h
	if hand0==2 then
hrank0 = false
	elseif hand1==2 then
hrank1 = false
	elseif hand2==2 then
hrank2 = false
	elseif hand3==2 then
hrank3 = false
	elseif hand4==2 then
hrank4 = false
	end
--Xy
	if hand0==3 then
hrank0 = 4
	elseif hand1==3 then
hrank1 = 4
	elseif hand2==3 then
hrank2 = 4
	elseif hand3==3 then
hrank3 = 4
	elseif hand4==3 then
hrank4 = 4
	end
--̗͉
	if hand0==4 then
hrank0 = 5
	elseif hand1==4 then
hrank1 = 5
	elseif hand2==4 then
hrank2 = 5
	elseif hand3==4 then
hrank3 = 5
	elseif hand4==4 then
hrank4 = 5
	end
--͉
	if hand0==5 then
hrank0 = false
	elseif hand1==5 then
hrank1 = false
	elseif hand2==5 then
hrank2 = false
	elseif hand3==5 then
hrank3 = false
	elseif hand4==5 then
hrank4 = false
	end
--XLJS
--XLJ͐錾ɂďꏏׁ̈AꏏɂĂȂ
--nCubh^̏ꍇ͗vʓr
	if hand0>=100 and hand0<=111 then
hrank0 = 0
	elseif hand1>=100 and hand1<=111 then
hrank1 = 0
	elseif hand2>=100 and hand2<=111 then
hrank2 = 0
	elseif hand3>=100 and hand3<=111 then
hrank3 = 0
	elseif hand4>=100 and hand4<=111 then
hrank4 = 0
	end
--uElh[v
	if hand0==200 then
hrank0 = 1
	elseif hand1==200 then
hrank1 = 1
	elseif hand2==200 then
hrank2 = 1
	elseif hand3==200 then
hrank3 = 1
	elseif hand4==200 then
hrank4 = 1
	end
--uvCx[gXNEFAv
	if hand0==201 then
hrank0 = 2
	elseif hand1==201 then
hrank1 = 2
	elseif hand2==201 then
hrank2 = 2
	elseif hand3==201 then
hrank3 = 2
	elseif hand4==201 then
hrank4 = 2
	end
--uCXNCubh\Ev
	if hand0==202 then
hrank0 = false
	elseif hand1==202 then
hrank1 = false
	elseif hand2==202 then
hrank2 = false
	elseif hand3==202 then
hrank3 = false
	elseif hand4==202 then
hrank4 = false
	end
--u閶̌eElSv
	if hand0==203 then
hrank0 = 3
	elseif hand1==203 then
hrank1 = 3
	elseif hand2==203 then
hrank2 = 3
	elseif hand3==203 then
hrank3 = 3
	elseif hand4==203 then
hrank4 = 3
	end
--u̐Ev
	if hand0==204 then
hrank0 = 3
	elseif hand1==204 then
hrank1 = 3
	elseif hand2==204 then
hrank2 = 3
	elseif hand3==204 then
hrank3 = 3
	elseif hand4==204 then
hrank4 = 3
	end
--u\EXJv`Av
	if hand0==205 then
hrank0 = false
	elseif hand1==205 then
hrank1 = false
	elseif hand2==205 then
hrank2 = false
	elseif hand3==205 then
hrank3 = false
	elseif hand4==205 then
hrank4 = false
	end
--╄uVo[oEhv
	if hand0==206 then
hrank0 = 2
	elseif hand1==206 then
hrank1 = 2
	elseif hand2==206 then
hrank2 = 2
	elseif hand3==206 then
hrank3 = 2
	elseif hand4==206 then
hrank4 = 2
	end
--puG^[i~[Nv
	if hand0==207 then
hrank0 = false
	elseif hand1==207 then
hrank1 = false
	elseif hand2==207 then
hrank2 = false
	elseif hand3==207 then
hrank3 = false
	elseif hand4==207 then
hrank4 = false
	end
--u~lXRVFv
	if hand0==208 then
hrank0 = false
	elseif hand1==208 then
hrank1 = false
	elseif hand2==208 then
hrank2 = false
	elseif hand3==208 then
hrank3 = false
	elseif hand4==208 then
hrank4 = false
	end
--uXgbvEHb`v
	if hand0==209 then
hrank0 = 4
	elseif hand1==209 then
hrank1 = 4
	elseif hand2==209 then
hrank2 = 4
	elseif hand3==209 then
hrank3 = 4
	elseif hand4==209 then
hrank4 = 4
	end
end
function middlec()
--p
--C
				--A
	if hand0==0 then	--J[hID
hrank0 = false			--N
	elseif hand1==0 then	--J[hID
hrank1 = false			--N
	elseif hand2==0 then	--J[hID
hrank2 = false			--N
	elseif hand3==0 then	--J[hID
hrank3 = false			--N
	elseif hand4==0 then	--J[hID
hrank4 = false			--N
	end
				--܂łIDAN̂ꂼ̒l͓ꂷ
--쌂
	if hand0==1 then
hrank0 = 4
	elseif hand1==1 then
hrank1 = 4
	elseif hand2==1 then
hrank2 = 4
	elseif hand3==1 then
hrank3 = 4
	elseif hand4==1 then
hrank4 = 4
	end
--K[h
	if hand0==2 then
hrank0 = 4
	elseif hand1==2 then
hrank1 = 4
	elseif hand2==2 then
hrank2 = 4
	elseif hand3==2 then
hrank3 = 4
	elseif hand4==2 then
hrank4 = 4
	end
--Xy
	if hand0==3 then
hrank0 = false
	elseif hand1==3 then
hrank1 = false
	elseif hand2==3 then
hrank2 = false
	elseif hand3==3 then
hrank3 = false
	elseif hand4==3 then
hrank4 = false
	end
--̗͉
	if hand0==4 then
hrank0 = false
	elseif hand1==4 then
hrank1 = false
	elseif hand2==4 then
hrank2 = false
	elseif hand3==4 then
hrank3 = false
	elseif hand4==4 then
hrank4 = false
	end
--͉
	if hand0==5 then
hrank0 = false
	elseif hand1==5 then
hrank1 = false
	elseif hand2==5 then
hrank2 = false
	elseif hand3==5 then
hrank3 = false
	elseif hand4==5 then
hrank4 = false
	end
--XLJS
--XLJ͐錾ɂďꏏׁ̈AꏏɂĂȂ
--nCubh^̏ꍇ͗vʓr
	if hand0>=100 and hand0<=111 then
hrank0 = false
	elseif hand1>=100 and hand1<=111 then
hrank1 = false
	elseif hand2>=100 and hand2<=111 then
hrank2 = false
	elseif hand3>=100 and hand3<=111 then
hrank3 = false
	elseif hand4>=100 and hand4<=111 then
hrank4 = false
	end
--uElh[v
	if hand0==200 then
hrank0 = 1
	elseif hand1==200 then
hrank1 = 1
	elseif hand2==200 then
hrank2 = 1
	elseif hand3==200 then
hrank3 = 1
	elseif hand4==200 then
hrank4 = 1
	end
--uvCx[gXNEFAv
	if hand0==201 then
hrank0 = 1
	elseif hand1==201 then
hrank1 = 1
	elseif hand2==201 then
hrank2 = 1
	elseif hand3==201 then
hrank3 = 1
	elseif hand4==201 then
hrank4 = 1
	end
--uCXNCubh\Ev
	if hand0==202 then
hrank0 = 4
	elseif hand1==202 then
hrank1 = 4
	elseif hand2==202 then
hrank2 = 4
	elseif hand3==202 then
hrank3 = 4
	elseif hand4==202 then
hrank4 = 4
	end
--u閶̌eElSv
	if hand0==203 then
hrank0 = 3
	elseif hand1==203 then
hrank1 = 3
	elseif hand2==203 then
hrank2 = 3
	elseif hand3==203 then
hrank3 = 3
	elseif hand4==203 then
hrank4 = 3
	end
--u̐Ev
	if hand0==204 then
hrank0 = false
	elseif hand1==204 then
hrank1 = false
	elseif hand2==204 then
hrank2 = false
	elseif hand3==204 then
hrank3 = false
	elseif hand4==204 then
hrank4 = false
	end
--u\EXJv`Av
	if hand0==205 then
hrank0 = 0
	elseif hand1==205 then
hrank1 = 0
	elseif hand2==205 then
hrank2 = 0
	elseif hand3==205 then
hrank3 = 0
	elseif hand4==205 then
hrank4 = 0
	end
--╄uVo[oEhv
	if hand0==206 then
hrank0 = 3
	elseif hand1==206 then
hrank1 = 3
	elseif hand2==206 then
hrank2 = 3
	elseif hand3==206 then
hrank3 = 3
	elseif hand4==206 then
hrank4 = 3
	end
--puG^[i~[Nv
	if hand0==207 then
hrank0 = false
	elseif hand1==207 then
hrank1 = false
	elseif hand2==207 then
hrank2 = false
	elseif hand3==207 then
hrank3 = false
	elseif hand4==207 then
hrank4 = false
	end
--u~lXRVFv
	if hand0==208 then
hrank0 = 2
	elseif hand1==208 then
hrank1 = 2
	elseif hand2==208 then
hrank2 = 2
	elseif hand3==208 then
hrank3 = 2
	elseif hand4==208 then
hrank4 = 2
	end
--uXgbvEHb`v
	if hand0==209 then
hrank0 = false
	elseif hand1==209 then
hrank1 = false
	elseif hand2==209 then
hrank2 = false
	elseif hand3==209 then
hrank3 = false
	elseif hand4==209 then
hrank4 = false
	end
end
function farc()
--C
				--A
	if hand0==0 then	--J[hID
hrank0 = false			--N
	elseif hand1==0 then	--J[hID
hrank1 = false			--N
	elseif hand2==0 then	--J[hID
hrank2 = false			--N
	elseif hand3==0 then	--J[hID
hrank3 = false			--N
	elseif hand4==0 then	--J[hID
hrank4 = false			--N
	end
				--܂łIDAN̂ꂼ̒l͓ꂷ
--쌂
	if hand0==1 then
hrank0 = false
	elseif hand1==1 then
hrank1 = false
	elseif hand2==1 then
hrank2 = false
	elseif hand3==1 then
hrank3 = false
	elseif hand4==1 then
hrank4 = false
	end
--K[h
	if hand0==2 then
hrank0 = false
	elseif hand1==2 then
hrank1 = false
	elseif hand2==2 then
hrank2 = false
	elseif hand3==2 then
hrank3 = false
	elseif hand4==2 then
hrank4 = false
	end
--Xy
	if hand0==3 then
hrank0 = 4
	elseif hand1==3 then
hrank1 = 4
	elseif hand2==3 then
hrank2 = 4
	elseif hand3==3 then
hrank3 = 4
	elseif hand4==3 then
hrank4 = 4
	end
--̗͉
	if hand0==4 then
hrank0 = 5
	elseif hand1==4 then
hrank1 = 5
	elseif hand2==4 then
hrank2 = 5
	elseif hand3==4 then
hrank3 = 5
	elseif hand4==4 then
hrank4 = 5
	end
--͉
	if hand0==5 then
hrank0 = false
	elseif hand1==5 then
hrank1 = false
	elseif hand2==5 then
hrank2 = false
	elseif hand3==5 then
hrank3 = false
	elseif hand4==5 then
hrank4 = false
	end
--XLJS
--XLJ͐錾ɂďꏏׁ̈AꏏɂĂȂ
--nCubh^̏ꍇ͗vʓr
	if hand0>=100 and hand0<=111 then
hrank0 = 0
	elseif hand1>=100 and hand1<=111 then
hrank1 = 0
	elseif hand2>=100 and hand2<=111 then
hrank2 = 0
	elseif hand3>=100 and hand3<=111 then
hrank3 = 0
	elseif hand4>=100 and hand4<=111 then
hrank4 = 0
	end
--uElh[v
	if hand0==200 then
hrank0 = 1
	elseif hand1==200 then
hrank1 = 1
	elseif hand2==200 then
hrank2 = 1
	elseif hand3==200 then
hrank3 = 1
	elseif hand4==200 then
hrank4 = 1
	end
--uvCx[gXNEFAv
	if hand0==201 then
hrank0 = 2
	elseif hand1==201 then
hrank1 = 2
	elseif hand2==201 then
hrank2 = 2
	elseif hand3==201 then
hrank3 = 2
	elseif hand4==201 then
hrank4 = 2
	end
--uCXNCubh\Ev
	if hand0==202 then
hrank0 = false
	elseif hand1==202 then
hrank1 = false
	elseif hand2==202 then
hrank2 = false
	elseif hand3==202 then
hrank3 = false
	elseif hand4==202 then
hrank4 = false
	end
--u閶̌eElSv
	if hand0==203 then
hrank0 = 3
	elseif hand1==203 then
hrank1 = 3
	elseif hand2==203 then
hrank2 = 3
	elseif hand3==203 then
hrank3 = 3
	elseif hand4==203 then
hrank4 = 3
	end
--u̐Ev
	if hand0==204 then
hrank0 = 3
	elseif hand1==204 then
hrank1 = 3
	elseif hand2==204 then
hrank2 = 3
	elseif hand3==204 then
hrank3 = 3
	elseif hand4==204 then
hrank4 = 3
	end
--u\EXJv`Av
	if hand0==205 then
hrank0 = 1
	elseif hand1==205 then
hrank1 = 1
	elseif hand2==205 then
hrank2 = 1
	elseif hand3==205 then
hrank3 = 1
	elseif hand4==205 then
hrank4 = 1
	end
--╄uVo[oEhv
	if hand0==206 then
hrank0 = 2
	elseif hand1==206 then
hrank1 = 2
	elseif hand2==206 then
hrank2 = 2
	elseif hand3==206 then
hrank3 = 2
	elseif hand4==206 then
hrank4 = 2
	end
--puG^[i~[Nv
	if hand0==207 then
hrank0 = false
	elseif hand1==207 then
hrank1 = false
	elseif hand2==207 then
hrank2 = false
	elseif hand3==207 then
hrank3 = false
	elseif hand4==207 then
hrank4 = false
	end
--u~lXRVFv
	if hand0==208 then
hrank0 = false
	elseif hand1==208 then
hrank1 = false
	elseif hand2==208 then
hrank2 = false
	elseif hand3==208 then
hrank3 = false
	elseif hand4==208 then
hrank4 = false
	end
--uXgbvEHb`v
	if hand0==209 then
hrank0 = 4
	elseif hand1==209 then
hrank1 = 4
	elseif hand2==209 then
hrank2 = 4
	elseif hand3==209 then
hrank3 = 4
	elseif hand4==209 then
hrank4 = 4
	end
end