simple I think:
Quest Log Frame OnClick:
if QuestLogFrame:IsShown() then
QuestLogFrame:Hide()
else
QuestLogFrame:Show
end
Game Menu Frame OnClick:
if GameMenuFrame:IsShown() then
GameMenuFrame:Hide()
else
GameMenuFrame:Show
end
Friends Frame OnClick:
if FriendsFrame:IsShown() then
FriendsFrame:Hide()
else
FriendsFrame:Show
end
These are untested but they should do the trick. BTW you dont have to know a whole scripting language to do it I sure as hell don't I just dug through a ton of other peoples things to learn the basics as well as used wowwiki.com as a source to look up frame names, api, and events as well as other such nonsense