 In the original pilot, the title of the show was "Those Were The  Days". At the same time a song with the same name by  Mary Hopkin (qv) was a big hit. When a new pilot was developed,  CBS decided to change the title yet kept the theme song titled  "Those Were The Days".