For enabling and disabling JavaScript you need an add-on for Mozilla Firefox called quick java. You can download this free add-on from addons.mozilla.org or just Google for it.
After installation you will be able to see two buttons near the progress bar, for enabling and disabling JavaScript and java. Just click on the buttons to disable and enable JavaScript or java. There will be separate buttons for java and JavaScript.