jq(document).ready(function() {

  bbt_url = 'http://rmportal.net/library/browse_by_theme?SearchableText='

  jq('#themeSelect1').change(
      function () {
        term = jq('#themeSelect1').val();
        redir = bbt_url + term.replace(/ /g,'+')
        window.location.replace(redir);
      });

  jq('#themeSelect2').change(
      function () {
        term = jq('#themeSelect2').val();
        redir = bbt_url + term.replace(/ /g,'+')
        window.location.replace(redir);
      });

  jq('#themeSelect3').change(
      function () {
        term = jq('#themeSelect3').val();
        redir = bbt_url + term.replace(/ /g,'+')
        window.location.replace(redir);
      });

  jq('#themeSelect4').change(
      function () {
        term = jq('#themeSelect4').val();
        redir = bbt_url + term.replace(/ /g,'+')
        window.location.replace(redir);
      });

  jq('#themeSelect5').change(
      function () {
        term = jq('#themeSelect5').val();
        redir = bbt_url + term.replace(/ /g,'+')
        window.location.replace(redir);
      });

  jq('#themeSelect6').change(
      function () {
        term = jq('#themeSelect6').val();
        redir = bbt_url + term.replace(/ /g,'+')
        window.location.replace(redir);
      });

  jq('#themeSelect7').change(
      function () {
        term = jq('#themeSelect7').val();
        redir = bbt_url + term.replace(/ /g,'+')
        window.location.replace(redir);
      });

  jq('#themeSelect8').change(
      function () {
        term = jq('#themeSelect8').val();
        redir = bbt_url + term.replace(/ /g,'+')
        window.location.replace(redir);
      });

  jq('#themeSelect9').change(
      function () {
        term = jq('#themeSelect9').val();
        redir = bbt_url + term.replace(/ /g,'+')
        window.location.replace(redir);
      });

  jq('#themeSelect10').change(
      function () {
        term = jq('#themeSelect10').val();
        redir = bbt_url + term.replace(/ /g,'+')
        window.location.replace(redir);
      });

});
