function ResponseContext() {
	this.hashtable = new Array();
	this.debug = false;
	return this;
}

ResponseContext.prototype = {
	parseResponse: function(input) {
		if (this.debug) alert('ResponseContext.parseResponse(): Parse string "' + input + '"');
		var pairs = input.split('|||');
		for (var i = 0; i < pairs.length; ++ i) {
			this.parsePairs(pairs[i]);
		}
	},
	get: function(key) {
		if (key == null) return null;
		return this.hashtable[key];
	},
	clean: function() {
		this.hashtable = null;
		this.hashtable = new Array();
	},
	parsePairs: function(pair) {
		var indxKey = pair.indexOf('=');
		if (indxKey > 0) {
			var key = pair.substring(0, indxKey), value = pair.substring(indxKey+1);
			if (this.debug) {
				alert('ResponseContext.parsePairs(): put key="' + key + '", value="' + value + '"');
			}
			this.hashtable[key] = value;
		} else {
			if (this.debug) alert('NameValue pair "'+pair+'" is unparseable');
		}
	}
};
