JS5009: Undefined identifier
The JScript compiler does not recognize an identifier. This may occur when a referenced variable does not exist or when a with block is used to access an object property that does not exist.
To correct this error
Declare the variable with a var statement (as in var x;).
Make sure that only valid object members are referenced in a with block.
Reference the object member explicitly instead of using the with statement.
See Also
Reference
Concepts
Scope of Variables and Constants