function Label(element)
{
    if (element.addEventHandler == null)
        element = Control(element);
        
    element.getValue = Label.prototype.getValue;
    element.setValue = Label.prototype.setValue;
    
    return element;
}

// Gets the value of the label.
Label.prototype.getValue = function()
{
    return this.firstChild.nodeValue;
};

// Sets the value of the label.
Label.prototype.setValue = function(value)
{
    this.setContent(value);
    this.triggerEvent("change");
};

