function setForm()
{
var sCookieText = '';
sCookieText += document.wfqsform.wf_field1.value + ":";
sCookieText += document.wfqsform.wf_term1.value + ":";
document.cookie = 'wf_search_structure=' + encodeURIComponent(sCookieText) + '; Path=/';
document.cookie = 'wf_selected_databases=' + document.wfqsform.Databases.value + '; Path=/';
}

document.write("<div class=\"wfqsdiv\">");
document.write("<form name=\"wfqsform\" action=\"http://wfxsearch.webfeat.org/wfsearch/search\" method=\"POST\">");
document.write("<input type=\"hidden\" name=\"Client_ID\" value=\"10340\" />");
document.write("<input type=\"hidden\" name=\"Command\" value=\"Search\" />");
document.write("<input type=\"hidden\" name=\"noserial\" value=\"1\" />");
document.write("<input type=\"hidden\" name=\"wf_all_years\" value=\"yes\" />");
document.write("<input type=\"hidden\" name=\"wf_codeset\" value=\"utf-8\" />");
document.write("<input type=\"hidden\" name=\"useSessions\" value=\"1\" />");
document.write("<input type=\"hidden\" name=\"rtmpl\" value=\"wfx_ui2.jsp\" />");
document.write("<input type=\"hidden\" name=\"format\" value=\"JS\" />");
document.write("<input type=\"hidden\" name=\"locale\" value=\"en\" />");document.write("<input class=\"wfqsterm\" type=\"text\" name=\"wf_term1\" size=\"20\" value=\"\" />");
document.write("<select class=\"wfqsfieldselect\" name=\"wf_field1\" size=\"1\">");
document.write("<option class=\"wfqsfieldoption\" value=\"wf_all\">All</option>");
document.write("<option class=\"wfqsfieldoption\" value=\"wf_keyword\">Keyword</option>");
document.write("<option class=\"wfqsfieldoption\" value=\"wf_title\">Title</option>");
document.write("<option class=\"wfqsfieldoption\" value=\"wf_author\">Author</option>");
document.write("<option class=\"wfqsfieldoption\" value=\"wf_abstract\">Abstract</option>");
document.write("<option class=\"wfqsfieldoption\" value=\"wf_subject\">Subject</option>");
document.write("</select>");
document.write("<select class=\"wfqscatselect\" name=\"Databases\" >");
document.write("<option class=\"wfqscatoption\" value=\"wf_csa_bibliohistart,wf_readersguideretro,wf_wilson_humabs,wf_artfulltext,wf_csa_francis,wf_ebscoxml_fqh,wf_csa_idxislamic,wf_artindexretro,wf_muse,wf_uclahis,wf_jstorage,wf_ebscoxml_fph,wf_wfx_aleph__CL_2,wf_chadwyck_filmindexes,wf_aulimp,wf_philosopherindex,wf_rhsb,wf_hwwilson_rgab,wf_ebscoxml_sbh,wf_ebscoxml_fyh,wf_ebscoxml_aph,wf_bibfrance,wf_oclc_hstm,wf_chadwyck_pao,wf_humsoci,wf_pq_genderwatch,wf_ebscoxml_ahl,wf_chadwyck_poi,wf_bas,wf_filmlitindex,wf_feminae,wf_ebscoxml_hia,wf_ebscoxml_reh,wf_histcoop,wf_wpscsa,wf_csa_econlit\">History-Journal Articles</option>");
document.write("<option class=\"wfqscatoption\" value=\"wf_bibfrance,wf_pq_genderwatch,wf_chadwyck_poi,wf_histcoop,wf_muse,wf_ebscoxml_aph,wf_jstorage\">History-Journal Articles: Full Text</option>");
document.write("</select>");
document.write("<input class=\"wfqsbtn\" type=\"submit\" value=\"Search\" onclick=\"setForm();\" />");
document.write("</form>");
document.write("</div>");