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=\"10166\" />");
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=\"wf_field1\" value=\"wf_keyword\" />");
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("<span class=\"wfqstermlabel\"><SMALL>Enter Term/s:</SMALL><BR></span>");document.write("<input class=\"wfqsterm\" type=\"text\" name=\"wf_term1\" size=\"20\" value=\"\" />");
document.write("<br>");document.write("<span class=\"wfqscatlabel\"><SMALL>Choose a Category:</SMALL><BR></span>");document.write("<select class=\"wfqscatselect\" name=\"Databases\" >");
document.write("<option class=\"wfqscatoption\" value=\"wf_crc,wf_infopoems,wf_bandolier,wf_acpmedicine,wf_wileycochrane,wf_clinicaltrials,wf_dynamed,wf_harrisons_amed,wf_tripdb,wf_statref,wf_nationalguideline,wf_clinicalevidence,wf_mdcpractice,wf_emedicine\">EBM</option>");
document.write("<option class=\"wfqscatoption\" value=\"wf_netlibraryprivate,wf_ovidbookslim,wf_harrisons_amed,wf_ebrary_xml,wf_statref,wf_mdconsult,wf_psychonline,wf_medicaldictionary,wf_r2library,wf_emedicine,wf_thiemeebook\">E-Books</option>");
document.write("<option class=\"wfqscatoption\" value=\"wf_bmj_online,wf_medlet_tg,wf_taylornfrancis,wf_highwire,wf_mdcjournals,wf_arjournals,wf_csa_psyc,wf_wileyinterscience,wf_apa_psycarticles,wf_nejm,wf_springerverlag,wf_ovidjournalsft,wf_medicalletter,wf_scidirect_xml,wf_jama\">E-Journals</option>");
document.write("<option class=\"wfqscatoption\" value=\"wf_factcommonographs,wf_crc,wf_harrisons_amed,wf_factcomdrug,wf_mdcdrug,wf_medlet_tg,wf_csa_mpba,wf_csa_toxline,wf_medicalletter,wf_factcominteractions\">Drugs</option>");
document.write("<option class=\"wfqscatoption\" value=\"wf_csa_psycinfo,wf_csa_ccta,wf_ebscoxml_gnh,wf_nlm_ncbi,wf_pubmed_xml,wf_galehwrc,wf_csa_eric,wf_ebscoxml_c8h,wf_csa_vaids,wf_ebscoxml_s3h,wf_csa_mpba,wf_csa_toxline,wf_wok_all\">Databases</option>");
document.write("<option class=\"wfqscatoption\" value=\"wf_mdcpatient,wf_galehwrc,wf_medlineplus,wf_healthfinder,wf_merckhomeed\">Patient Education</option>");
document.write("<option class=\"wfqscatoption\" value=\"wf_galehwrc,wf_nccam,wf_naturaldatabase,wf_ibids\">Complementary</option>");
document.write("</select>");
document.write("<input class=\"wfqsbtn\" type=\"submit\" value=\"Search\" onclick=\"setForm();\" />");
document.write("</form>");
document.write("</div>");