	ob=document.getElementById("divid");
	comp="nook";
function tempo(){
	t=setTimeout("tempo()",100);
	tab=new Array(document.getElementsByTagName("img").length);
	
	for(i=0;i<document.getElementsByTagName("img").length;i++){
		if(!document.getElementsByTagName("img")[i].complete){
				tab[i]="nook";
				document.getElementById("divid").innerHTML="<div align='center'><img src='images/loading.gif'></div>";
			}
			else
				tab[i]="ok";
		}
		
	str=tab.join("--");
	if(str.length==(tab.length*4)-2){
		document.getElementById("divid").innerHTML=xhrdp.responseText;
		clearTimeout(t);

	}
	else
	{
		document.getElementById("divid").innerHTML="<div align='center'><img src='images/loading.gif'></div>";
	}
	/*
	for(i=0;i<document.getElementsByTagName("img").length;i++){
		if(tab[i]=="ok"){
		
		document.getElementById("divid").innerHTML=xhrdp.responseText;
		clearTimeout(t);
		}
	}
	*/
	
	
	
}

function aja(adip){
try {xhrdp=new XMLHttpRequest();}
	catch(e){
		try {xhrdp=new ActiveXObject("Microsoft.XMLHTTP");}
			catch(e1){
				alert("Objet non supporté");
			}
	}
xhrdp.onreadystatechange=function(){
	if ((xhrdp.readyState==4)&&(xhrdp.status==200))
		tempo();			
		//document.getElementById("divid").innerHTML=xhrdp.responseText;
	else 
		document.getElementById("divid").innerHTML="<div align='center'><img src='images/loading.gif'></div>";
	}
xhrdp.open('get',adip,true);
//xhrdp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhrdp.send(null);
//xhrdp.send("adip="+adip+"&adu="+adu);
}

