Index: branches/RC/core/admin_templates/js/script.js =================================================================== diff -u -N -r10005 -r10116 --- branches/RC/core/admin_templates/js/script.js (.../script.js) (revision 10005) +++ branches/RC/core/admin_templates/js/script.js (.../script.js) (revision 10116) @@ -1168,22 +1168,25 @@ function setCookie($Name, $Value) { // set cookie - if(getCookie($Name) != $Value) - { - document.cookie = $Name+'='+escape($Value)+'; path=' + $base_path + '/'; + if (getCookie($Name) != $Value) { + document.cookie = $Name+'='+escape($Value); } } function getCookie($Name) { // get cookie + var $cookieString = document.cookie; var $index = $cookieString.indexOf($Name+'='); - if($index == -1) return null; + if ($index == -1) { + return null; + } $index = $cookieString.indexOf('=',$index)+1; var $endstr = $cookieString.indexOf(';',$index); if($endstr == -1) $endstr = $cookieString.length; + return unescape($cookieString.substring($index, $endstr)); }