The Server object has the following property:
ScriptTimeout specifies the maximum amount of time a script can run before it is terminated.