The problem may be that you're using a link element. On your link, what is the url set to on the properties?
If you do the same with a button (making sure it's set to be a normal button and not a submit one) instead of a link, does this change things?
I only suggest this as I'm wondering if it processes your onclick code (with no update as it should), and then it tries to run the normal link element functionality which may be redirecting you to the same page; giving the impression of a refresh.
This is a complete shot in the dark as I haven't had time to copy your code and try it out
Feedback response number WEBB7XYML4 created by Neemesh Patel on 11/20/2009