Contracts?

For all of you out there that do freelance web design (or other freelance work) do you generally use written contracts? If so, what kind of contract? And where could I loearn how to write one?