Does passing wind from the anus affect ritual purity?
Ablution is nullified by the passing of wind from the anus, but washing the anus is not required as wind leaves no impurity.
Is it permissible to offer Tahajjud prayer after Witr prayer?
It is permissible to offer voluntary prayer after Witr (An odd number prayer performed between Isha and Fajr) prayer. However, it is desirable that the night prayer be ended with Witr. Therefore, it is desirable for one, who thought that he was most probably going to wake up at night in order to offer Tahajjud, to offer Witr after it, but one, who fears that he might not wake up, should offer Witr before going to bed.
Is it a condition that a woman should untie her locks while making Ghusl (ritual bath)?
Ghusl from Janabah (ritual impurity), or menstruation obligates that water reaches the roots of the hair in order for the Ghusl to be valid, but if it doesn`t, then hair locks must be untied for water to reach them, and for Ghusl to become valid.
What is the ruling on reciting verses from the Qur'an over water, drinking it, and using it to break magic spells, heal illnesses, or burn jinn?
There is no harm on reciting verses of the Holy Qur'an over water and use it for cure. And Allah Knows Best.