﻿/* parseQueryString.js - a function to parse and decode query strings
*
* The author of this program, Safalra (Stephen Morley), irrevocably releases
* all rights to this program, with the intention of it becoming part of the
* public domain. Because this program is released into the public domain, it
* comes with no warranty either expressed or implied, to the extent permitted
* by law.
*
* For more public domain JavaScript code by the same author, visit:
* http://www.safalra.com/web-design/javascript/
*/

function parseQueryString(_1) { var _2 = {}; if (_1 == undefined) { _1 = location.search ? location.search : ""; } if (_1.charAt(0) == "?") { _1 = _1.substring(1); } _1 = _1.replace(/\+/g, " "); var _3 = _1.split(/[&;]/g); for (var i = 0; i < _3.length; i++) { var _5 = _3[i].split("="); var _6 = decodeURIComponent(_5[0]); var _7 = decodeURIComponent(_5[1]); if (!_2[_6]) { _2[_6] = []; } _2[_6].push((_5.length == 1) ? "" : _7); } return _2; }
