function getRequestParameter(a) { var b = document.location.search || document.location.hash; if (a == null) return b; if (b) { b = b.substring(1).split("&"); for (var c = 0; c < b.length; c++) if (b[c].substring(0, b[c].indexOf("=&q…
function parseQueryString(url) { var pos; var obj = {}; if ((pos = url.indexOf("?")) != -1) { var param = url.substring(pos+1, url.length - 1) var paramArr = param.split('&'); var keyValue = []; for (var i = 0, l = paramArr.length; i < l;…