You may want to just avoid using the View and use a SP instead. That would be much better than using a UDF inside the view.
-Karl
[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]