/**
  * Create links that we can use in the form
  *
  * @param CRM_Core_Form $form          the form object
  * @param string        $prefix        the attribute that we are referencing
  * @param string        $showLinkText  the text to be shown for the show link
  * @param string        $hideLinkText  the text to be shown for the hide link
  *
  * @return void
  * @access public
  */
 function links(&$form, $prefix, $showLinkText, $hideLinkText)
 {
     $showCode = "show('{$prefix}'); hide('{$prefix}[show]'); return false;";
     $hideCode = "hide('{$prefix}'); show('{$prefix}[show]'); return false;";
     CRM_Core_ShowHideBlocks::setIcons();
     $values = array();
     $values['show'] = CRM_Core_ShowHideBlocks::linkHtml("{$prefix}[show]", "#{$prefix}", $GLOBALS['_CRM_CORE_SHOWHIDEBLOCKS']['_showIcon'] . $showLinkText, "onclick=\"{$showCode}\"");
     $values['hide'] = CRM_Core_ShowHideBlocks::linkHtml("{$prefix}[hide]", "#{$prefix}", $GLOBALS['_CRM_CORE_SHOWHIDEBLOCKS']['_hideIcon'] . $hideLinkText, "onclick=\"{$hideCode}\"");
     $form->assign($prefix, $values);
 }