I am also looking for a similar function. It would be great if someone could explain how it can be done.