The window is disabled if script isn't valid in the current context - you need to have an object selected, and an event selected for that object, for the editor to be enabled.
For example, drop a Button object onto the form, select "click" from the drop-down list, and the script editor should let you edit the script code for the click event.
--
SteveX
Adobe Systems