The problem may be that your using an Internet Explorer Browser. Internet Explorer only supports something called VBscript. Another thing that might be wrong is that your not ending each line of the javascript with a semicolon. If thats not it then maybe your using a wp like wordpad that has margins. If your using a word processor that has margins it will really mess up your script.
Notepad works the best, it doesnt have margins.
Explorer only supports something called VBscript.