orm, '['+sb_code+']'+user_input+'[/'+sb_code+']');
                                        theform.focus();
                                }
                        } else {
                                // Insert text automatically around selection
                                insertAtCaret(theform, "["+sb_code+"]"+selected_text+"[/"+sb_code+"]");
                                theform.focus();
                        }
                }
        }

        // Insert Image Tag
        fun