function changeRadioState(formName,buttonName,buttonValue)
{
   focus()
   if(formName=='untitled')
   {
      ref = document.getElementById(buttonName)
      while(ref.nodeName.toLowerCase()!="form" && ref.parentNode!=null)
      {
         ref = ref.parentNode
      }
      formName = ref.name;
   }
   if(eval("document."+formName+"."+buttonName+".length"))
   {
      for (var i=0; i<eval("document."+formName+"."+buttonName+".length"); i++)
      {
         if (eval("document."+formName+"."+buttonName+"["+i+"].value")==buttonValue)
            eval("document."+formName+"."+buttonName+"["+i+"].checked=true")
         else
            eval("document."+formName+"."+buttonName+"["+i+"].checked=false")
      }
   }
   else
   {
      if(eval("document."+formName+"."+buttonName+".value")==buttonValue)
         eval("document."+formName+"."+buttonName+".checked=true")
   }
}