1 function createCookie(name,value,days) {
2 var path = RT.Config.WebPath ? RT.Config.WebPath : "/";
6 date.setTime(date.getTime()+(days*24*60*60*1000));
7 var expires = "; expires="+date.toGMTString();
12 document.cookie = name+"="+value+expires+"; path="+path;
15 function loadTitleBoxStates() {
16 var cookies = document.cookie.split(/;\s*/);
17 var len = cookies.length;
19 for (var i = 0; i < len; i++) {
20 var c = cookies[i].split('=');
22 if (c[0].match(/^TitleBox--/)) {
23 var e = document.getElementById(c[0]);
25 var e2 = e.parentNode;
28 set_rollup_state(e,e2,'shown');
31 set_rollup_state(e,e2,'hidden');