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]=='amount')  // 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 == 'freetext')
  {
     ff_getElementByName('subject').value = 'Your request for additional ticket quota has been submitted.';
     ff_getElementByName('remark').value = '';
     ff_getElementByName('textfield2').value = '';
  }
  
  if (ff_getElementByIndex(theone).value == 'shutdown')
  {
     ff_getElementByName('subject').value = 'Your request for temporary suspend has been submitted.';
     ff_getElementByName('remark').value = 'Kindly temporarily suspend the ticketing issuance of this agent with immediate effect.';
     ff_getElementByName('textfield2').value = 'suspend';
  }

  if (ff_getElementByIndex(theone).value == 'reactivate')
  {
     ff_getElementByName('subject').value = 'Your request for reactivate has been submitted.';
     ff_getElementByName('remark').value = 'Agents balance currently submitted with us, please reactivate its ticketing system with immediate effect.';
     ff_getElementByName('textfield2').value = 'reactivate';
  }

}