le markup

                if ( sb_code != '-'+'-' ) {
                        // Get selected text
                        var selected_text = getSelectedText(theform);

                        if (selected_text == '') {
                                prompt_text = '[' + sb_code + ']xxx[/' + sb_code + ']';
                                user_input = prompt( prompt_text, '' );
                                if ( (user_input != null) ) {
                                        insertAtCaret(thef