var nokeyword = 'Please enter one or more search terms.';

searchtargets = ['articles', 'reference', 'mirlyn', 'both', 'articles_humanities', 'both_humanities', 'articles_africana_studies', 'both_africana_studies', 'articles_american_culture', 'both_american_culture', 'articles_art', 'both_art', 'articles_english_and_literature', 'both_english_and_literature', 'articles_film', 'both_film', 'articles_history', 'both_history', 'articles_languages_and_linguistics', 'both_languages_and_linguistics', 'articles_music', 'both_music', 'articles_philosophy', 'both_philosophy', 'articles_religion', 'both_religion', 'articles_theatre_and_dance', 'both_theatre_and_dance', 'articles_womens_and_gender_studies', 'both_womens_and_gender_studies'];


// Help text for the general search
var searchHelp = new Array();

searchHelp['articles']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology<\/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=33139>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>grand guignol<br>"gothic architecture"<\/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_humanities']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology <\/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=33139>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_humanities']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>deontology<br>"old man and the sea"<\/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_africana']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology <\/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=33109>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_africana']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>deontology<br>"old man and the sea"<\/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_american_culture']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology <\/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=33110>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_american_culture']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>deontology<br>"old man and the sea"<\/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_art']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology <\/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=33112>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_art']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>deontology<br>"old man and the sea"<\/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_english_and_literature']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology <\/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=33132>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_english_and_literature']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>deontology<br>"old man and the sea"<\/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_film']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology <\/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=33133>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_film']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>deontology<br>"old man and the sea"<\/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_history']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology <\/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=33138>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_history']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>deontology<br>"old man and the sea"<\/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_languages_and_linguistics']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology <\/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=33141>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_languages_and_linguistics']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>deontology<br>"old man and the sea"<\/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_music']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology <\/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=33144>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_music']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>deontology<br>"old man and the sea"<\/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_philosophy']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology <\/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=33146>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_philosophy']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>deontology<br>"old man and the sea"<\/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_religion']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology <\/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=33153>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_religion']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>deontology<br>"old man and the sea"<\/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_theatre_and_dance']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology <\/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=33159>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_theatre_and_dance']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>deontology<br>"old man and the sea"<\/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_womens_and_gender_studies']= 'Search for journal & magazine articles <P>&nbsp;<P><b>Examples:<\/b><OL>herman melville<br>catholic theology <\/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=33160>Go to advanced search<\/a><\/B><\/P>';
searchHelp['both_womens_and_gender_studies']= 'Search for background information and journal articles <P>&nbsp;<P><b>Examples:<\/b><OL>deontology<br>"old man and the sea"<\/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;
  }

  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_humanities'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CBNW%2CCCY%2CIAO%2CPRA&term0=';
searchurls['both_humanities'] = '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%2CBNW%2CCCY%2CIAO%2CPRA&term0=';

searchurls['articles_africana'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CCCY%2CIAO%2CJST%2CPRA&term0=';
searchurls['both_africana'] = '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%2CCCY%2CIAO%2CJST%2CPRA&term0=';

searchurls['articles_american_culture'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AGO%2CAKQ%2CCCY%2CFTF%2CIAO%2CPRA&term0=';
searchurls['both_american_culture'] = '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%2CAGO%2CAKQ%2CCCY%2CFTF%2CIAO%2CPRA&term0=';

searchurls['articles_art'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AJY%2CCCY%2CJST%2CPRA&term0=';
searchurls['both_art'] = '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%2CAJY%2CCCY%2CJST%2CPRA&term0=';

searchurls['articles_english_and_literature'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CBNW%2CCMC%2CCRG%2CCRP%2CJST&term0=';
searchurls['both_english_and_literature'] = '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%2CBNW%2CCMC%2CCRG%2CCRP%2CJST&term0=';

searchurls['articles_film'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CBNW%2CCCY%2CIAO%2CJST&term0=';
searchurls['both_film'] = '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%2CBNW%2CCCY%2CIAO%2CJST&term0=';

searchurls['articles_history'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AGO%2CAGQ%2CAHT%2CAIB%2CFTE%2CFTF&term0=';
searchurls['both_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%2CAGO%2CAGQ%2CAHT%2CAIB%2CFTE%2CFTF&term0=';

searchurls['articles_languages_and_linguistics'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CCMC%2CIAO%2CPRA%2CRSV&term0=';
searchurls['both_languages_and_linguistics'] = '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%2CCMC%2CIAO%2CPRA%2CRSV&term0=';

searchurls['articles_music'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=CCY%2CJST%2CPRA&term0=';
searchurls['both_music'] = '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%2CCCY%2CJST%2CPRA&term0=';

searchurls['articles_philosophy'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CCCY%2CDJL%2CIAO%2CPRA&term0=';
searchurls['both_philosophy'] = '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%2CCCY%2CDJL%2CIAO%2CPRA&term0=';

searchurls['articles_religion'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CCCY%2CDJL%2CIAO%2CPQR%2CPRA&term0=';
searchurls['both_religion'] = '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%2CCCY%2CDJL%2CIAO%2CPQR%2CPRA&term0=';

searchurls['articles_theatre_and_dance'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=CCY%2CCMC%2CJST%2CPRA&term0=';
searchurls['both_theatre_and_dance'] = '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%2CCCY%2CCMC%2CJST%2CPRA&term0=';

searchurls['articles_womens_and_gender_studies'] = 'http://libproxy.umflint.edu:2048/login?url=http://th5yk4dg6v.cs.serialssolutions.com/resultFrameset.jsp?SS_LibHash=TH5YK4DG6V&searchBy=Database&field0=Title&dbIDList=AKQ%2CCCP%2CCCY%2CIAO%2CPRA&term0=';
searchurls['both_womens_and_gender_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%2CCCP%2CCCY%2CIAO%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

