CODE
<script language="javascript" type="text/javascript">
<!--
var arrYLinks = [
<MTEntries lastn="100">
"<$MTEntryTitle$>|<$MTEntryLink$>",
</MTEntries>
"" // dummy entry
];
// get rid of the last dummy entry.
arrYLinks.pop();
displayLinks(arrYLinks);
document.write('<p align="center"><input type="button" value="Random" title="Click here to jump to a random blog entry..." onclick="randomLink(arrYLinks,true);" /></p>');
// -->
</script>
<!--
var arrYLinks = [
<MTEntries lastn="100">
"<$MTEntryTitle$>|<$MTEntryLink$>",
</MTEntries>
"" // dummy entry
];
// get rid of the last dummy entry.
arrYLinks.pop();
displayLinks(arrYLinks);
document.write('<p align="center"><input type="button" value="Random" title="Click here to jump to a random blog entry..." onclick="randomLink(arrYLinks,true);" /></p>');
// -->
</script>
Please not the use of the dummy array entry in order to fake a last entry (without a comma) and later delete it using the array pop() method. Have fun...