How Long Until Eggs Go Bad?

It is said that eggs can last up to 5 weeks, as long as they are refrigerated properly. If you shake an egg and you hear liquid gurgling then the egg has gone bad.