It doesn't look like it's global from the XPages API.
Is the script library inserted (Resources) in a custom control/do you call it from a custom control and the script is in the XPage?
To test if it's available, create a computed field with the value:
typeof showResult
If the computed field value (in the browser) is undefined, the function isn't available. It should show function.