function newsms() { var wdh = 460; hgt = 280; var helpName = "sms.pl?func=newsms"; helpWin = open('' + helpName + '', '', 'width=' + wdh + ',height=' + hgt+',left=50,top=40,scrollbars=no,sizeable=yes'); } function selectallmsgs() { var oForm = top.FramePage.emailwin.document.mail; if(oForm != null) top.FramePage.emailwin.all(); } function deselectallmsgs() { var oForm = top.FramePage.emailwin.document.mail; if(oForm != null) top.FramePage.emailwin.uncheckall(); } function reply(type) { if(!document.ToolbarVars.ReplyID.value && !document.ToolbarVars.ReplyType.value) { alert('Пожалуйста, откройте письмо для ответа'); return; } open('compose.pl?func=reply&type=' + type + '&id=' + document.ToolbarVars.ReplyID.value + '&folder=' + escape(document.ToolbarVars.ReplyType.value) + '&cache=' + escape(top.FramePage.MenuBar.ToolbarVars.EmailUIDL.value) ,'','width=640,height=553,left=10,top=10,scrollbars=no,status=no,resizable=yes'); } function printemail() { if(!document.ToolbarVars.ReplyID.value && !document.ToolbarVars.ReplyType.value) { alert('Пожалуйста, откройте письмо для Печати'); return; } open('reademail.pl?print=1&id=' + document.ToolbarVars.ReplyID.value + '&folder=' + escape(document.ToolbarVars.ReplyType.value) + '&cache=' + escape(top.FramePage.MenuBar.ToolbarVars.EmailUIDL.value) ,'','width=640,height=535,left=10,top=10,scrollbars=yes,status=no,resizable=yes'); } function blocksender() { if(!document.ToolbarVars.EmailFrom.value) { alert('Пожалуйста, откройте письмо для блокировки'); return; } if(confirm('Вы уверены что хотите блокировать письма от:\n' + document.ToolbarVars.EmailFrom.value) ) { parent.emailwin.location.href='util.pl?func=info&spamadd=1&SpamEmail=' + document.ToolbarVars.EmailFrom.value; parent.emailwin.location.href='util.pl?func=spamsettings&Filter=1&Header=blacklist_from&Type=1&Value=' + document.ToolbarVars.EmailFrom.value + '&Add=Add&Refresh=1' } } function flagmessage(type) { if(!top.FramePage.emailwin.document.mail) { alert('Пожалуйста, выберите письмо для установки флажка'); return; } top.FramePage.emailwin.document.mail.Flag.value = type; top.FramePage.emailwin.document.mail.submit() } function helpwin(currFile) { var wdh = 700; hgt = 500; if(!currFile) currFile = 'file.html' helpWin = open('parse.pl?file=html/russian/help/filexp.html&FirstLoad=1&HelpFile=' + currFile + '', '', 'width=' + wdh + ',height=' + hgt + ',left=100,top=100,status=no,resizable=yes,scrollbars=yes'); } function questionwin(email, admin, name, lang) { var wdh = 360; hgt = 365; if(!admin) { var admin = ''; } helpWin = open('http://webbasedemail.com/question.ehtml?admin=' + admin + '&email=' + email + '&fullname=' + name + '&lang=' + lang + '', '', 'width=' + wdh + ',height=' + hgt + ',left=100,top=100,scrollbars=no'); } function aboutwin() { var wdh = 270; hgt = 290; helpWin = open('util.pl?func=about', '', 'width=' + wdh + ',height=' + hgt + ',left=100,top=100,scrollbars=no'); } function move_msg(Folder) { if(!Folder || Folder == top.FramePage.emailwin.mail.Folder.value) return; // Only delete the message, if we have messages toggled //top.FramePage.emailwin.mail.NewFolder.selectedIndex='Trash'; var chk; oForm = top.FramePage.emailwin.document.mail if(oForm) { len=oForm.elements.length; for (i=0;i{EmptyTrash} { --> top.opener.window.location.href='util.pl?func=logout'; top.opener.window.location.href='index.pl?func=logout'; top.window.close(); } else { // If the user has closed the original parent window, display the logout screen in // our window top.location.href='util.pl?func=logout'; top.location.href='index.pl?func=logout'; } }