IE tells me that it expects an identifier right when ‘theTimes’ begins. what do i do to fix this?
function createCookie('theTimes','i will make the value later',7)
{
if (days)
{
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}