ENgetlinkindex function

Retrieve the index of a link