Thanks for all the suggestions, I am always amazed at the variety of different ways there seems to be for doing things. I will be seeing which I can implement, this is the first bit of JavaScript I have done before and will see which works best for me. Thanks Lisa.