//* adopt from external with custom rewrite major part of the file */ // Henry, Dec 2004 function QueryString() { this.getParameter = _getArg; this.setParameter = _setArg; this.addParameter = _setArg; this.removeParameter = _removeArg; this.empty = _reset; this.init = _init; this.parseString = _parse; this.inject = _inject; this.toString = _toString; //Allows the object to be printed //no need to write toString() this.params = new Array(); // Initiation var separator = "&"; var equalsign = "="; function _parse(strqs) { var str = strqs.replace(/%20/g, " "); var index = str.indexOf("?"); var sInfo; var infoArray = new Array(); var tmp; if (index != -1) { sInfo = str.substring(index+1,str.length); } else { sInfo = str; } infoArray = sInfo.split(separator); for (var i=0; i