shun-iwasawa 82a8f5
function show(type)
shun-iwasawa 82a8f5
{
shun-iwasawa 82a8f5
    count = 0;
shun-iwasawa 82a8f5
    for (var key in methods) {
shun-iwasawa 82a8f5
        var row = document.getElementById(key);
shun-iwasawa 82a8f5
        if ((methods[key] &  type) != 0) {
shun-iwasawa 82a8f5
            row.style.display = '';
shun-iwasawa 82a8f5
            row.className = (count++ % 2) ? rowColor : altColor;
shun-iwasawa 82a8f5
        }
shun-iwasawa 82a8f5
        else
shun-iwasawa 82a8f5
            row.style.display = 'none';
shun-iwasawa 82a8f5
    }
shun-iwasawa 82a8f5
    updateTabs(type);
shun-iwasawa 82a8f5
}
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
function updateTabs(type)
shun-iwasawa 82a8f5
{
shun-iwasawa 82a8f5
    for (var value in tabs) {
shun-iwasawa 82a8f5
        var sNode = document.getElementById(tabs[value][0]);
shun-iwasawa 82a8f5
        var spanNode = sNode.firstChild;
shun-iwasawa 82a8f5
        if (value == type) {
shun-iwasawa 82a8f5
            sNode.className = activeTableTab;
shun-iwasawa 82a8f5
            spanNode.innerHTML = tabs[value][1];
shun-iwasawa 82a8f5
        }
shun-iwasawa 82a8f5
        else {
shun-iwasawa 82a8f5
            sNode.className = tableTab;
shun-iwasawa 82a8f5
            spanNode.innerHTML = "" + tabs[value][1] + "";
shun-iwasawa 82a8f5
        }
shun-iwasawa 82a8f5
    }
shun-iwasawa 82a8f5
}