Pazpar2 from library home page

I can pass the query string to the page; parse the url query string and give it to javascript init call

 function processUser()
  {
    var parameters = location.search.substring(1).split("&");
    var temp = parameters[0].split("=");
    l = unescape(temp[1]);
    temp = parameters[1].split("=");
    p = unescape(temp[1]);