подскажите, почему не работает set cooky, вроде же всё правильно написал
var cookieCount = getCookie('fav_cnt');
var cookieImages = getCookie('fav_images');
if(cookieCount != undefined && cookieImages != undefined && cookieCount > 0 && cookieImages.length > 0)
{
var images = cookieImages.split('***');
for(var i in images)
{
if(images[i] == undefined || images[i].length == 0)
continue;
var param = images[i].toString().split('**');
var imgId = param[0];
var imgSrc = param[1];
var imgHref = param[2];
if(!imgId || !imgSrc || !imgHref)
continue;
favorites.Add(imgId, imgSrc, imgHref);
}
}
window.favorites = favorites;
document.write('<div id="favorite_div" style="display: none; margin-bottom: 25px; width: 245px; background: #E7EAE0; border: 1px solid #D7D9CF;">\
<div style="border: 1px solid #F7F8F4;">\
<div style="width: 232px; margin: 0px 0px; text-align: left;">\
<h2 style="margin: 13px 0px 13px 15px;">Избранное</h2>\
<div id="favorite_content"></div>\
<div style="clear: both;"></div>\
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">\
<tr>\
<td style="width: 77px; text-align: center;" valign="top"><div align="center"><div style="width: 13px; height: 16px; background: url(/templates/fbrushtemplate/favorite_sprite.png) 0px 0px no-repeat; margin-bottom: 5px;"></div></div><a href="#" class="favoriteRemoveAll" style="font-size: 12px;">Удалить<br />все</a></td>\
<td style="text-align: center;" valign="top"><div align="center"><div style="width: 13px; height: 16px; background: url(/templates/fbrushtemplate/favorite_sprite.png) -14px 0px no-repeat; margin-bottom: 5px;"></div></div><a href="/templates/fbrushtemplate/favorite_actions.php?action=2" style="font-size: 12px;">Создать<br />архив</a></td>\
<td style="width: 77px; text-align: center;" valign="top"><div align="center"><div style="width: 16px; height: 16px; background: url(/templates/fbrushtemplate/favorite_sprite.png) -28px 0px no-repeat; margin-bottom: 5px;"></div></div><a href="/favorite_sendmail.php" rel="rokbox[370 100]" style="font-size: 12px;">Отправить<br />на почту</a></td>\
</tr>\
</table>\
<div style="height: 10px;"></div>\
</div>\
</div>\
</div>');