Hi
I've got a simple PHP script running on this website http://www.balthazarcapital.co.uk which displays a message prompting users to accept the cookie policy or read further. If they accept cookies the message goes away.
It all works in ie9, firefox and chrome but not in ie8, any help would be appreciated.

Thanks
Neil

here's the php

<?php

if(!isset($_COOKIE["eucookie"]))
{ ?>
<div style="background:#2A2A2A; left:0px; top:0px; right:0px; padding:10px;">
<div style="padding:8px;">
<div style="width:900px; margin:0px auto; font-size:12px; height:50px;">

<!--Title-->
<h2 class="cookieheader" style="color:#FFF; font-weight:normal; float:left; text-align:left; margin-left:100px;">
<span style="font-size:18px;">Cookies at</span> <br />
Balthazar Capital </h2>

<!--Main Text-->
<p class="maintext" style="float:left; width:420px; margin-left:20px; text-align:left; line-height:150%;">
We use cookies at Balthazar Capital to ensure that you get the best user experience. To continue using our site, please allow cookies, otherwise, please find out more information on how to block cookies.
</p>

<p style="float:left; width:185px; margin-left:20px; text-align:left;">

<!--Replace URL with the URL of the page you are placing this code on-->
<a style="color:#FFF;" href="<?php $basename = basename($_SERVER['REQUEST_URI']);?>" class="cookiebuttons" onClick="SetCookie('eucookie','eucookie','time()+31556926')"><strong>&gt; Allow Cookies</strong></a><br />

<!--Replace CookiePolicy with the URL of your cookie policy-->
<a style="color:#999;" href="privacy-policy.php">&gt; More Information</a></p>
</div>
</div>
</div>

<?php
}
?>


and a little bit of javascript

// JavaScript Document
function SetCookie(c_name,value,expiredays)
{
var exdate=new Date()
exdate.setDate(exdate.getDate()+expiredays)
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
}