function ff_which_radio()
{
  var theone = 0;
  for (var i = 0; i < ff_elements.length; i++) // test for the buttons
    if (ff_elements[i][2]=='remarkr')  // change name to your button group
      if (ff_getElementByIndex(i).checked) theone = i;
      // now we know which radiobutton is checked!
  
  // show the value of the button in the display field
  ff_getElementByName('display').value = ff_getElementByIndex(theone).value;

  if (ff_getElementByIndex(theone).value == 'addquota') // show the field
  {
     ff_getDivByName('message').style.display = 'block';
     ff_getDivByName('message_txt').style.display = 'block';
     ff_getElementByName('remark').value = '';
  }


  if (ff_getElementByIndex(theone).value == 'suspend')  // hide the field
    {
       ff_getDivByName('message').style.display = 'none';
       ff_getDivByName('message_txt').style.display = 'none';
       ff_getElementByName('message').value = 'XX';
       ff_getElementByName('remark').value = 'Kindly temporarily suspend the ticketing issuance of this agent with immediate effect.';
    }

  if (ff_getElementByIndex(theone).value == 'reactivate')  // hide the field
    {
       ff_getDivByName('message').style.display = 'none';
       ff_getDivByName('message_txt').style.display = 'none';
       ff_getElementByName('message').value = 'XX';
       ff_getElementByName('remark').value = 'Agents balance currently submitted with us, please reactivate its ticketing system with immediate effect.';
    }

}