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

        // Insert URL Tag
        function ins_url_no_options(theform) {
                // inserts named url link - [url=mylink new=true]text[/url]
                l