Thank You, Ric, that worked.
However, i had to add a 'stop', because an endless number of empty footnotes were found.
function processFootnote (fn, doc) { // find citations in footnotes var fnText = ""; var fnPara = fn.FirstPgf; while (fn.ObjectValid()) { fnText = (GetText(fnPara)); if (fnText == ""){ return; } // <----------------- prevent runaway alert (fnText); // the text of the footnote var citations = GetTempCitations (fnText); var nCitations = citations.length; alert (nCitations + " Citations = " + citations); fnPara = fnPara.NextPgfInFlow; } } //--------------------------------------------------------------------------