javascript cookie problem
hejhvad er der galt i nedenstående, min kode giver scriptfejl ved definitionen af min cookie
<script type="text/javascript">
<!--
function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == 'block')
e.style.display = 'none';
SetCookie(location,+id+,0);
else
e.style.display = 'block';
SetCookie(location,+id+,1);
}
function SetCookie(cookieName,cookieValue,nDays) {
var today = new Date();
var expire = new Date();
if (nDays==null || nDays==0) nDays=1;
expire.setTime(today.getTime() + 3600000*24*nDays);
document.cookie = cookieName+"="+escape(cookieValue)
+ ";expires="+expire.toGMTString();
}
//-->
</script>