I get JavaScript error message

Hello all. For a calendar picker, the class XoopsFormTextDateSelect is being used in a custom module development. 2.0.18 is My Xoops version.
I get the JavaScript error message: xoopsGetElementById is not defined.
How can I solve this problem?
