function params(qp){ try { r = unescape(location.search.match(new RegExp(qp + "=+([^&]*)"))[1]); } catch(e) { r = ''; } return r; }
?name=Joe&age=30