// WindowOpen.js

var doc=0;
// newFunction
function abreJanelaHabinet(windowURL, windowName,width, height)
{
 largura=0;altura=0
 if (!document.all){
  largura=window.innerWidth
  altura=window.innerHeight
 }else{
  largura=screen.width
  altura=screen.height
 }
 esquerda=(largura/2)-(width/2)
 topo=(altura/2)-(height/2)
 
 windowFeatures="width="+width+",height="+height+",left="+esquerda+",top="+topo+",toolbar=0,location=0,directories=0,status=1,menuBar=0,scrollBars=1,resizable=0"
 janela=window.open( windowURL, windowName+doc, windowFeatures )
 doc+=1;
 janela.focus()
}

