Yahoo - multiple accounts

I noticed the Yahoo script does not switch account correctly anymore, so took it upon me to solve it.

I will forward the solution to admin (tobwithu).