function goSearch() {
  // catch empty search
  var nonEmpty = /\w+/;
  nonEmpty.test(document.searchbox.qt.value);
  if(!nonEmpty.test(document.searchbox.qt.value)) {
     alert('Please supply a search term.');
     return;
  }
  // NOTE: Replace www.bu.edu/your-site-here in the declaration below
  // with the actual web address to your site
  if (document.searchbox.q[0].checked) {
     var searchurl="http://www.bu.edu/phpbin/search/index.php?q="+document.searchbox.qt.value+"&t=scv&site=http%3A%2F%2Fscv.bu.edu%2F&sort=&col=scv"
//	      var searchurl="http://search.bu.edu/search?q="+document.searchbox.qt.value+"&btnG=SCV+Search&entqr=0&ud=1&sort=date%3AD%3AL%3Ad1&output=xml_no_dtd&oe=UTF-8&ie=UTF-8&client=scv_frontend&proxystylesheet=scv_frontend&site=scv";
  }  
  
  if (document.searchbox.q[1].checked) {
     var searchurl="http://search.bu.edu/query.html?qt="+document.searchbox.qt.value+"&col=main+briefs+searchot+faculty+bumc+internal+ece";
  }
  
  if (document.searchbox.q[2].checked) {
     var searchurl="http://www.bu.edu/phpbin/webph/index.php?search_for="+document.searchbox.qt.value;
 }

//  alert(searchurl);
  window.location.href = searchurl;
  return false;
}

function goSearch_2() {        
  // catch empty search
  var nonEmpty = /\w+/;
nonEmpty.test(document.searchbox_2.qt_2.value);
  if(!nonEmpty.test(document.searchbox_2.qt_2.value)) {
     alert('Please supply a search term.');
         return;
  }
  // NOTE: Replace www.bu.edu/your-site-here in the declaration below
  // with the actual web address to your site
   if (document.searchbox_2.q_2[0].checked) {
	 var searchurl="http://www.bu.edu/phpbin/search/index.php?q="+document.searchbox_2.qt_2.value+"&t=scv&site=http%3A%2F%2Fscv.bu.edu%2F&sort=&col=scv"
//     var searchurl="http://search.bu.edu/search?q="+document.searchbox_2.qt_2.value+"&btnG=SCV+Search&entqr=0&ud=1&sort=date%3AD%3AL%3Ad1&output=xml_no_dtd&oe=UTF-8&ie=UTF-8&client=scv_frontend&proxystylesheet=scv_frontend&site=scv";
   }  

   if (document.searchbox_2.q_2[1].checked) {
     var searchurl="http://search.bu.edu/query.html?qt="+document.searchbox_2.qt_2.value+"&col=main+briefs+searchot+faculty+bumc+internal+ece";
   }

   if (document.searchbox_2.q_2[2].checked) {
     var searchurl="http://www.bu.edu/phpbin/webph/index.php?search_for="+document.searchbox_2.qt_2.value;
   }

   window.location.href = searchurl;
   return false;
}
