range = (document.getElementById('elemrange').value);
        let elemstart = 0;
        let elemend = 999999999;
        let elemcounter = 0;
        if(elemrange!="")
        {
            if(elemrange.includes("-"))
            {
                let svs = elemrange.split("-");
                if(svs.length==2 && svs[0]!="" && svs[1]!="")
                {
                    elemstart = Math.min(svs[0],elemend);
                    elemend = Math.min(svs[1],elemend);
                }
     