// called from html - closes popup then reopens with new args
function popWindow1() {
if (typeof(popupWin) == "object") popupWin.close()
windowOpener(url1, name1, args1)
}
// called from html - closes popup then reopens with new args
function popWindow2() {
if (typeof(popupWin) == "object") popupWin.close()
windowOpener(url2, name2, args2)
}
function windowOpener(url, name, args) { if (typeof(popupWin) != "object"){ popupWin = window.open(url,name,args); } else { if (!popupWin.closed){ popupWin.location.href = url;
} else { popupWin = window.open(url, name,args); } } popupWin.focus(); }
// called from html - closes popup then reopens with new args function popWindow1() { if (typeof(popupWin) == "object") popupWin.close() windowOpener(url1, name1, args1) }
// called from html - closes popup then reopens with new args function popWindow2() { if (typeof(popupWin) == "object") popupWin.close() windowOpener(url2, name2, args2) }