Check your original contract/agreement, which should include such requirement/info. You may want to read it carefully before you take the move to protect your own interest.
if you decided to leave the company, I believe you must have found your best interest elsewhere. As soon as the contract is sign on black and white, then you can submit your resignation letter along with your 2 weeks notice.