// JavaScript Document
function file(fichier) {
	 //alert(IdM+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 writediv(Resul,Id) {
	document.getElementById(Id).innerHTML = Resul;
}


function returnaffCo(A) {
	returne = file(host+'/index.php?id=75&uparent='+A)
	writediv(returne,"affComment");
setTimeout("returnaffCo()",5000);
}

function addComment() {
		var ht="550";
		var lar="508"
	  var top=(screen.height-ht)/2.5;
	  var left=(screen.width-lar)/2;
	theURL=host+'/index.php?id=83';
	winName="RechercheReport";
	features="top="+top+",left="+left+",status=yes,width="+lar+",height="+ht+",scrollbars=yes";
	ma_fenetre = window.open(theURL,winName,features);
	if (ma_fenetre.blur) ma_fenetre.focus();
}

