Cookie JavaScript class
cookie.write(name, value, expires, args)
Sets a cookie. Arguments are:
namevalueexpires- Optional Can be an int (number of days) or smart string eg.: 3 hours, 6 weeks, 1 year, etc.args- Optional, a JavaScript object with keys for any or all of: domain, host or (Boolean) secure
cookie.read(name)
Returns the cookie string; if the cookie is not set it returns null
cookie.unset(name)
Removes a cookie


