this.items = function(key){return this._hash[key];} this.contains = function(key){ return typeof(this._hash[key])!="undefined";} this.clear = function(){for(var k in this._hash){delete this._hash[k];}} } var a = new Hashtable(); a.add("aa"); a.add("bb",2342); a....