have a look at this thread…not exactly what is being discussed here but very close (and works very well too)