Javascript cookie issue, not working in IE8
<p>My code works fine in IE9, chrome and firefox. But not in IE8. The error message is "object not supported" In IE8 it complains on this row:</p>

<pre><code>flow = getCookiePipeFlow(); 
</code></pre>

<p>This is the function (which i copied from some tutorial):</p>

<pre><code>function getCookiePipeFlow()
{
  var i,x,y,ARRcookies=document.cookie.split(";");
  for (i=0;i&lt;ARRcookies.length;i++)
  {
    x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
    y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);

  x=x.replace(/^\s+|\s+$/g,"");
  if (x=="pipeFlow")
    {
    return unescape(y);
    }
  }
}
</code></pre>

<p>Any ideas?</p>
