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;
  }
  
   if (document.searchbox.q[0].checked) {
     var searchurl="http://search.bu.edu/dept/query.html?qp=url:www.bu.edu/alumni&qt="
+document.searchbox.qt.value+"&col=main";
	 }  
  
  if (document.searchbox.q[1].checked) {
     var searchurl="http://search.bu.edu/dept/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?queryString="+document.searchbox.qt.value;
	 }
 
	 MM_openBrWindow(searchurl,"result","");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
