I'm sure you'll pull though, but I'm posting this just in case...
If you do find yourself close to a point where you're making plans to end it, do me a favor and talk to anybody (but preferably a professional) first.
At that point there is not much to lose.
What has helped me stay alive is to make a "rule" in my head that I tell myself I can't break.
For example: "I can't kill myself because if I do I will cause my (brother / mother / wife / etc...) as much pain as I'm feeling now. I am not alive for myself, I am alive for them.".
Now I do realize that the hurt that you may be in probably exceeds the ability to care about those people for the moment, but that's why making it a rule is needed.
I'm not saying this is healthy, but it's effective (at least it has been for me).
I second this advice. The same thing has helped me through some very dark times in my life.
Jay: You have many friends here, even those of us who do not regularly interact directly with you.