"Thank you" is, as far as I know, the only correct form in American English, but in Standard English "thank you" and "thankyou" are equally acceptable.
This is actually rather interesting because, nearly always, it is the American form that gets shortened, abbreviated, contracted...