function StartUp() { appCore = XPAppCoresManager.Find("MailAppCore"); if (appCore==null) { appCore = new MailCore(); if (appCore != null) { dump("MailAppCore was created!\n"); appCore.Init("MailAppCore"); appCore.MailCompleteCallback("MailSent();"); appCore.SetWindow(window); } } } function SendMailMessage() { dump("SendMailMessage!\n"); var appCore = XPAppCoresManager.Find("MailAppCore"); if (appCore != null) { dump("Mail was sent!\n"); appCore.SendMail(window.parent.frames[1].document.forms[0].elements[1].value, window.parent.frames[1].document.forms[0].elements[2].value, window.parent.frames[1].document.forms[0].elements[4].value); } } function MailSent() { // Clear Them window.parent.frames[1].document.forms[0].elements[1].value = ""; window.parent.frames[1].document.forms[0].elements[2].value = ""; window.parent.frames[1].document.forms[0].elements[4].value = ""; } Send GetMsg New Msg Reply Forward Print INBOX