//*********************************************
//**** (c)2000-2002 magazineUSA.com / magazinUSA.com   
//**** email: webm@magazineUSA.com      
//******************************************************

var menuWindow = null;
function open_map(name,w,h) {
if(navigator.appName=="Netscape"){
  winname="map";
  what="menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=" +w+ ",height=" +h;
  menuWindow = window.open(name,winname,what);
}
else{
  what="menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=" +w+ ",height=" +h;
  if(menuWindow) {menuWindow.close();menuWindow=null;}
  menuWindow = window.open(name,"map",what);
  }
}
function open_map3(selfname,name,w,h,fresize) { // melC --- jan-17-2001 ---
if(navigator.appName=="Netscape"){
  what="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,what);
}
else{
  what="menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable="+fresize+",copyhistory=no,width=" +w+ ",height=" +h;
  if(menuWindow) {menuWindow.close();menuWindow=null;}
  menuWindow = window.open(name,selfname,what);
  }
}

function open_map2(selfname,name,w,h,fresize) {
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_poll(selfname,name,w,h,fresize) {
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;
pollpop = window.open(name,selfname,what0);
pollpop.opener.top.name = "oopner";
pollpop.focus();
}//end poll

function open_regWinMain(pselfname,pid,pname) {
pcallwhat = "_redir/goto.asp?id="+pid+"&goto="+pname+""; 
//alert(pcallwhat);
open_regWin1('',pcallwhat,'670','550','yes');
}//endFCT
function open_regWin(pselfname, pid, pname) {
    encoded = pname.replace(/&/g, '%26');

pcallwhat = "../../_redir/goto.aspx?id="+pid+"&goto="+encoded+""; 
//alert(pcallwhat);
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 regWin
menuWindow = null;

