rem: rg.selectedItem = topItem;  var selectedItemId = topItem.getAttribute('id'); 
add: var selectedItemId = rg.selectedItem.getAttribute('id'); 
context: function acctTypePageInit() {  // this is a total hack.  // select the first radio button, assuming the wizard hasn't  // already selected one for us. The wizard can get in this wierd state  var rg = document.getElementById("acctyperadio");  var elements = rg.getElementsByTagName("radio");  var topItem = elements[0];  for (var i=0; i < elements.length; i++)    if (elements[i].selected) topItem = elements[i];  rg.selectedItem = topItem;  var selectedItemId = topItem.getAttribute('id');  if (selectedItemId == "mailaccount")    setMailAccountTypeData();  else if (selectedItemId == "newsaccount")    setNewsAccountTypeData();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ca7d241f870942ef3b3496b4d4b8df753d0794ab/aw-accounttype.js/buggy/mailnews/base/prefs/resources/content/aw-accounttype.js