
  var AntDieFarmWindow=null;
 function AntDieFarm(mypage,myname,w,h,pos,infocus){
 if(pos=='random'){
 LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
 TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
 if(pos=='center'){
 LeftPosition=(screen.width)?(screen.width-w)/2:100;
 TopPosition=(screen.height)?(screen.height-h)/2:100;}
 else if((pos!='center' && pos!='random') || pos==null){LeftPosition=25;TopPosition=80;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes,dependent=no';
 AntDieFarmWindow=window.open('',myname,settings);
 if(infocus=='front'){AntDieFarmWindow.focus();AntDieFarmWindow.location='AntDieFarm.html';}
 }

  var BioGuardFarmWindow=null;
 function BioGuardFarm(mypage,myname,w,h,pos,infocus){
 if(pos=='random'){
 LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
 TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
 if(pos=='center'){
 LeftPosition=(screen.width)?(screen.width-w)/2:100;
 TopPosition=(screen.height)?(screen.height-h)/2:100;}
 else if((pos!='center' && pos!='random') || pos==null){LeftPosition=25;TopPosition=80;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes,dependent=no';
 BioGuardFarmWindow=window.open('',myname,settings);
 if(infocus=='front'){BioGuardFarmWindow.focus();BioGuardFarmWindow.location='BioGuardFarm.html';}
 }

  var EcoGuardFarmWindow=null;
 function EcoGuardFarm(mypage,myname,w,h,pos,infocus){
 if(pos=='random'){
 LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
 TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
 if(pos=='center'){
 LeftPosition=(screen.width)?(screen.width-w)/2:100;
 TopPosition=(screen.height)?(screen.height-h)/2:100;}
 else if((pos!='center' && pos!='random') || pos==null){LeftPosition=25;TopPosition=80;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes,dependent=no';
 EcoGuardFarmWindow=window.open('',myname,settings);
 if(infocus=='front'){EcoGuardFarmWindow.focus();EcoGuardFarmWindow.location='EcoGuardFarm.html';}
 }

  var FlyDieFarmWindow=null;
 function FlyDieFarm(mypage,myname,w,h,pos,infocus){
 if(pos=='random'){
 LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
 TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
 if(pos=='center'){
 LeftPosition=(screen.width)?(screen.width-w)/2:100;
 TopPosition=(screen.height)?(screen.height-h)/2:100;}
 else if((pos!='center' && pos!='random') || pos==null){LeftPosition=25;TopPosition=80;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes,dependent=no';
 FlyDieFarmWindow=window.open('',myname,settings);
 if(infocus=='front'){FlyDieFarmWindow.focus();FlyDieFarmWindow.location='FlyDieFarm.html';}
 }

  var OSTFarmWindow=null;
 function OSTFarm(mypage,myname,w,h,pos,infocus){
 if(pos=='random'){
 LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
 TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
 if(pos=='center'){
 LeftPosition=(screen.width)?(screen.width-w)/2:100;
 TopPosition=(screen.height)?(screen.height-h)/2:100;}
 else if((pos!='center' && pos!='random') || pos==null){LeftPosition=25;TopPosition=80;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes,dependent=no';
 OSTFarmWindow=window.open('',myname,settings);
 if(infocus=='front'){OSTFarmWindow.focus();OSTFarmWindow.location='OSTFarm.html';}
 }

  var PlantFarmWindow=null;
 function PlantFarm(mypage,myname,w,h,pos,infocus){
 if(pos=='random'){
 LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
 TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
 if(pos=='center'){
 LeftPosition=(screen.width)?(screen.width-w)/2:100;
 TopPosition=(screen.height)?(screen.height-h)/2:100;}
 else if((pos!='center' && pos!='random') || pos==null){LeftPosition=25;TopPosition=80;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes,dependent=no';
 PlantFarmWindow=window.open('',myname,settings);
 if(infocus=='front'){PlantFarmWindow.focus();PlantFarmWindow.location='PlantFarm.html';}
 }
