function newDoc() {
var titre="Nouvelle Page";
var contenu="fgsdfgsdf  sdfh ";
//var contenu="<?php include('resultats_table.inc.php');?>";
//toto=open("",'image','width=800,height=600,toolbar=no,scrollbars=no,resizable=yes');
document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n');
document.write('<html>\n');
document.write('<head>\n');
document.write('<title>'+titre+'</title>\n');
document.write('</head>\n');
document.write('<body>\n');
document.write(contenu);
document.write('</body>\n');
document.write('</html>\n');
document.close();
}

function newWin() {
var titre="Nouvelle Fenetre";
var contenu="fgsdfgsdf  sdfh ";
//var contenu="<?php include('resultats_table.inc.php');?>";
toto=open("",'image','width=800,height=600,toolbar=no,scrollbars=no,resizable=yes');
toto.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n');
toto.document.write('<html>\n');
toto.document.write('<head>\n');
toto.document.write('<title>'+titre+'</title>\n');
toto.document.write('</head>\n');
toto.document.write('<body>\n');
toto.document.write(contenu);
toto.document.write('</body>\n');
toto.document.write('</html>\n');
toto.document.close();
}

function PopupImage(img) {
titre="...::: Photos/Pictures :::...";
w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');
w.document.write("<html><head><title>"+titre+"</title>");
w.document.write('<link rel="stylesheet" href="css/style_csomme.css" type="text/css" />');
w.document.write("</head>");
w.document.write("<script language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"script>");
w.document.write("<body onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><img src='"+img+"' border=0>");
w.document.write("<br /><table id='tablefushia'><tr><td><div id='tablefushialiens'><a href='javascript:window.close();'>fermer cette fen&ecirc;tre</a></div></td></tr></table>");
w.document.write("</body></html>");
w.document.close();
}

function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
   {
   for(var i=0; i<document.images.length; i++)
      {
   var img = document.images[i]
   var imgName = img.src.toUpperCase()
   if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
      {
   var imgID = (img.id) ? "id='" + img.id + "' " : ""
   var imgClass = (img.className) ? "class='" + img.className + "' " : ""
   var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
   var imgStyle = "display:inline-block;" + img.style.cssText  
   if (img.align == "left") imgStyle = "float:left;" + imgStyle
   if (img.align == "right") imgStyle = "float:right;" + imgStyle
   if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle  
   var strNewHTML = "<span " + imgID + imgClass + imgTitle
   + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
      + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
   + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"  
   img.outerHTML = strNewHTML
   i = i-1
      }
      }
   }
//window.attachEvent("onload", correctPNG);
