<!--
	function setCookieValue(key, id, action) {
		if (action) {
			addCookieValue(key, id);
		} else {
			delCookieValue(key, id);
		}
	} 

	function addCookieValue(key, id) {
		var cookie = getCookie(key);
		setCookie(key, cookie + id +"-");
	} 

	function delCookieValue(key, id) {
		var cookie = new String(getCookie(key));
		var new_cookie = new String(); 
		offset=cookie.indexOf(id); 
		if(offset!=-1) { 
			var idList = cookie.split("-");
			for (i=0; i<idList.length-1; i++) {
				if (idList[i] != id) {
					new_cookie += idList[i] +"-";
				}
			}
			setCookie(key, new_cookie);
		}
	}

	function setCookie(key, value) {
		var expire = new Date();
		expire.setTime(expire.getTime() + 3600000*24*1);
		document.cookie = key +"="+ escape(value) + ";expires="+expire.toGMTString();
		return true;
	}

	function getCookie(key) { 
		var search=key+"="; 
		if(document.cookie.length>0) { 
			offset=document.cookie.indexOf(search); 
			if(offset!=-1) { 
				offset+=search.length; 
				end=document.cookie.indexOf(";",offset); 
				if(end==-1)end=document.cookie.length; 
				return unescape(document.cookie.substring(offset,end)); 
			} 
		} 
		return "";
	} 
//-->
