Project

General

Profile

Download (489 Bytes) Statistics
| Branch: | Revision:
1
dojo.provide('util.cookie');
2

    
3
(function(){
4

    
5
function get(c_name){
6
    var c_start, c_end;
7
    if (document.cookie.length>0){
8
	c_start=document.cookie.indexOf(c_name + "=");
9
	if (c_start!=-1){
10
	    c_start=c_start + c_name.length+1;
11
	    c_end=document.cookie.indexOf(";",c_start);
12
	    if (c_end==-1){ 
13
                c_end=document.cookie.length;
14
            }
15
	    return unescape(document.cookie.substring(c_start,c_end));
16
	}
17
    }
18
    return "";
19
};
20

    
21
window.cookie = {get:get};
22

    
23
})();
(1-1/3)