tion prunesel()
{
    const contentsDiv = document.getElementById('contents');
    tempfileobj = [];
    for(let i=0;i<currdbidxs.length;++i)
    {
        let ci = currdbidxs[i];
        let box = document.getElementById(`itm${ci}`);
        if(box && box.checked)
        {
            tempfileobj.push(db[ci]);
        }
    }

    if(tempfileobj.length==0)
    {
        contentsDiv.innerText = "Error: You must select at least 1 item to keep!";
        contentsDiv.scrollTop = 0;
        r