diff --git a/common/js/common.js b/common/js/common.js index 88c2eca4a..7713ae897 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -902,6 +902,11 @@ function setCookie(name, value, expire, path) { document.cookie = s_cookie; } +function getCookie(name) { + var match = document.cookie.match(new RegExp(name+'=(.*?);')); + if(match) return unescape(match[1]); +} + function is_def(v) { return (typeof(v)!='undefined'); }