Wei,
I think rudi gave me some code for that.
Its in one of my threads. Dunno where though.