It is well known that a function f : R -> R is continuous if and only if the image of every compact set under f is compact and the image of every connected set is connected. We show that there ex