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;
    }
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;
    }
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 ; }
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
Create the javascript for the onclick event which will set the value of the hidden field