///   search.js

function EnterKey(event) {
   if (isNav) {if (event.which == 13) {return true;}}
   if (isIE) {if (event.keyCode == 13) {return true;}}
   return false;
}
function checkSearchOLD() {
   var doc = window.document.forms["utk_seek"];

       with (window.document.forms["utk_seek"]) {
           if (doc.qtype.options[doc.qtype.selectedIndex].value == "itc") {
                 doc.qp.value="site:itc.utk.edu";
                 window.location.href = "/cgi-bin/search.pl?qp=" + doc.qp.value + "&qt=" + doc.qt.value;
           }  else {
                      doc.submit();
           }
    }
}
function checkSearch() {
   var doc = window.document.forms["utk_seek"];

       with (window.document.forms["utk_seek"]) {
           if (doc.qtype.options[doc.qtype.selectedIndex].value == "itc") {
                 doc.qp.value="+site:itc.utk.edu";
                 window.location.href = "http://itc.utk.edu/cgi-bin/search.pl?qp=" + doc.qp.value + "&qt=" + doc.qt.value;
           }  else {
                       if (doc.qtype.options[doc.qtype.selectedIndex].value == "online") {
                           doc.qp.value="+site:online.utk.edu";
                           window.location.href = "http://online.utk.edu/cgi-bin/search.pl?qp=" + doc.qp.value + "&qt=" + doc.qt.value;
                      }  else {
                                 doc.submit();
                  }
           }
    }
}

