
    let selend = currdbidxs.length;
    if(document.getElementById("selectamt").value!="")
    {
        let sv = document.getElementById("selectamt").value;
        if(sv.includes("-"))
        {
            let svs = sv.split("-");
            if(svs.length==2 && svs[0]!="" && svs[1]!="")
            {
                selstart = Math.min(svs[0],selend);
                selend = Math.min(svs[1],selend);
            }
        }
        else
        {
            selstart = 0;
            s