Please don't post on
two separate forums. You will be darting between both and getting more confused about a suitable solution to your problem - particularly if both threads take different approaches. Admittedly there are common ideas in both, but you're best to stick with one and run with that.
_______
Code is untested unless explicitly stated
mlh2003