function isCookiesEnabled() {
  // Andy 1/1/2001
  // need a more thorough test, if persistent cookies are enabled but
  // per-session cookies are disabled things get complicated because
  // the server has already set a webtrends cookie!
  var testString = "cookies=true";
  document.cookie = testString;

  // search for the cookie string we just set
  if (document.cookie.indexOf(testString) >= 0)
    return 1

  return 0 
}
       
 
