Where is the function located? In the <body>, in the <head>, stored externally? Also, it would help if you included a URL showing the problem in its context. Harry