NEVER edit the code directly from the Edit All JavaScripts window. In my experience it's a sure-fire way of corrupting your file.
You should only use it for reference purposes, in case you want to search the entire code of the file for an incorrect field-name, for example.
Once you find where it's located go to that place directly and edit it from there.
.
Visit my custom-made PDF scripts website: http://try67.blogspot.com
Contact me personally: try6767@gmail.com