Accessing attachment in Rich Text Field using Javascript

A document contains a rich text field having a attachment.

I have to display that attachment in a LINK form on a web page & hide that attachment in a rich text field.

on click the attachment should get downloaded on client machine. Is there any way in Javascript to do it.

Please help me !

Thanks in Advance

Subject: accessing attachment in Rich Text Field using Javascript

It is documented in the Designer Help how to access attachments in web applications:

http://www.mydomain.com/path/db.nsf/view/docid/$FILE/nameofattachment.doc?OpenElement

Search in help for “URL commands for opening attachments, images, files and OLE objects”

hth