
function LabelList() {
    this.DataSource = new Object();
    
    this.add = addMe;
    
    function addMe(oLabel1, tag) {
        try {
            if (string(this.DataSource[tag]) == 'undefined') {
                this.DataSource[tag] = oLabel1;
            }
            else {
                alert('Unexpected error. Item exists');
            }
        }
        catch(err) {
            this.DataSource[tag] = oLabel1;
        }
    }
    
    this.clear = clearMe;
    function clearMe() {
        this.DataSource = new Object();
    }
    
    this.get = getMe;
    function getMe(tag) {
        var returnValue = null;
    
        if (String(this.DataSource[tag]) != 'undefined') {
            returnValue = this.DataSource[tag];
        }        
        
        return returnValue;
    }
}





/*var oLabelList = new LabelList();


var oLabel1 = new Label();
oLabel1.Title = '';
oLabel1.Subtitle = '';

oLabelList.add(oLabel1, 'tag');*/