
function displayRem2Window(url,pos,width,height,resizable,scrollbars,menubar,status,toolbar)
{
var Rem2win=null;
if(pos=="random"){
LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-width)):100;
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-height)-75)):100;}
if(pos=="center"){
LeftPosition=(screen.width)?(screen.width-width)/2:100;
TopPosition=(screen.height)?(screen.height-height)/2:100;}
if(pos=="right"){
LeftPosition=(screen.width)?(screen.width-width-20):100;
TopPosition=125}
else
{LeftPosition=10;TopPosition=20}
Rem2win=window.open(url,"displayRem2Window",'width='+width+',height='+height+',resizable='+resizable+',scrollbars='+scrollbars+',menubar='+menubar+',status='+status+',toolbar='+toolbar+',location='+location+',top='+TopPosition+',left='+LeftPosition+'');
Rem2win.focus();
if(navigator.appName=="Netscape"){
self.focus();
}
}
function displayMenuWindow(url,pos,width,height,resizable,scrollbars,menubar,status,toolbar)
{
var MenuWin=null;
if(pos=="random"){
LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-width)):100;
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-height)-75)):100;}
if(pos=="center"){
LeftPosition=(screen.width)?(screen.width-width)/2:100;
TopPosition=(screen.height)?(screen.height-height)/2:100;}
if(pos=="right"){
LeftPosition=(screen.width)?(screen.width-width-20):100;
TopPosition=40}
else
{LeftPosition=10;TopPosition=20}
MenuWin=window.open(url,"displayMenuWindow",'width='+width+',height='+height+',resizable='+resizable+',scrollbars='+scrollbars+',menubar='+menubar+',status='+status+',toolbar='+toolbar+',location='+location+',top='+TopPosition+',left='+LeftPosition+'');
MenuWin.focus();
if(navigator.appName=="Netscape"){
self.focus();
}
}
function displayRemWindow(url,pos,width,height,resizable,scrollbars,menubar,status,toolbar)
{
var Remwin=null;
if(pos=="random"){
LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-width)):100;
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-height)-75)):100;}
if(pos=="center"){
LeftPosition=(screen.width)?(screen.width-width-260)/2:100;
TopPosition=(screen.height)?(screen.height-height-165)/2:100;}
if(pos=="right"){
LeftPosition=(screen.width)?(screen.width-width-20):100;
TopPosition=40}
else
{LeftPosition=10;TopPosition=20}
Remwin=window.open(url,"displayRemWindow",'width='+width+',height='+height+',resizable='+resizable+',scrollbars='+scrollbars+',menubar='+menubar+',status='+status+',toolbar='+toolbar+',location='+location+',top='+TopPosition+',left='+LeftPosition+'');
Remwin.focus();
if(navigator.appName=="Netscape"){
self.focus();
}
}

