Microsoft VBScript runtime error '800a01a8'

Object required: 'Application(...)'

/d2w/Includes/Permission/fnPermissionDocumentExists.asp, line 27