You failed to say how much you lost - Your loss was what percentage of your total invested capital ?
What markets were you in when you had you loss ?
So without knowing the foregoing, it's not bad you lost money in the stock market and you're chances of getting it back in two weeks is slim top none.
There are five basic rules of investing/trading I learnt in grade school and used in high school and college and served me well for 40+ years on Wall Street.
1 -Know what you are doing, why you’re doing it and how to do it.
2 -Have a written sound trading/investment plan with rules that will not only help you but more importantly protect you, mostly from yourself. And have the discipline to follow such a plan. Never let a loss get greater than 10%, follow the trend and always take what the market is offering for the market is always right.
3 - Sufficient trading/investment capital. Use your own money, there’s no need to go into debt so that you can trade/invest. If you use margins maintain the account no less than 45%.
4 - A written money management program in place. Remember never invest 100% of your capital into any one security and never have 100% of your capital invested.
5 – An understanding of the rules & regulations of the industry.
Accomplish these five items and you'll be ready to safely re-start
from The Street