Ext.RadioBar = Ext.extend(Ext.form.RadioGroup, {
	//additional params here

	
	//additional functions here
	setBoxes : function(param, functionParam){
		for(i in param){
			if (typeof param[i] == 'object'){
				param[i].on('check',function(thisBox,checked){
					eval(functionParam+'("'+thisBox.id+'",'+checked+')');
				});
				
			}
		}
		
	},
	
	getValue : function(){
		for(i in this.items.items){
			if (typeof this.items.items[i] == 'object'){
				if(this.items.items[i].checked==true){
					return this.items.items[i].inputValue;
				}
			}
		}
	},
	//default params here
	initComponent : function(){
		Ext.form.RadioGroup.superclass.initComponent.apply(this, arguments);
		if(typeof this.initialConfig.boxFunction != 'undefined'){
			this.on('render',function(){
				this.setBoxes(this.items.items, this.initialConfig.boxFunction);
			});
		}

	}

	
});
Ext.reg('radiobar', Ext.RadioBar);