function showBox(box_prefix, selection, total, type)
{
    var e = document.getElementById(box_prefix + selection);
    if (e != null)
    {
        if (e.style.display == 'none')
        {
            for (i = 0; i < total; i++)
            {
                var el = $(box_prefix + i);
                if (el != null && el.style.display != 'none')
                {
                    el.hide();
                }
            }
        }
        if (type == 'appear')
            e.appear();
        else
            e.show();
    }
}

