Take a look at the code here...

http://www.geocities.com/SiliconVall...45/vb/025.html