// JavaScript functions to easily create, read and modify cookies on the client side /*-------------------------------------------------------------------------------------------- YACS (Yet Another Cookie Script) version 1.01 - by MD April 2001 Use, distribution and modification allowed under the terms of the GNU General Public Licence Most recent version: http://www.welkweb.com/scripts/js/yacs --------------------------------------------------------------------------------------------*/ obj=''; adder=0; defaults=""; dateObj=new Date(); milsec=dateObj.getTime(); expiringDate=dateObj.toUTCString(); days=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'); months=new Array('January','February','March','April','May','June','July','August','September','October','November','December'); function Cookie(name) { this.name=name; this.value=""; this.domain=""; this.path="/"; this.expire=""; this.exst=0; this.values=new Array(); this.defaults=""; this.cookieDate=""; this.script=""; this.countHours=""; this.set=set; this.get=get; this.del=del; this.parseValue=parseValue; this.exist=exist; this.get() } function set() { LABEL_1: for(_t_=0;_t_'); if (splitMulti.length>1) { if (ob==1) {splitMulti[1]=castType(splitMulti[1]);}; if (parseInt(splitMulti[1])==splitMulti[1]) {splitMulti[1]=parseInt(splitMulti[1])} this.values[splitMulti[0]]=splitMulti[1]; } else { if (ob==1) { theValue=castType(theValue)}; this.values=new Array(); this.value=theValue; return; } } this.value=""; obj=this.values; for (var i in obj) { if (this.values[i]!="undef" && this.values[i]!="UNDEF") { this.value+=i+"->"+this.values[i]+",";} } this.value=this.value.substr(0,this.value.length-1); } function del() { this.set('expire=/undef'); } function accept() { _acc=new Cookie("_accept_"); _acc.set("value=/scay"); _acc.get(); if(_acc.value=="scay") { return 1 } else { return 0 } } function exist() {return this.exst}