protected function makeJqOptions()
    {
        $strOptions = parent::makeJqOptions();
        $controlId = $this->ControlId;
        if (!$this->blnHasCloseButton) {
            $strHideCloseButtonScript = '$j(this).parent().find(".ui-dialog-titlebar-close").hide();';
        } else {
            $strHideCloseButtonScript = '';
        }
        if ($strOptions) {
            $strOptions .= ', ';
        } else {
            $strOptions = '';
        }
        $strOptions .= <<<FUNC
                open: function(event, ui) {
                    qcubed.recordControlModification("{$controlId}", "_IsOpen", true);
                    {$strHideCloseButtonScript}
\t\t\t    },
\t\t\t    create: function() {
\t\t\t        \$j(this).parent().appendTo(\$j("form:first"));
\t\t\t    },
\t\t\t    close: function(event, ui) {
\t\t\t        qcubed.recordControlModification("{$controlId}", "_IsOpen", false);
\t\t\t    }
FUNC;
        return $strOptions;
    }
 protected function makeJqOptions()
 {
     $strOptions = parent::makeJqOptions();
     if (!$this->blnHasCloseButton) {
         if ($strOptions) {
             $strOptions .= ', ';
         }
         $strOptions .= 'open: function(event, ui) { $j(this).parent().find(".ui-dialog-titlebar-close").hide(); }';
     }
     //move both the dialog and the matte back into the form, to ensure they continue to function
     if ($strOptions) {
         $strOptions .= ', ';
     }
     $strOptions .= 'create: function() { $j(this).parent().appendTo($j("form:first")); }';
     return $strOptions;
 }