<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Detect blocked cookies" height="45" render_inline="never"/>
<Content type="html">
<![CDATA[
<script>
function read_cookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for (var i=0; i < ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}

document.cookie = "T=1";
if (!read_cookie("T")) {
  document.write("<font color=red>Third-party cookies are blocked</font>");
} else {
  document.write("Third-party cookies are not blocked");
}
</script>
]]>
</Content>
</Module>
