window.status = "" var newwindow; function PopUpAddMainWindow(w) { // newwindow = window.open('https://www3.flabar.org/fbweb/welcome.nsf/TFBAddMain?OpenForm&login&URL='+document.location.href.split('//')[1].split('/')[0], 'AddressMaintenance', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=630,height=480'); // if you want to wait for the AddMaint to finish before continuing provide a non-empty parameter to PopUpAddMainWindow // if (w && w!="") { // window.status = "Please wait for the address change process to complete."; // WaitForClosing(); // } top.location.href="http://www3.flabar.org/divadm/me/mpaux.nsf/mm1?openform&login" } function WaitForClosing() { if (newwindow && newwindow.open && !newwindow.closed){ setTimeout("WaitForClosing()",1000); } else { ContinueProcessing() } } function ContinueProcessing() { // place code here if needed } function RefreshOpener() { if (document.location.href.split('URL=')[1] == document.location.href.split('//')[1].split('/')[0]){ // alert("OK to update opener window"); if ((self.opener) && (typeof(self.opener.name) != "unknown") && (self.opener.name=="ContentFrame") && (self.opener.document.location.href.indexOf("orders.nsf/Checkout") != -1) && document.forms[0].ThereHasBeenAChange.value=="YES" && window.opener.document.forms[0].ReloadWindow) { window.opener.document.forms[0].ReloadWindow.value = "Y"; } } else { // alert("not able to update opener window") } }