//legacy functions; keep 4 a while
var menuWindow = null;
function open_map2(selfname,name,w,h,fresize) {// melC --- jan-17-2001 ---
if (navigator.userAgent.indexOf("Mac") != -1)
  what0="menubar=yes,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable="+fresize+",copyhistory=no,width=" +w+ ",height=" +h;
else
  what0="menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable="+fresize+",copyhistory=no,width=" +w+ ",height=" +h;
menuWindow = window.open(name,selfname,what0);
}//end map2
function open_regWin(pselfname, pid, pname) {
    encoded = pname.replace(/&/g, '%26');
    //test: allow multiple folder levels and don't use relative paths for WS
    //
    var loca = window.location.toString().toLowerCase();
    var subDir = "/magazinusa_v2";
    if (loca.indexOf('magazinusa.com') >= 0) {
        subDir = "";
    }
    pcallwhat = "/_redir/goto.aspx?id=" + pid + "&goto=" + encoded + "";
    open_regWin1('', pcallwhat, '670', '550', 'yes');
} //end regWin

function open_regWin1(selfname, name, w, h, fresize) {
    if (navigator.userAgent.indexOf("Mac") != -1)
        what0 = "menubar=yes,toolbar=yes,location=yes,directories=no,status=yes,scrollbars=yes,resizable=" + fresize + ",copyhistory=yes,width=" + w + ",height=" + h;
    else {
        var WinWidth = w;
        var WinHeight = h;
        var PosX = 20;
        var PosY = 10;
        try {
            if (parseInt(navigator.appVersion) > 3)
                var scW = screen.width;
            var scH = screen.height;
            if (scW > 1200) { WinWidth = 950; PosX = scW - WinWidth - 50; }
            else if (scW > 950) { WinWidth = 850; PosX = scW - WinWidth - 50; }

            if (scH > 950) WinHeight = 650;
            else if (scH > 700) WinHeight = 530;

        } catch (e) { }

        what0 = "menubar=yes,toolbar=yes,location=yes,directories=no,status=yes,scrollbars=yes,resizable=" + fresize + ",copyhistory=yes,width=" + WinWidth + ",height=" + WinHeight + ",screenX=" + PosX + ",screenY=" + PosY + ",top=" + PosY + ",left=" + PosX + "";
    }

    regWinPop = window.open(name, selfname, what0);
    //regWinPop.opener.top.name = "parentmagazineUSAcom";
    regWinPop.focus();
} //end regWin1
menuWindow = null;

