Thanks for that, Thats excatly what i wanted (the second one), Only problem is while it works perfectly by default security settings on PCs here block all code and I've been told im not to instruct users to turn down there security settings.
Back to the drawing board I guess.