Check out the Javascript code for the Manage Attachment button code in the New thread / Reply page in this forum