<!--
window.onerror=null;
  nome = navigator.appName;
  versao = parseInt(navigator.appVersion);
  if ((nome == "Netscape" && versao >= 3) || (nome == "Microsoft Internet Explorer" && versao >= 4))
    ver = "sim";
  else
  {
    ver = "nao";alert("O seu browser encontra-se desactualizado. As versões mínimas para poder consultar este site com segurança, são as versões 4 do Microsoft Internet Explorer ou do Netscape Navigator.");
  }
  

  
function janela(openhtml,winurl,wx,wy)
  {
wx=550;
wy=450;
xWidth = (screen.width-wx)/2;
yHeight = (screen.height-wy)/2;
openhtml = '../fichas/'+ openhtml +'.html'

	if (wy > 550) {wy = 550};
    winname = "w" + Math.round(Math.random() * 1000);	
    if (ver == "nao")
    {
       wy = wy - 40;
	   wstr = "left="+xWidth+",top="+yHeight+",scrollbars=yes,menubar=no,width="+wx+",height="+wy;
       window.open(openhtml,winurl,wstr);
    }
    else 
    {
	   wstr = "left="+xWidth+",top="+yHeight+",scrollbars=yes,menubar=no,width="+wx+",height="+wy;
   	   window.open(openhtml,winurl,wstr);
    }
  }
  
 function ficha(a)
  {
wx=550;
wy=450;
xWidth = (screen.width-wx)/2;
yHeight = (screen.height-wy)/2;

	if (wy > 550) {wy = 550};
    if (ver == "nao")
    {
       wy = wy - 40;
	   wstr = "left="+xWidth+",top="+yHeight+",scrollbars=yes,menubar=no,width="+wx+",height="+wy;
       //window.open(winurl,winname,wstr);
       window.open("ficha.html",winurl,wstr);
    }
    else 
    {
	   wstr = "left="+xWidth+",top="+yHeight+",scrollbars=yes,menubar=no,width="+wx+",height="+wy;
       window.open("ficha.html",a,wstr);
       window.name="teste";
   	   //window.open(openwin,"ficha.html",wstr);
    }
  }  
   
 // -->
