How often should you change your mattress on your bed?

I read somewhere that you should change your mattress once a year.

Is this true, how frequently should you get a new mattress for your bed?