function CardSet(cache) {

    this.cache = cache
    this.cards = new Object();
    
    this.add_card = function (name, card) {
    
        this.cards[name] = card;
        
        card.parentNode.removeChild(card);
        this.cache.appendChild(card);
    
    }
    
    this.get_card = function (name) {
        
        /* this.cache.removeChild(this.cards[name]); */
        return this.cards[name];

    }
    
    this.return_card = function (name) {
        
        /* this.cards[name].parentNode.removeChild(this.cards[name]); */
        this.cache.appendChild(this.cards[name]);
    
    }

}