The various ‘Script’ controls do not have a client-side model that you can reference by id.
If you want to re-use javascript functions, you would want to define those functions in either an external javascript file or in the value of a ‘Script Block’ control and just reference those shared functions by name wherever they are needed.
#webMethods#webMethods-BPMS#MWS-CAF-Task-Engine