Below is the code which opens the document.
`var strUrl = "$$OpenDominoDocument.xsp?documentId=" + @Word( action, "$", 1) + "&sec=actions