


//Search the site
function goSearch() {
        
	// make it standards comliant
	var mySearch = document.getElementById(searchbox);
	// catch empty search
	var nonEmpty = /\w+/;
	nonEmpty.test(mySearch.qt.value);
	if(!nonEmpty.test(mySearch.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 (mySearch.q.selectedIndex==0) {
	 var searchurl="http://search.bu.edu/dept/query.html?qp=url:www.bu.edu/ssw&qt="
	+mySearch.qt.value+"&col=main";
		 }  
	if (mySearch.q.selectedIndex==1) {
	 var searchurl="http://search.bu.edu/query.html?qt="+mySearch.qt.value+"&col=main";
		 }
	if (mySearch.q.selectedIndex==2) {
	 var searchurl="http://www.bu.edu/phpbin/webph/index.php?search_for="+mySearch.qt.value;
		 }
		 window.location.href = searchurl;
		 return false;
	}