I used that link to do exactly what this person asked, only the links within the post are out-dated. I did find the code on the siute listed, however, and it works perfectly.
Might be an idea to post correct link to code here,
so others may find it without trawling through
lots of dead links/blind alleys