//---------------------------------------------------------------------|| // FUNCTION: SetCookie || // PARAMETERS: name, value, expiration date, path, domain, security || // RETURNS: Null || // PURPOSE: Stores a cookie in the users browser || //---------------------------------------------------------------------|| function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");