// Little helper script to set a cookie indicating that JavaScript is enabled.
// This script is loaded in the simple search page. Thus, when a user goes
// to the advanced search page a check for the cookie set here reveals the
// browser setting to Zope.
// Note: If both JavaScript and cookies are disabled all bets are off.

var nextyear = new Date();
nextyear.setFullYear(nextyear.getFullYear() + 1);
document.cookie = "jsEnabled=true" + document.lastModified +
                  "; expires=" + nextyear.toGMTString();
