function Metal_Collection (object)
{
	this.name = object.name;
	this.items = [];
	for(var i=0;i<object.items.length; i++)
	{
		this.items[i] = this.createItem(object.items[i]); 
	}
}

Metal_Collection.prototype.createItem = function()
{
	throw new Error('createItem Must be redefined in subclass');	
}
Metal_Collection.prototype.getTotalItems = function()
{
	return this.items.length;
}



function Metal_Item (data)
{
	this.data = data;

}

Metal_Item.prototype.getCellData = function()
{
	return '<input type="radio" name="rad_'+this.radioName()+'" id="rad_'+this.data.name+'" class="mass_value"><label for="rad_'+this.data.name+'" class="mass_value">'+this.data.name+'</label>';
}
