just be careful of the tax implications involved and whether you plan on staying at your current job.
If you plan on staying at your job for an extended period of time then you should have no problem. However, if you leave and can't pay the money back to the plan then the govn't would consider that income to you and you would have to report it at the end of the year. Since taxes aren't taken out of a 401K loan, you would have to pay taxes on the entire amount of the loan.
I took a loan out of my 401K to pay off some of my bills a couple of years ago and my job screwed me. I didn't have the money to pay back the loan and had to take it as income in that year. If you can avoid taking out of your 410K I would highly recommend it. Even though you are paying yourself back, you are losing interest on the amount that you borrowed.
Good luck you you with whatever you decide. I know how long of a road it can be to build yourself back up. I'm currently going down that road myself and I think I can finally see the end of it.