    Array.prototype.contains = function(needle) {
        for ( var c = 0; c < this.length; c++ ) {
            if ( this[c] == needle ) return true;
        }//for
        return false;
    }//contains

    Array.prototype.remove = function(value) {
        var array = [];
        for ( var c = 0; c < this.length; c++ ) if ( this[c] != value ) array[array.length] = this[c];
        this.length = 0;
        for ( var c = 0; c < array.length; c++ ) this[this.length] = array[c];
    }//remove

