var fw;
var name = navigator.appName, MSIE="Microsoft Internet Explorer", NETSC="Netscape";

function fen(p, tit, txt) {
  if(fw != null) w.close();
  fw = window.open("","bpop","toolbar=0,location=0,directories=0,statfr=no,menubar=0,scrollbars=yes,resizable=yes,width=300,height=150");
  if (fw.opener == null) w.opener = self;
  fw.document.open();
  var st1 = '<html>\n'
  +'<head>\n'
  +'<link rel="stylesheet" href="pop.css" type="text/css">\n'
  +'</head>\n'
  +'<body">\n'
  +'<center><h1>'+tit+'</h1></center>\n'
  +'<br />\n'
  +txt+'<br />\n'
  fw.document.write(st1);
  
  if(name==NETSC) 
     fw.document.write('<embed src='+ p +' width=200 height=25 volume=50 autostart="true" hidden="true" Loop="true">');
  else if(name==MSIE)
  fw.document.write('<bgsound src=' + p +' loop="infinite">');
  else 
  fw.document.write('<a href='+ p +'>'+ tit +'</a>');
  
  var st2 ='<br /><br /><center>'
  +'<a href="javascript:this.close()">Ferme la fen&ecirc;tre</a>'
  +'</center>'
  +'<br /><br />'
  +'</body>'
  +'</html>';    
  fw.document.write(st2);
//  w.document.close();
//  parent.document.close();
//  self.document.close();
  fw.focus();
  if(fw.arise) fw.arise();
  return false;
}



