I would not do ANYTHING until you have a written offer, and if there are any contingencies (background/credit check etc), wait until those clear. Then, if you need the money and can't afford a gap in empployment, do 2 weeks before your new start date. Regardless, you should always be prepared that they let you go before your preferred end date. GL!