I think this may be sort of what you need: adapt as required:
var popup;
var attr = "status=0,toolbar=0,menubar=0,directories=0,resizable=0,scrollbars=1";
function OpenWin(window) {
if (!popup || popup.closed) {
popup = window.open(window, '', attr);
}
popup.focus();
}