Execute in Script. Is it possible to ......?

Is it possible to allow execute to call a public function defined in the form ?

i.e. I have a form that has a standard validation function defined. Authorised users can enter some script in to a field which will be executed under certain circumstances. I know public variables are available to the script, but are public functions ?

regards

AC

Subject: Why ask here instead of just trying it?