document.forms['formName'].elements['formElement'] is the clean and recommended way to do it. I have corrected all of this.
onload of the page instead.
Beside that, I have also moved the script to an external file, being referenced by
<script src="filename.js" ></script> – this way you can use the same script for both pop-up and normal comments.
h3. Instructions for use
# “Download the script”:http://virtuelvis.com/download/comments.js.
# For convenience, I have created the script as an index template. Should you choose to use it otherwise, replace
<$MTBlogHost$> with your blog’s domain name.
# Right after the comment form, there is a script snippet. Remove this.
# (Optional) Your comment form has an
onsubmit-event. Change this to:
onsubmit="if (this.elements['bakecookie'].checked) rememberMe(this);"
Really, that’s all. Should you have any questions, or suggestions, feel free to ask.