/***************************************************************************** * ITSCookieLibrary.js * ***************************************************************************** * Release 4.0 (Lotus Domino 5/6) * * Created by Dwight Egerton * * Last modified 26 January 2003 by Dwight Egerton * * * * Description: * * Code for multi-browser cookie for all Web applications * * * ***************************************************************************** * IT Software Series * * (c)Copyright 2002, Xybanetx Consulting * ***************************************************************************** ***************************************************************************** * Browser Compatibility Check * *****************************************************************************/ function cookieOBJ(name,hours,path,domain,secure){ this.$document=document; this.$name=name; if (hours) this.$expiration=new Date((new Date()).getTime()+hours*3600000); else this.$expiration=null; if(path) this.$path=path; else this.$path=null; if (domain) this.$domain=domain; else this.$domain=null; if (secure) this.$secure=true; else this.$secure=false; } cookieOBJ.prototype.load=function(){ var allcookies=this.$document.cookie; if(allcookies=='') return false; var start=allcookies.indexOf(this.$name+'='); if (start==-1) return false; start+=this.$name.length + 1; var end=allcookies.indexOf(';',start); if (end==-1) end=allcookies.length; var cookieval=allcookies.substring(start,end); var a = cookieval.split('&'); for(i=0;i