UPDATE
: There is a newer "up-to-date" version of this tutorial that can be found here:
Add and Remove Elements with JavaScript (reprise)
.
Add Some Elements