My first paragraph.
Never call document.write after the document has finished loading. It will overwrite the whole document.