function DXFormCheckBoxList( id )
{
	this.superClass = DXFormComponent;
	this.superClass( id );
	
	this.CheckBoxes = new Array();
}

DXFormCheckBoxList.prototype = new DXFormComponent;

DXFormCheckBoxList.prototype.GetValue = function()
{
	var result = "";
	for( var c=0; c<this.CheckBoxes.length; c++ )
	{
		var item = document.getElementById( this.CheckBoxes[c] );
		if( item.checked )
		{
			if( result != "" )
				result += ",";
			result += item.value;
		}
	}
	return result;
}

function DXFormRadioButtonList( id )
{
	this.superClass = DXFormComponent;
	this.superClass( id );
	
	this.Name = null;
	this.RadioButtons = new Array();
	
}

DXFormRadioButtonList.prototype = new DXFormComponent;

DXFormRadioButtonList.prototype.GetValue = function()
{
	var result = "";
	for( var c=0; c<this.RadioButtons.length; c++ )
	{
		var item = document.getElementById( this.RadioButtons[c] );
		if( item.checked )
		{
			if( result != "" )
				result += ",";
			result += item.value;
		}
	}
	return result;
}
