var mboard = document.getElementById('mboard');
var original = mboard.innerHTML;
mboard.innerHTML = DirList('alfaerie');
for calling it, and writing the expanded Diagram definition back to where it originally came from (before the betza.js script uses it to create the interactive image). Which is supposed to be an HTML element with id="mboard". Are you sure this is OK in your case?
You could debug by using alert(list); to see what the variable 'list' contains after the attempt to fill it through the access to the URL. Or make sure there is a <p id="debug"></p> on the page, and call the routine Debug(...); (which is defined in the betza.js script) to add a line with text ... to that paragraph.
The function depends on the lines
for calling it, and writing the expanded Diagram definition back to where it originally came from (before the betza.js script uses it to create the interactive image). Which is supposed to be an HTML element with id="mboard". Are you sure this is OK in your case?
You could debug by using alert(list); to see what the variable 'list' contains after the attempt to fill it through the access to the URL. Or make sure there is a <p id="debug"></p> on the page, and call the routine Debug(...); (which is defined in the betza.js script) to add a line with text ... to that paragraph.