function openLink(myLink){
  window.open(myLink);
}

function openBlank(myLink){
  window.open(myLink,"_blank");
}

function openFull(URLen) {
  var windowNamen="mainwindow";
  var browserName=navigator.appName;
  var operatingSystem=navigator.platform;
  var version = parseFloat(navigator.appVersion);
  //top.location="../index.html";
  // Netscape check version 4.0+ on Win
  if (browserName.indexOf("Netscape")!=-1 && version>=4.0 && operatingSystem.indexOf("Mac")!=-1)
  {
  window.open(URLen,windowNamen,'titlebar=no,top=0,left=0,width=' + window.screen.availWidth+',height='+window.screen.availWidth+',screenX=0,screenY=0,top=0,left=0')
  }
  // MSIE Mac check
  else if (browserName.indexOf("Microsoft Internet Explorer")!=-1 && operatingSystem.indexOf("Mac")!=-1)
  {
  window.open(URLen,windowNamen,'titlebar=no,top=0,left=0,width=' + window.screen.availWidth+',height='+window.screen.availWidth+',screenX=0,screenY=0,top=0,left=0')
  }
  // Netscape Mac check
  else if (browserName.indexOf("Netscape")!=-1 && operatingSystem.indexOf("Mac")!=-1)
  {
  window.open(URLen,windowNamen,'width='+screen.width+',height='+screen.height+',top=0,left=0');
  }
  // MSIE Windows
  else if (browserName.indexOf("Microsoft Internet Explorer")!=-1 && operatingSystem.indexOf("Win")!=-1)
  {
  var win = window.open(URLen,windowNamen,'channelmode=yes', 'titlebar=true')
  }
  // Netscape Windows
  else if (browserName.indexOf("Netscape")!=-1 && operatingSystem.indexOf("Win")!=-1)
  {
  window.open(URLen,windowNamen,'width='+screen.width+',height='+screen.height+',top=0,left=0');
  }
  else
  {
  window.open(URLen,windowNamen);
  }
}

function openPop(pagina,largura,altura){
  w = screen.width;
  h = screen.height;
  meio_w = w/2;
  meio_h = h/2;
  altura2 = altura/2;
  largura2 = largura/2;
  meio1 = meio_h-altura2;
  meio2 = meio_w-largura2;
  window.open(pagina,'','height=' + altura + ', width=' + largura + ', top='+meio1+', left='+meio2+'');
}