Stuff from "DOM Scripting, 2nd Edition," by Jeremy Keith