+function getParameterFromURL(name) {
+ var result = null;
+ var tmp = [];
+ var params = window.location.search.substr(1).split("&");
+ for (var i = 0; i < params.length; i++) {
+ tmp = params[i].split("=");
+ if (tmp[0] === name) result = decodeURIComponent(tmp[1]);
+ }
+ return result;
+}
+
var today = new Date();
var fromDate = new Date(today.getFullYear(), today.getMonth(), today.getDate());
var toDate = new Date(today.getFullYear(), today.getMonth(), today.getDate() + 1);