Hi all

I created a page which has a button (template).
When user clicks on it it should select one word document randomly from list of word documents.

Can anybody tell me how to write javascript function for this.