to be not all there
to be not right in the head
to be off your trolley to be off your rocker
to have ascrew loose
to be a basket case
to be as nutty as a fruitcase
to be nuts
to go bananas