// JavaScript Document
function file(fichier) {
//alert(fichier)
	if(window.XMLHttpRequest) // FIREFOX
          xhr_object = new XMLHttpRequest(); 
     else if(window.ActiveXObject) // IE
          xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
     else 
          return(false); 
     xhr_object.open("GET", fichier, false); 
     xhr_object.send(null); 
     if(xhr_object.readyState == 4) return(xhr_object.responseText);
     else return(false);
} 


function writeCharg(E){
var DivChar=document.getElementById("Chargement");
	if(DivChar) { DivChar.style.visibility="visible"; }
}
function writediv(Resul,Id){ 
//alert(Resul)
	if(Resul!="") { writeCharg("hidden") }
var DivId=document.getElementById(Id);
	if(DivId) { DivId.innerHTML = Resul; }
}

function openWin(he,wi) {
  var top=(screen.height-he)/2.5;
  var left=(screen.width-wi)/2;
	theURL="index.php"; 
	
	winName="Win";
	features="top="+top+",left="+left+",status=yes,width="+wi+",height="+he+",scrollbars=no";
	 
	ma_fenetre = window.open(theURL,winName,features);
	if (ma_fenetre.blur) ma_fenetre.focus();

}
