
var noExpires=new Date();noExpires.setTime(noExpires.getTime()+60*60*1000*24*60);var attributeSplit="\t";var itemSplit="\n";function CookieBuilder(name,maxItemNum,expires){var index;this.name=name;this.maxItemNum=maxItemNum;this.expires=expires;var value=getCookie(this.name);var s="";if(value!=null){var aId=value.split(itemSplit);if(aId.length>0){index=parseInt(aId[0]);if(isNaN(index))index=0;}
else{index=0;}
if(index>=maxItemNum)index=0;}
else{index=0;}
this.addItemToCookie=function(item){index=addItemToCookieByIndex(index,this.name,item,this.maxItemNum,this.expires);}
this.getCookie=function(){return getTrueCookie(this.name);}
this.getFullCookie=function(){return getCookie(this.name);}
this.deleteCookie=function(){index=0;return deleteCookie(this.name);}
this.getIndex=function(){return index;}}

