var aWC = new Array();
aWC['wc'] = null;
aWC['wd'] = null;
function winCar(arq,L,A,NJ) {
var Wind  = (navigator.appVersion.indexOf("Win") != -1) ? true : false;
   if(screen) {
var sx = parseInt(screen.availWidth);
var h = sx;
sx >= parseInt(L) ? h = L : L = sx;
var sy = parseInt(screen.availHeight);
var v = sy;
sy >= parseInt(A) ? v = A : A = sy;
var hPos = parseInt(sx/2 - L/2);
var vPos = parseInt(sy/2 - A/2);
      if(Wind) {
hPos = hPos - 4;
vPos = vPos - 4;
//h = h + 8;
//v = v + 8;
h = h + 20;
v = v + 3;
      }
      if(aWC[NJ] == null || aWC[NJ].closed) {
aWC[NJ] = window.open(arq,"","width="+h+",height="+v+",left="+hPos+",top="+vPos+",screenX="+hPos+",screenY="+vPos+",scrollbars=yes");
      } else {
aWC[NJ].close();
aWC[NJ] = window.open(arq,"","width="+h+",height="+v+",left="+hPos+",top="+vPos+",screenX="+hPos+",screenY="+vPos+",scrollbars=yes");
      }
   } else {
      if(aWC[NJ] == null || aWC[NJ].closed) {
aWC[NJ] = window.open(arq,"","width="+L+",height="+A+",left="+50+",top="+50+",screenX="+50+",screenY="+50+",scrollbars=yes");
      } else {
aWC[NJ].close();
aWC[NJ] = window.open(arq,"","width="+L+",height="+A+",left="+50+",top="+50+",screenX="+50+",screenY="+50+",scrollbars=yes");
      }
   }
   if(aWC[NJ] != null && !aWC[NJ].closed) {
aWC[NJ].focus();
   } else {
alert("Se a janela não está abrindo talvez seja porque você tenha um programa bloqueador de pop-up!\nVerifique suas preferências.");
   }
return;
}
