If the execution time of the script exceeds the value of curScript.timeout an error Err_Timeout is thrown. This eliminates the risk of possible endless loops in the code. To avoid timeout at all set timeout to 0 (zero). Note, however, that this removes protection from possible infinite loops.
The following code exits with error Err_Timeout after 1 minute:
curScript.timeout = 1
i = 1
The default value for timeout is defined by application variable TIMEOUT and default value for this variable is 2 minutes.