EXT3.0单选按钮取值问题

{
xtype: 'radiogroup',
id : 'atype',
fieldLabel: "选项类型",
items : [
{
boxLabel: '单选',
name: 'sur_atype',
inputValue:'sing',
checked : true
},
{
boxLabel: '多选',
name: 'sur_atype',
inputValue:'dou'
}
]
},
以上是我定义的单选按钮的组件
以下是我获取单选按钮的值的代码: var atype = Ext.getCmp('atype').getValue();
他的弹出值是[object Object],我查了JS基础,[color=red]说是为空或者不是对象[/color]
[color=red]我的需求是:我要知道用户选了单选还是多选的按钮,我需要得到值[/color],希望哪位仁兄帮我下,随便说下小妹的犯错地方,谢谢!!!

可怜的毛毛...

在试下我这段代码吧...
inputValue,这次肯定对了..

[code="javascript"]
Ext.onReady(function(){
Ext.BLANK_IMAGE_URL = '/images/s.gif';
Ext.QuickTips.init();
testForMaoMao();
});
function testForMaoMao(){
var f = new Ext.form.FormPanel({
width:300,
height:300,
renderTo:Ext.getBody(),
items:[{
xtype: 'radiogroup',
id : 'atype',
fieldLabel: "选项类型",
items : [{
boxLabel: '单选',
name: 'sur_atype',
inputValue:'sing',
checked : true
},{
boxLabel: '多选',
name: 'sur_atype',
inputValue:'dou'
}]
}],
buttons:[{
text:'xx',
handler:function(){
var rg = Ext.getCmp('atype');
var r = rg.getValue();
//关键
var value = r.inputValue;
alert(value)
//console.log(rg,r,value)
}
}]
})
}[/code]