var support_filter = "+more:support";
function setSearchCookie(name,value) {
	var exp = new Date();
   	exp.setDate(exp.getDate()+90);
    if(name === 'pb_SearchHistory'){
    	if(GetCookie("show_SearchHistory") != 0 ){
        	value = value.indexOf("|")?value.replace(/\|/g,"\\"):value;
            var c = GetCookie(name);
           	if(value != null) {
             	if(c){
                  	var c_arr = c.split("|");
                    if(c_arr.length >= 9){
                      	c_arr.splice(9);
                        c = c_arr.join("|");
                    }
                    if(("|"+c+"|").indexOf("|"+value+"|")<0){
                        document.cookie = name + "=" + value + "|" + c + ";expires="+exp.toGMTString() + ";domain=pb.com;path=/";
                    }
              	}else{
                    document.cookie = name + "=" + value + ";expires="+exp.toGMTString() + ";domain=pb.com;path=/";
                }
          	}
       	}
   	}else if(name === "show_SearchHistory"){
      	document.cookie = name + "=" + value + ";expires="+exp.toGMTString();
    }
}

