OK, I can write to the end of a list, but I don't know how to write into the middle of a list. Any Ideas. Here's some code similar to what I already have:
insertBefore() and insertAfter() functions can be used for this purpose
How handy, thank-you.