//*********************************************
// (c)2000-2002 magazinUSA.com  
// legacy functions; keep them for a while around     
//*********************************************

var menuWindow = null;

function open_regWin(pselfname, pid, pname) {
    encoded = pname.replace(/&/g, '%26');
    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;


