Get the XPath from above, then use with the below script:
See clickOnLink(document.kmvar.xPath);
For more information, see the wiki Searching the Forum for Answers section.