// REQUIRES UtilityMethods.js to be loaded by the page.

// Simply create a cookie and read it back.  If that's successful, then
// the browser can handle cookies.  If not, redirect to a page telling the
// user to turn cookie handling on.

var cookieName = "test_cookie";
var cookieValue = "test_value";

try
{
  SetCookie(cookieName, cookieValue, GetTodayPlusDaysAsDate(10));
  if (GetCookie(cookieName) == null)
    window.location.href = "TurnCookiesOn.html";
}
finally
{
  DeleteCookie(cookieName, cookieValue);
}
