How does one prevent flabby/loose skin after weight loss?

I plan to go on a drastic exercise /diet regimen this summer in order to lose weight. However, I am afraid that I will be left with loose hanging flabby skin after the weight loss. Is there anything I can do to prevent this (other than cosmetic surgery to remove the skin)?