/** * Javascript to insert the field tags into the textarea. * Used when editing a data template */ function insert_field_tags(selectlist) { var value = selectlist.options[selectlist.selectedIndex].value; var editorname = 'template'; if (typeof tinyMCE == 'undefined') { if (document.execCommand('insertText')) { document.execCommand('insertText', false, value); } else { var element = document.getElementsByName(editorname)[0]; // For inserting when in normal textareas insertAtCursor(element, value); } } else { tinyMCE.execInstanceCommand(editorname, 'mceInsertContent', false, value); } } /** * javascript for hiding/displaying advanced search form when viewing */ function showHideAdvSearch(checked) { var divs = document.getElementsByTagName('div'); for(i=0;i