it seems that you don't have isinsubnet() UDF in your script thus it errors.

that's a quess as you didn't provide the error.
_________________________
!

download KiXnet