function ImageMax(chemin)
   {
   html = '<html> <head> <title>NTK</title> </head> <body onBlur="top.close()">';
   html=html+'<IMG src="'+chemin+'" BORDER=0 NAME="NTK" onLoad="window.resizeTo(document.NTK.width+20, document.NTK.height+120)"></body></html>';
   popupImage =    window.open('','_blank','toolbar=0, location=0, directories=0, menuBar=0, scrollbars=0, resizable=1');
   popupImage.document.open();
   popupImage.document.write(html);
   popupImage.document.close();
   }



function popupnew(page,titre,option)
    {
      var oW = window.open(escape(page),titre,option);
    }

function popupclose(oW)
    {
       if (oW.document) { w.close(oW); }
    }





function popupcenter(page,titre,largeur,hauteur,options) {
  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2;
  window.open(escape(page),titre,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}






function popupcenterhtml(page,titre,largeur,hauteur,options,onclickaction) {


if (typeof onclickaction == "undefined")
 {
   var html = '<html> <head> <title>Pacific Industrie</title> </head> <body onBlur="top.close()"  >';
   html=html+'<IMG src="'+page+'" BORDER=0 NAME="NTK">';
   html=html+'</body></html>';
 }
else
 {
 //  var html = '<html> <head> <title>Pacific Industrie</title> </head> <body onBlur="top.close()"  >';
 //  html=html+'<a href="'+onclickaction+'"> <IMG src="'+page+'" BORDER=0 NAME="NTK"> </a>';
 //  html=html+'</body></html>';
   var html = '<html> <head> <title>Pacific Industrie</title> </head> <body"  >';
   html=html+'<a href="'+onclickaction+'"> <IMG src="'+page+'" BORDER=0 NAME="NTK" onLoad="window.resizeTo(document.NTK.width+20, document.NTK.height+110)"> </a>';
   html=html+'</body></html>';
 }



   var top=(screen.height-hauteur)/2;
   var left=(screen.width-largeur)/2;



   var popupImage = window.open(page,titre,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);

   popupImage.document.open();
   popupImage.document.write(html);
   popupImage.document.close();

}



