   lastleftitem.style.backgroundColor = null;
    }
    lastleftitem = titleDiv;
    titleDiv.style.backgroundColor = '#d3d3d3';
}
function countsel()
{
    let count = 0;
    for (k in selecteddb) if (selecteddb[k]) ++count;
    document.getElementById("selcounter").innerText = `${count} Selected`;
}
function selitm(idx)
{
    let box = document.getElementById(`itm${idx}`);
    if(box)
    {
        selecteddb[idx] = box.checked;
    }
}
function selrange(isSel)
{
    let selstart = 0;