[code:1:9f31]<******> <!-- // Copyright (c) 1996-1997 Tomer Shiran. All rights reserved. // Permission given to use the ****** provided that this notice remains as is. // Additional ******s can be found at [url=http://www.javadepo.com]http://www.javadepo.com[/url] // Boolean variable specified if alert should be displayed if cookie exceeds 4KB var caution = false // name - name of the cookie // value - value of the cookie // [expires] - expiration date of the cookie (defaults to end of current session) // [path] - path for which the cookie is valid (defaults to path of calling document) // [domain] - domain for which the cookie is valid (defaults to domain of calling document) // [secure] - Boolean value indicating if the cookie transmission requires a secure transmission // * an argument defaults when it is assigned null as a placeholder // * a null placeholder is not required for trailing omitted arguments ******** setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + *******(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "") if (!caution || (name + "=" + *******(value)).length <= 4000) document