I see what you mean but the only way to show the full inter-related code would be to post the entire file which I am not allowed to do.

Ah well, thanks to all who tried to help.