if (LavelBar.checked) {
showLavelBar();
}

はい解決