CT_MailSubjectEditBox:SetFocus();
this:HighlightText(0, 0);
CT_Mail_AutoComplete();
CT_MailSubjectEditBox:SetFocus();
CT_MailNameEditBox:ClearFocus();
CT_Mail_CanSend();
SmallMoneyFrame_OnLoad();
MoneyFrame_SetType("STATIC");
MoneyFrame_Update("CT_MailCostMoneyFrame", GetSendMailPrice());
CT_MailNameEditBox:SetFocus();
CT_MailSubjectEditBox:ClearFocus();
CT_MailNameEditBox:SetFocus();
CT_MailFrame.num = 0;
this:RegisterEvent("MAIL_CLOSED");
CT_Mail_ClearItems();
CT_MailGlobalFrame.total = 0;
CT_MailGlobalFrame.queue = { };
SmallMoneyFrame_OnLoad();
MoneyFrame_SetType("STATIC");
MoneyFrame_Update(this:GetName(), GetSendMailPrice());
getglobal(this:GetName() .. "InfoItems"):SetText(CT_MailFrame.num .. " " .. CT_MAIL_ITEMS);
MoneyFrame_Update(this:GetName() .. "MoneyFrame", CT_MailFrame.num*GetSendMailPrice());
PlaySound("UChatScrollButton");
PlaySound("UChatScrollButton");
CT_Mail_ProcessQueue(arg1);
this.queue = { };
this.update = 0;
this.total = 0;
this.sendmail = 0;
this.latency = 2.25;
this:RegisterEvent("MAIL_SEND_INFO_UPDATE");
this:RegisterEvent("MAIL_SEND_SUCCESS");
CT_Mail_OnEvent(event);
this:SetOwner(WorldFrame, "ANCHOR_NONE");