Klaus, I have some code to do this, but its been released to me under licence and therefore I am not at liberty to release it directly. If you contact me by email I'll point you towards the people who wrote the source code and you can approach them. HTH Peter