function datechange() { since = document.getElementById("dateselect_from").value; to = document.getElementById("dateselect_to").value; since = since.split("-").join("/") to = to.split("-").join("/") //url = window.location.href //var url = document.createElement("a") //url.href = window.location.href //console.log(url.search) keys = window.location.search.substring(1).split("&") var keydict = {}; for (var i=0;i