Hi Spanner(weird name ;-));
I think you will find answer for your question in
here.
Share with your colleague also if you want.
Updated solution upon your comments:
Refer this
link[
^] where you could find a code to implement the requirement and see what is coming as request ;-)
Am going to start now......
Hope this helps you a bit.
Regards,
RK