Homosexual thoughts

Q: I have been going through these perverted thoughts all the time (homosexual) and I know it is a grave sin. I don't indulge into any such actions but stare at good looking men with desires and later I am filled with regret and grave depression. What should I do to get rid of it?

Iddat after khula

Q: I am about to get khula from my husband. We have been living separate for the past two years and we havn't met for the last six months. How many days of iddah is applied on me? I am a working woman, do I need to quit my job?