function Panel_Check(obj,buki,panel){ switch(buki[obj.weapon].kind){ case -10:panel.bm_n=0;break; case 2:case 3:case 4: panel.bm_n=1;break; } }