function ....() --undock the combat log SetChatWindowDocked(2,0) --do some cool stuff here some stuff in here end of the function