    i = window.location.search.indexOf("="); 

    ss = window.location.search.substr(i)+"&"; 
    k = ss.indexOf("="); 
    j = ss.indexOf("&"); 

    // the value between = and & 
    v = ss.substr(k+1,j-k-1); 

    // replace + with spaces 
    vv = ""; 
    for(c=0;c<v.length;c++) 
      if(v.charAt(c)=='+') vv += " "; 
      else vv += v.charAt(c); 

    // replace % encoding with characters 
    group = unescape(vv); 
