var nokeyword = 'Please enter one or more search terms.';

searchtargets = ['articles', 'reference', 'mirlyn', 'both', 'articles_social_sciences', 'both_social_sciences', 'articles_anthropology', 'both_anthropology', 'articles_communication', 'both_communication', 'articles_criminal_justice', 'both_criminal_justice', 'articles_economics', 'both_economics', 'articles_education', 'both_education', 'articles_international_studies', 'both_international_studies', 'articles_law', 'both_law', 'articles_legislative_history', 'both_legislative_history', 'articles_political_science', 'both_political_science', 'articles_psychology', 'both_psychology', 'articles_public_administration', 'both_public_administration', 'articles_social_work', 'both_social_work', 'articles_sociology', 'both_sociology', 'articles_statistics', 'both_statistics'];


// Help text for the general search
var searchHelp = new Array();

searchHelp['articles']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33155>Go to advanced search<\/a><\/B><\/P>';

searchHelp['reference']= 'Search for background information or quick answers to a topic <P><B>Examples:<\/B><\/P><OL>easter island<br>"analysis of variance"<\/br><\/OL><P><P><B>Other resources to try:</B><UL><LI><span class="advancedlink"><B><a href="http://libproxy.umflint.edu:2048/login?url=http://TH5YK4DG6V.cs.serialssolutions.com/?SS_LibHash=TH5YK4DG6V&searchBy=category&searchType=advanced ">Advanced Easy Search</a></B></span></LI><LI><B><a href=http://libproxy.umflint.edu:2048/login?url=http://www.oxfordreference.com/views/GLOBAL.html?authstatuscode=202>Oxford Reference Online</a></B></LI><LI><B><a href=http://libproxy.umflint.edu:2048/login?url=http://www.credoreference.com/search.jsp>Credo Reference</a></B></LI><LI><B><a href=http://libproxy.umflint.edu:2048/login?url=http://infotrac.galegroup.com/itweb/umuser?db=GVRL>Gale Virtual Reference Library</a></B></LI><LI><B><a href=http://libproxy.umflint.edu:2048/login?url=http://scholar.google.com/>Google Scholar</a></B></UL><\/B><\/P><\/P>';

searchHelp['articles_social_sciences']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33155>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_social_sciences']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_anthropology']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33111>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_anthropology']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_communication']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33121>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_communication']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_criminal_justice']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33124>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_criminal_justice']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_economics']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33128>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_economics']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_education']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33129>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_education']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_international_studies']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33140>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_international_studies']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_law']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33142>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_law']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_legislative_history']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33148>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_legislative_history']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_political_science']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33148>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_political_science']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_psychology']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33149>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_psychology']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_public_administration']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33150>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_public_administration']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_social_work']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33156>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_social_work']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_sociology']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33157>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_sociology']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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['articles_statistics']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>immigration<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&searchType=advanced&currentCat=33158>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_statistics']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>freud and superego<br>recidivism<\/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>';


// 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['reference'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU&term0=';

searchurls['articles_social_sciences'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=DVQ%2CIAO%2CPRA&term0=';
searchurls['both_social_sciences'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CAKQ%2CDVQ%2CIAO%2CPRA&term0=';

searchurls['articles_anthropology'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AIK%2CAKQ%2CDVQ%2CPRA&term0=';
searchurls['both_anthropology'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CAIK%2CAKQ%2CDVQ%2CPRA&term0=';

searchurls['articles_communication'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CDVQ%2CECE%2CIAO%2CPRA%2CSCS&term0=';
searchurls['both_communication'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CAKQ%2CDVQ%2CECE%2CIAO%2CPRA%2CSCS&term0=';

searchurls['articles_criminal_justice'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CBDC%2CDVQ%2CLXU%2CPRA%2CSCR&term0=';
searchurls['both_criminal_justice'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CAKQ%2CBDC%2CDVQ%2CLXU%2CPRA%2CSCR&term0=';

searchurls['articles_economics'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CBIQ%2CEBU%2CLXU%2CPRA&term0=';
searchurls['both_economics'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CAKQ%2CBIQ%2CEBU%2CLXU%2CPRA&term0=';

searchurls['articles_education'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=BIY%2CBNI%2CIER&term0=';
searchurls['both_education'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CBIY%2CBNI%2CIER&term0=';

searchurls['articles_international_studies'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CDGP%2CDVQ%2CIAO%2CLXU%2CPRA&term0=';
searchurls['both_international_studies'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CAKQ%2CDGP%2CDVQ%2CIAO%2CLXU%2CPRA&term0=';

searchurls['articles_law'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=LXU&term0=';
searchurls['both_law'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CLXU&term0=';

searchurls['articles_legislative_history'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=DGP%2CLXU%2CPRA%2CSPI&term0=';
searchurls['both_legislative_history'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CDGP%2CLXU%2CPRA%2CSPI&term0=';

searchurls['articles_political_science'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CDGP%2CDVQ%2CIAO%2CPRA%2CSPI&term0=';
searchurls['both_political_science'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CAKQ%2CDGP%2CDVQ%2CIAO%2CPRA%2CSPI&term0=';

searchurls['articles_psychology'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=DOK%2CEPA%2CPSJ%2CSPY&term0=';
searchurls['both_psychology'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CDOK%2CEPA%2CPSJ%2CSPY&term0=';

searchurls['articles_public_administration'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CIAO%2CPRA%2CSPI&term0=';
searchurls['both_public_administration'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CAKQ%2CIAO%2CPRA%2CSPI&term0=';

searchurls['articles_social_work'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=DVZ%2CDWA&term0=';
searchurls['both_social_work'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CDVZ%2CDWA&term0=';

searchurls['articles_sociology'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CDVQ%2CDWJ%2CHLH%2CHNI%2CPRA&term0=';
searchurls['both_sociology'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CAKQ%2CDVQ%2CDWJ%2CHLH%2CHNI%2CPRA&term0=';

searchurls['articles_statistics'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=XXXX&term0=';
searchurls['both_statistics'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=EKQ%2CGAS%2CEFU%2CXXXX&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


