
function SimpleHash() {
	this.keys = new Array();
	this.values = new Array();

	this.has_key = function(key) {
		for(var i = 0; i < this.keys.length; i++) {
			if(this.keys[i] == key)
				return i;
		}
	
		return -1;
	}

	this.set = function(key, value) {
		var index = this.has_key(key);

		if(index == -1) {
			this.keys.push(key);
			this.values.push(value);
		} else
			this.values[index] = value;

		return this;
	}
}

