HI

I have three checkboxes on my html page and i am converting them to radiobuttons by using DOM dynamically but the i cannot select them then in IE7 but it is working fine in firefox????
i have checked the code generated and it is not putting the name in radiobuttons tag?????
how can i make it run in both IE and firefox????
here is my code
HTML Code:
function convert()
{
var divText = document.getElementById('divText');
var allChild = divText.childNodes;
 
 
for(var x=0 ;x<allChild.length;x++){
if(allChild[x].nodeName.toLowerCase()== 'input')
{ //alert(allChild[x].nodeName.getAttribute('type');
//alert(allChild[x].nodeName);
var rbo = document.createElement('input');
//alert(typeOf(IE));
rbo.setAttribute('type','radio');
rbo.setAttribute('name','r');
 
rbo.setAttribute('value' ,allChild[x].getAttribute('value'));
alert(document.getElementById('divText').innerHTML);
divText.replaceChild(rbo,allChild[x]);
} 
}
}