function CookieCheck() {
  document.cookie='CookieEnabled=yes;';
  if (document.cookie.indexOf("CookieEnabled")<0) 
    window.location="/cookies";
  return true;
}
  
