Well, I just took the code from the first post and plugged it into two notepad files in a folder on my desktop. It didn't work.
I added the 's' to type="text/javacript", and it worked after that.
I'd say markr hit it on the nose. Good eyes on you, markr.