if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[LESS_Mojodi]') and xtype in (N'FN', N'IF', N'TF'))
drop function [dbo].[LESS_Mojodi]

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[LESS_Mojodi_Drug]') and xtype in (N'FN', N'IF', N'TF'))
drop function [dbo].[LESS_Mojodi_Drug]