Reaction functions for weakly bound systems