function openURL1()
{ 
selInd = document.theForm.aaa.selectedIndex; 
goURL = document.theForm.aaa.options[selInd].value;
top.location.href = goURL; 
 
}
//--> 

<!-- 
function openURL2()
{ 
selInd = document.handouts.bbb.selectedIndex; 
goURL = document.handouts.bbb.options[selInd].value;
top.location.href = goURL; 

}

var nokeyword = 'Please enter one or more search terms.';

searchtargets = ['articles', 'journals', 'mirlyn', 'reserves'];


// Help text for the general search
var searchHelp = new Array();

searchHelp['articles']= 'Search for journal & magazine articles<P></P><b>Examples:<\/b><OL>George Washington Carver<br>"elasticity of demand"<\/br><\/OL><P>&nbsp;<P><B><a href=http://libproxy.umflint.edu:2048/login?url=http://TH5YK4DG6V.cs.serialssolutions.com/?SS_LibHash=TH5YK4DG6V&searchBy=category&searchType=advanced>Go to advanced search<\/a><\/B><\/P>';

searchHelp['journals']= 'Find if the Thompson Library has a magazine, journal, or e-book online<P></P><b>Example:<\/b><\/P><\/P><OL>journal of sociology<br>JAMA<br>Coding Standards<\/br><\/OL><P></P><b>Browse journals:<\/b><ul><LI><a href=http://th5yk4dg6v.search.serialssolutions.com/?V=1.0&L=TH5YK4DG6V&N=100&S=T_AZ&C=0>Alphabetically</a><LI><a href=http://www.umflint.edu/library/JFSubjectBrowse.htm>By subject</a></UL><P></P><B><a href=http://th5yk4dg6v.search.serialssolutions.com/>More search options<\/a><\/B><\/P>';

searchHelp['mirlyn']= 'Search for books, DVDs, videos, CDs, manuscripts, & more<P></P><b>Examples:<\/b><\/P><\/P><OL>"occult fiction"<br>wom?n<\/br><br>mark twain criticism<\/br><\/OL><P></P><B><a href=http://mirlyn.lib.umich.edu/Search/Advanced&inst=flint>Go to Advanced Search</a><\/B><\/P><\/P>';

searchHelp['reserves']= 'Search for materials your instructors have placed on reserve, by author, title, course number, or instructor name<P></P><B>Examples:<\/B><\/P><\/P><OL>ecn 201<br>kietzman<\/br><\/OL><P></P><B><a href=http://libproxy.umflint.edu:2048/login?url=http://mirlyn.lib.umich.edu:80/F?func=find-b-0&local_base=miu30_pub>More search options<\/a><\/B><\/P>';


// Utility function to get the value of radio buttons in generalsearch
function getSource() {
  var val;

  for (var index in searchtargets) {
      target = searchtargets[index];
      i = document.getElementById('gs_' + target);
      if (i && i.checked) {
	   return i.value;
      }
  }
}


// Change the hint text to the value in the appropriate array

function changehint(val, helparray, target) {
  document.getElementById(target).innerHTML = helparray[val];
  }


function submitQuickSearch(form) {
  var source = form.source.options[form.source.selectedIndex].value;
  var keywords = form.findarticlekeywords.value;

  // Do a value check so the form would not submit null or meaningless values
  if (keywords == '' || keywords == 'Enter keywords') {
    window.alert(nokeyword);
    return false;
  }

  keywords = encodeURIComponent(keywords);

  // Do an ajax call for logging purposes
  $.get('/searchbox/searchbox.php?type=qs&source=' + source + '&keywords=' + keywords);
 
  // Ditto for Google Analytics (if loaded)
  if(window.pageTracker) {
    pageTracker._trackPageview('gwSearch/quicksearch/' + source + '/' + keywords);
  }

  document.location = quicksearchFunc+keywords+quicksearchParam+quicksets[source];
  return false;

}//end of function submitQuickSearch


// Define the general search URLs
searchurls = new Array();

searchurls['journals'] = 'http://search.serialssolutions.com/?SS_searchTypeAll=yes&SS_searchTypeBook=yes&SS_searchTypeJournal=yes&SS_searchTypeOther=yes&SS_searchTypesUsed=yes&V=1.0&N=100&L=TH5YK4DG6V&S=T_W_A&C=';

searchurls['mirlyn'] = 'http://mirlyn.lib.umich.edu:80/F/?func=find-b&local_base=flint_pub&find_code=WRD&request=';

searchurls['reserves'] = 'http://mirlyn.lib.umich.edu:80/F/?filter_code_5=WSL&filter_request_5=FLINT&func=find-b&local_base=miu30_pub&find_code=WRD&request=';

searchurls['articles'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=IAO%2CLXU%2CPRA&term0=';


function submitGeneralSearch(form) {
  var source = getSource();
  var keywords = form.generalsearchkeywords.value;

  // Do a value check so the form would not submit null or meaningless values
  if (keywords == '' || keywords =='Enter keywords') {
    window.alert(nokeyword);
    return false;
  }

  keywords = encodeURIComponent(keywords);
  var url = searchurls[source] + keywords;


 window.location=url;
  return false;
}//end of function submitGeneralSearch

function removekeyword(elementID){
    document.getElementById(elementID).value = '';
	document.getElementById(elementID).style.color = 'black';
	return false;
}

function updateGeneralSearchRadio() {
    $('#gs_'+ $('#gs_select').attr('value')).click();
} //end of function updateGeneralSearchRadio
