// HASHTABLE JS CLASS
//-------------------
function Hashtable(){
//-------------------
	this.containsKey = htGotKey;
  this.get = htGet;
  this.put = htPut;
  this.values = htVals;
  this.hashtable = new Array();
}
//-------------------
function htGotKey(key){
//-------------------
	var e = false;
	for (var i in this.hashtable) {
		if (i == key && this.hashtable[i] != null) {
        e = true;
        break;
    }
  }
  return e;
}
//-------------------
function htGet(key){
//-------------------
	return this.hashtable[key];
}
//-------------------
function htPut(key, value){
//-------------------                
	if(key!=null)
     if(value!=null)
        this.hashtable[key] = value;                 
}
//-------------------
function htVals(){
//-------------------
	var v = new Array();
  for (var i in this.hashtable) {
     	 if (this.hashtable[i] != null) 
           v.push(this.hashtable[i]);
  }
  return v;
}