The thing about it is that it always works just fine the first time you try it (with a new browser session). After that it will randomly work correctly and incorrectly. I have a hunch that it has something to do with some session variable, but no way to say which one, or any idea where to start trying to find out! :-(