If I set up HSA through my employer, what happens if I switch jobs?

You can keep the money in an HSA account even after you leave that job, similar to a 401(k). But you will get stuck with a 10% (20% beginning in 2011) penalty -- plus an income-tax bill -- if you use any of the money for nonmedical expenses before age 65.