	
	function getCookieData(labelName){
		var labelLen = labelName.length;
		
		var cookieData = document.cookie;
		var cLen = cookieData.length;
		var i = 0;
		var cEnd;
		
		while (i < cLen){
			var j = i + labelLen;
			if(cookieData.substring(i,j) == labelName){
				cEnd = cookieData.indexOf(";",j)
				if (cEnd == -1){
					cEnd = cookieData.length;	
				}
				return unescape(cookieData.substring(j+1,cEnd))
			}
			i++;
		}
		return "";
			
	}
	
	function setCookieData(cookieName, cookieValue){
		document.cookie = cookieName + "=" + escape(cookieValue) + ";";
	}
	
	/*
	// Retrieve the value of the cookie with the specified name.
	function getCookieData(sName){
	  	// cookies are separated by semicolons
		var aCookie = document.cookie.split("; ");
	  	for (var i=0; i < aCookie.length; i++){
	   	// a name/value pair (a crumb) is separated by an equal sign
	  		var aCrumb = aCookie[i].split("=");
	  		if (sName == aCrumb[0]) 
				return unescape(aCrumb[1]);
	  	}
	
	  	// a cookie with the requested name does not exist
	  	return null;
	}
	*/
