function Controls76_WHtmlTableRow76_Builder(name, obj_id)
{
    if (arguments.length > 0)
        this.init(name, obj_id);
}

Controls76_WHtmlTableRow76_Builder.prototype.init = function(name, obj_id)
{
    this.name = name;
    this.obj = document.getElementById(obj_id);

    this.properties = new Array('IsUserVisible');
}

Controls76_WHtmlTableRow76_Builder.prototype.get_prop = function(prop_name)
{
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'IsUserVisible':
                return this.obj.style.display == 'none' ? 'False' : 'True';
        }
    }
    return '';
}

Controls76_WHtmlTableRow76_Builder.prototype.set_prop = function(prop_name, prop_value)
{
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'IsUserVisible':
                this.obj.style.display = prop_value == 'True' ? '' : 'none';
        }
    }
}

function Controls76_WHtmlTableCellResizable76_Builder(name, obj_id)
{
    if (arguments.length > 0)
        this.init(name, obj_id);
}

Controls76_WHtmlTableCellResizable76_Builder.prototype.init = function(name, obj_id)
{
    this.name = name;
    this.obj = document.getElementById(obj_id);

    this.properties = new Array('IsUserVisible', 'Width');
}

Controls76_WHtmlTableCellResizable76_Builder.prototype.get_prop = function(prop_name)
{
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'IsUserVisible':
                return this.obj.style.display == 'none' ? 'False' : 'True';
            case 'Width':
                return this.obj.width;
        }
    }
    return '';
}

Controls76_WHtmlTableCellResizable76_Builder.prototype.set_prop = function(prop_name, prop_value)
{
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'Width':
                this.obj.width = prop_value;break;
            case 'IsUserVisible':
                this.obj.style.display = prop_value == 'True' ? '' : 'none';break;
        }
    }
}

Controls76_WCheckBox76_Builder.prototype = new Controls76_WHtmlTableRow76_Builder();
Controls76_WCheckBox76_Builder.prototype.constructor = Controls76_WCheckBox76_Builder;
Controls76_WCheckBox76_Builder.superclass = Controls76_WHtmlTableRow76_Builder.prototype;

function Controls76_WCheckBox76_Builder(name, obj_id) 
{
    if (arguments.length > 0)
        this.init(name, obj_id)
}

Controls76_WCheckBox76_Builder.prototype.init = function(name, obj_id)
{
    Controls76_WCheckBox76_Builder.superclass.init.call(this, name, obj_id);
    this.properties[this.properties.length] = 'Checked';
    this.properties[this.properties.length] = 'Enabled';
}

Controls76_WCheckBox76_Builder.prototype.get_prop = function(prop_name)
{
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'IsUserVisible':
                return this.obj.parentNode.style.display == 'none' ? 'False' : 'True';
            case 'Checked':
                return this.obj.checked ? 'True' : 'False';
            case 'Enabled':
                return this.obj.disabled ? 'False' : 'True';
        }
    }
    return '';
}

Controls76_WCheckBox76_Builder.prototype.set_prop = function(prop_name, prop_value)
{
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'IsUserVisible':
            {
                this.obj.parentNode.style.display = prop_value == 'True' ? 'block' : 'none';
                break;
            }
            case 'Checked':
            {
                this.obj.checked = prop_value == 'True';
                break;
            }
            case 'Enabled':
            {
                this.obj.disabled = prop_value == 'False';
                
                if (this.obj.parentElement)
                    this.obj.parentElement.disabled = prop_value == 'False';
                break;
            }
        }
    }
}

Controls76_WLabel76_Builder.prototype = new Controls76_WHtmlTableRow76_Builder();
Controls76_WLabel76_Builder.prototype.constructor = Controls76_WLabel76_Builder;
Controls76_WLabel76_Builder.superclass = Controls76_WHtmlTableRow76_Builder.prototype;

function Controls76_WLabel76_Builder(name, obj_id) 
{
    if (arguments.length > 0)
        this.init.call(this, name, obj_id);
}

Controls76_WLabel76_Builder.prototype.init = function(name, obj_id)
{
    Controls76_WLabel76_Builder.superclass.init.call(this, name, obj_id);
    this.properties[this.properties.length] = 'Text';
}

Controls76_WLabel76_Builder.prototype.get_prop = function(prop_name)
{
    var res = Controls76_WLabel76_Builder.superclass.get_prop.call(this, prop_name);
    if (res == '' && this.obj != null)
    {
        switch(prop_name)
        {
            case 'Text':
                return this.obj.innerHTML;//encodeXML();
        }
    }
    return '';
}

Controls76_WLabel76_Builder.prototype.set_prop = function(prop_name, prop_value)
{
    Controls76_WLabel76_Builder.superclass.set_prop.call(this, prop_name, prop_value);
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'Text':
                this.obj.innerHTML = prop_value;//decodeXML2();
        }
    }
}

