original_string: function getOnclickJs($elementName)
      {
          $onclickJs = 'if (this.checked) { this.form[\''.$elementName.'\'].value=\''.addcslashes($this->_values[1], '\'').'\'; }';
          $onclickJs .= 'else { this.form[\''.$elementName.'\'].value=\''.addcslashes($this->_values[0], '\'').'\'; }';
          return $onclickJs;
      }
code: function getOnclickJs($elementName)
      {
          $onclickJs = 'if (this.checked) { this.form[\''.$elementName.'\'].value=\''.addcslashes($this->_values[1], '\'').'\'; }';
          $onclickJs .= 'else { this.form[\''.$elementName.'\'].value=\''.addcslashes($this->_values[0], '\'').'\'; }';
          return $onclickJs;
      }
code_tokens: function getOnclickJs ( $ elementName ) { $ onclickJs = 'if (this.checked) { this.form[\'' . $ elementName . '\'].value=\'' . addcslashes ( $ this -> _values [ 1 ] , '\'' ) . '\'; }' ; $ onclickJs .= 'else { this.form[\'' . $ elementName . '\'].value=\'' . addcslashes ( $ this -> _values [ 0 ] , '\'' ) . '\'; }' ; return $ onclickJs ; }
docstring: Create the javascript for the onclick event which will
  set the value of the hidden field
  
  @param     string    $elementName    The element name
  
  @access public
  @return string
  
  @deprecated          Deprecated since 3.2.6, this element no longer uses any javascript
docstring_tokens: Create the javascript for the onclick event which will set the value of the hidden field