 + "=([^&#]*)";
  var regex = new RegExp(regexS);
  var results = regex.exec(window.location.search);
  if (results == null)
    return "";
  else
    return decodeURIComponent(results[1].replace(/\+/g, " "));
}

/**
 * @returns An array of keys in |obj| sorted by value.
 */
function sortedKeys(obj) {
  var keys = [];
  for (var key in obj) {
    keys.push(key);
  }
  keys.sort();
  return keys;
}

/**
 * Removes by value all params from array.
 */
Array.prototype.remove = function() {
  var what, a = argum