Controls76_WTextBox76_Builder.prototype = new Controls76_WHtmlTableRow76_Builder();
Controls76_WTextBox76_Builder.prototype.constructor = Controls76_WTextBox76_Builder;
Controls76_WTextBox76_Builder.superclass = Controls76_WHtmlTableRow76_Builder.prototype;

function Controls76_WTextBox76_Builder(name, obj_id) 
{
    if (arguments.length > 0)
        this.init.call(this, name, obj_id);
}

Controls76_WTextBox76_Builder.prototype.init = function(name, obj_id)
{
    Controls76_WTextBox76_Builder.superclass.init.call(this, name, obj_id);
    this.properties[this.properties.length] = 'Text';
    this.properties[this.properties.length] = 'Enabled';
}

Controls76_WTextBox76_Builder.prototype.get_prop = function(prop_name)
{
    var res = Controls76_WTextBox76_Builder.superclass.get_prop.call(this, prop_name);
    if (res == '' && this.obj != null)
    {
        switch(prop_name)
        {
            case 'Text':
                return this.obj.value;
            case 'Enabled':
                return this.obj.disabled ? 'False' : 'True';
        }
    }
    return '';
}

Controls76_WTextBox76_Builder.prototype.set_prop = function(prop_name, prop_value)
{
    Controls76_WTextBox76_Builder.superclass.set_prop.call(this, prop_name, prop_value);
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'Text':
            {
                this.obj.value =  decodeXML(prop_value);
            }break;
            case 'Enabled':
            {
                this.obj.disabled = prop_value == 'False';
            }break;
        }
    }
}

function Controls76_WIFrame76_Builder(name, obj_id)
{
    if (arguments.length > 0)
        this.init(name, obj_id);
}

Controls76_WIFrame76_Builder.prototype.init = function(name, obj_id)
{
    this.name = name;
    this.obj = document.getElementById(obj_id);

    this.properties = new Array('Src', 'IsUserVisible', 'Height');
}

Controls76_WIFrame76_Builder.prototype.get_prop = function(prop_name)
{
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'Src':
                return this.obj.src;
            case 'IsUserVisible':
                return this.obj.style.display == 'none' ? 'False' : 'True';
            case 'Height':
                return this.obj.offsetHeight;
        }                
    }
    return '';
}

Controls76_WIFrame76_Builder.prototype.set_prop = function(prop_name, prop_value)
{
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'Src':
            {
                var newPropValue =  decodeXML(prop_value);
                if (this.obj.src != newPropValue)
                    this.obj.src = newPropValue;
            } break;
            case 'IsUserVisible':
            {
                this.obj.style.display = prop_value == 'True' ? '' : 'none';
            }break;
            case 'Height':
            {
                this.obj.height = prop_value;   
                
            }break;                
        }
    }
}

//======

function Controls76_WDiv76_Builder(name, obj_id)
{
    if (arguments.length > 0)
        this.init(name, obj_id);
}

Controls76_WDiv76_Builder.prototype.init = function(name, obj_id)
{
    this.name = name;
    this.obj = document.getElementById(obj_id);

    this.properties = new Array('IsUserVisible', 'Style_Display'/*, 'InnerHtml'*/);
}

Controls76_WDiv76_Builder.prototype.get_prop = function(prop_name)
{
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'IsUserVisible':
                return this.obj.style.display == 'none' ? 'False' : 'True';
            case 'Style_Display':
                return this.obj.style.display;
            case 'InnerHtml':
                return this.obj.innerHTML;
        }       
    }
    return '';
}

Controls76_WDiv76_Builder.prototype.set_prop = function(prop_name, prop_value)
{
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'IsUserVisible':
            {
                this.obj.style.display = prop_value == 'True' ? 'block' : 'none';
            }break;
            case 'Style_Display':
            {
                this.obj.style.display = prop_value;
            }break;
            case 'InnerHtml':
            {
                this.obj.innerHTML = prop_value;
            }break;
        }
    }
}

//=====

function Controls76_WLinkButton76_Builder(name, obj_id)
{
    if (arguments.length > 0)
        this.init(name, obj_id);
}

Controls76_WLinkButton76_Builder.prototype.init = function(name, obj_id)
{
    this.name = name;
    this.obj = document.getElementById(obj_id);

    this.properties = new Array('IsUserVisible');
}

Controls76_WLinkButton76_Builder.prototype.get_prop = function(prop_name)
{
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'IsUserVisible':
                return this.obj.style.display == 'none' ? 'False' : 'True';
        }
    }
    return '';
}

Controls76_WLinkButton76_Builder.prototype.set_prop = function(prop_name, prop_value)
{
    if (this.obj != null)
    {
        switch(prop_name)
        {
            case 'IsUserVisible':
                this.obj.style.display = prop_value == 'True' ? 'block' : 'none';
                break;
        }
    }
}
