In IE, you can see if cookies are enabled with this:
but in NN, as far as I know, there is no way to check to see if cookies are enabled. What document.cookies would do is see if a cookie is there. I guess you could create a cookie, and then try to access it, and if you can't, then you know cookies aren't enabled.
i decided to go the "keep as much as possible server side" technique
i rewrote the code chunk to do the "Testing of a valid cookie" .. which isnt that easy in my case, since i'm dealing with multiple webservers for the authentication bit which is what i require the cookies for in the first place