// Copyright (c) 2002-2003 Openwave Systems Inc. All rights reserved. // // The copyright to the computer software herein is the property of // Openwave Systems Inc. The software may be used and/or copied only // with the written permission of Openwave Systems Inc. or in accordance // with the terms and conditions stipulated in the agreement/contract // under which the software has been supplied. // function open_locale_window(url) { lw = window.open(url, "msg_locale", 'toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=400,height=200'); lw.focus(); } var previewWin = null; function printPreview(url) { if (previewWin == null || previewWin.closed) { previewWin = window.open(url, "_blank", 'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=600,height=500'); } else { previewWin.document.location.replace(url); } previewWin.focus(); } function doSwitchFolder(update, fid, remoteAccountUID, resetAccount) { document.folderForm.action='/do/mail/folder/view?l=en-US&v=charter'; document.folderForm.fid.value=fid; document.folderForm.update.value=update if (remoteAccountUID != null) { document.folderForm.remoteAccountUID.value=remoteAccountUID; } if (resetAccount != null) { document.folderForm.resetAccount.value=resetAccount; } document.folderForm.submit(); } function detail(dlink) { window.open(dlink, '_blank', 'toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=550,height=420,screenX=125,screenY=30,left=125,top=30' ); } function open_raised_window (url,name) { var w = window.open (url, name); w.focus(); } function editSubject(msgId, oldsubj) { subj = prompt("Edit the subject of a voice or fax message." + "\n" + "Subject:" + "\n", oldsubj); if ((subj) && (subj != "") && (subj != oldsubj)) { document.TheForm.newSubjectMsgId.value = msgId; document.TheForm.newSubject.value = subj; document.TheForm.action = "/do/mail/message/changeSubject?l=en-US&v=charter"; document.TheForm.submit(); } } function addContact(email, url, msgId) { appendParam = "&msg="; newUrl = url + appendParam + encodeURIComponent(msgId); window.open(newUrl, 'addMultiple', 'toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=550,height=420,screenX=125,screenY=30,left=125,top=30' ); } function updateMultipleSenders(url, msgId) { appendParam = "&msgIds="; newUrl = url + appendParam + encodeURIComponent(msgId); window.open(newUrl, 'updateMultiple', 'toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=550,height=420,screenX=125,screenY=30,left=125,top=30' ); } function locale_form(locale) { document.localeform.flc.value = locale; document.localeform.submit(); return; } var insWin; // "do you want to install the plug-in" window defaultStatus=""; // This function is called on Netscape for the PC when asking user // about installing the print plug-in. The purpose of this function // is to insure that the "do you want to install the plug-in" window does // not get hidden behind the main browser window which seems to want to // yank itself into the foreground function setInWin() { if (insWin && !insWin.closed) { insWin.focus(); } else { self.onfocus = null; insWin = null; } }