public function toHtml($submitted = false, $blnSimpleLayout = false, $blnLabel = true, $blnDisplayErrors = true)
    {
        // Call this right before __getMetaString();
        $this->setConditionalMeta();

        //*** Set the "id" if not yet set.
        $this->__setMeta("id", $this->getName(), false);

        $strOutput = "<fieldset{$this->__getMetaString()}>\n";
        if (! empty($this->__header)) {
            $strOutput .= "<legend><span>{$this->__header}</span></legend>\n";
        }

        if (is_object($this->__note)) {
            $strOutput .= $this->__note->toHtml();
        }

        foreach ($this->__fields as $field) {
            $strOutput .= $field->toHtml($submitted, $blnSimpleLayout, $blnLabel, $blnDisplayErrors);
        }

        $strOutput .= "</fieldset>\n";

        return $strOutput;
    }