ok.. thanks mark for the code.. but it does *way* more stuff than i need - its 69k and i dont really want a huge 69k class in my already huge project
if anyone who knows quite a bit of API (its complicated) wants to find the relevant bits out of the class, email me and ill send you it.
[email protected]