function queryParam(name) {
var pattern = new RegExp('[?&]' + name + '=([^&#]*)'),
match = pattern.exec(window.location.search);
return match ? decodeURIComponent(match[1].replace(/+/g, ' ')) : null;
}
function queryParam(name) {
var pattern = new RegExp('[?&]' + name + '=([^&#]*)'),
match = pattern.exec(window.location.search);
return match ? decodeURIComponent(match[1].replace(/+/g, ' ')) : null;
}