OR - Are you using it on a page with another script? If so, the other script may have redefined ns6 or document.all. If so, some changes would need to be made to one or the other of the scripts or, one would need to be removed from the page.

If this is the problem, a link to your problem page would help verify it and suggest the best remedy.