Hi i'm looking for a script that will hyperlink 2 numbers in an epub.

My Indesign5.5 Mac book files contain about 500 superscript footnotes per document, of 10 chapters each, with repeating numbers per chapter beginning at 1. I need the footnote numbers to link to their endnote reference.

I can isolate the repeated numbers in each chapter with a separate style in order to target them, but in need to link them via a script to their other half.

Is there a script that can do this, or can someone write me one?.

Thank you.