You attempted to use an identifier that the JScript compiler does not recognize. The undefined value is returned whenever you use:
To correct this error
Declare the variable with a var statement (as in var x;).
JScript Variables | Variable Scope
© 2001 Microsoft Corporation. All rights reserved.
Build: Topic Version 5.6.9309.1546