function openWin(url, iwidth, iheight) {

  var iWid = window.screen.width - 10; //--tamanho da resolução na horizontal (10px=bordas da janela)
  var iHei = window.screen.height - 66; //--tamanho da resolução na vertical (66px=bordas da janela e barra do menu iniciar(padrao)

  iwidth  = parseInt(iwidth) > 0 ? parseInt(iwidth) + 17 : iWid; //barras laterais
  iheight = parseInt(iheight) > 0 ? parseInt(iheight) + 52 : iHei; //botao fechar e barras
  //estourando horizontal
  iheight = iheight > parseInt(window.screen.height) ? iHei : iheight;

  var iLeft = iwidth == iWid ? 0 :(iWid / 2) - (iwidth / 2);
  var iTop = iheight == iHei ? 0 : (iHei / 2) - (iheight / 2);

  window.open (url,"","height=" + iheight + ",width=" + iwidth + ",scrollbars=yes,menubar=no,status=no,toolbar=no,location=no,resizable=no,top=" + iTop + ",left=" + iLeft);
 
}

function closeWin() {
  self.close();
}

function voltaPage(url) {
  window.location.href = url;
}