protected function formSubmitElement($formName = '', $submitElement = 'button', $submitElementText = '')
    {
        switch ($submitElement) {
            case 'link':
                $element = "\n<a href='javascript:document.getElementById(\"" . $formName ."\").submit()'>" . addslashes($submitElementText) . "</a>";
                break;
            case 'button':
                $element = "\n<button type='submit'>" . addslashes($submitElementText) . "</button>";
                break;
            case 'auto':
                $element = "\n<button type='submit'>" . addslashes($submitElementText) . "</button>";
                $element .= "\n<script language=\"javascript\" type=\"text/javascript\">document.getElementById(\"" . $formName . "\").submit();</script>";
                break;
            default :
                $element = "\n<button type='submit'>" . addslashes($submitElementText) . "</button>";
                break;
        }
        return $element;
    }