I was under the impression that any money withdrawn will automatically be added to next years allowable contribution amount.  If you withdraw $1000 in November 2012 it will be added to your 2013 contribution amount, so therefor you can contribute $5000+$1000 effective January 2013.
 

Please correct me if I`m wrong.....