﻿function ProductSearch() {
    var form = document.getElementById('searchForm');
    var term = document.getElementById('searchTerm').value;

    if (term == '[Search]' || term == '') {
        return false;
    }

    form.action += '/' + term;

    return true;
}

function QuestionSearch() {
    var form = document.getElementById('questionSearchForm');
    var term = document.getElementById('questionSearchTerm').value;

    if (term == '[Search]' || term == '') {
        return false;
    }

    form.action += '/' + term;

    return true;
}
// WYSIWIG Text editor setup.
var freeTextArea_settings = {
    mode: 'textareas',
    plugins: 'table,advimage,advlink,flash,searchreplace,print,contextmenu,paste,fullscreen,noneditable',
    theme: 'advanced',
    plugins: 'style,layer,table,advimage,advlink,iespell,media,searchreplace,print,contextmenu,paste,fullscreen,noneditable,inlinepopups',
    theme_advanced_buttons1_add_before: '',
    theme_advanced_buttons1_add: 'sup,|,print,fullscreen,|,search,replace,iespell',
    theme_advanced_buttons2_add_before: 'cut,copy,paste,pastetext,pasteword,|',
    theme_advanced_buttons2_add: '|,table,media,insertlayer,inlinepopups',
    theme_advanced_buttons3: '',
    theme_advanced_buttons3_add_before: '',
    theme_advanced_buttons3_add: '',
    theme_advanced_buttons4: '',
    theme_advanced_toolbar_location: 'top',
    theme_advanced_toolbar_align: 'left',
    theme_advanced_path_location: 'bottom',
    extended_valid_elements: 'hr[class|width|size|noshade],span[class|align|style],pre[class],code[class],iframe[src|width|height|name|align]',
    file_browser_callback: 'fileBrowserCallBack',
    theme_advanced_resize_horizontal: false,
    theme_advanced_resizing: true,
    theme_advanced_disable: 'help,fontselect,fontsizeselect,forecolor,backcolor,styleselect',
    relative_urls: false,
    noneditable_noneditable_class: 'cs,csharp,vb,js',
    tab_focus: ':prev,:next'
};