I would create a function once and for all.
attach to Schema = dbo
repeat for several Return DataTypes and each database you have
now you can search and replace
DLOOKUP(
with
[dbo].[DLOOKUP](
tweaking at a minimum
CREATE FUNCTION [dbo].[DLOOKUP_INT]...