var container_R="";function find(obj){return document.getElementById(obj)!=null?document.getElementById(obj):null;}
function getOffset(obj,coord){var val=obj["offset"+coord];while((obj=obj.offsetParent)!=null){val+=obj["offset"+coord];}
return val;}
var TimeOut=0
function erreur(el,message){clearTimeout(TimeOut);find(el).focus();find('erreurdiv').innerHTML=message;find('erreurdiv').style.display="block";if(find(el).tagName=="TEXTAREA"){var yTo=getOffset(find(el),"Top")+find(el).offsetHeight;}else{var yTo=getOffset(find(el),"Top")+find(el).offsetHeight;}
var xTo=getOffset(find(el),"Left");find('erreurdiv').style.top=yTo;find('erreurdiv').style.left=xTo;TimeOut=setTimeout("find('erreurdiv').style.display = 'none'",4000);}
function setImageHover(el){if(document.getElementById(el)!=null){var oldSrc=find(el).getAttribute("src");find(el).style.cursor="pointer";find(el).onmouseover=function(){this.src=this.getAttribute("hover");}
find(el).onmouseout=function(){this.src=oldSrc;}}}
function createObject(){if(window.XMLHttpRequest){http=new XMLHttpRequest();}else if(window.ActiveXObject){http=new ActiveXObject("Microsoft.XMLHTTP");}
return http;}
function _getContent(){var args=_getContent.arguments;container_R=args[0];if(args.length>1){http=createObject();http.open('GET',args[1],true);http.onreadystatechange=ajaxReturn;http.send(null);}else{find(args[0]).innerHTML='';}}
function ajaxReturn(){var statutList=new Array("Initialisation","Chargement","Traitement","Terminé");if(http.readyState==4){if(http.status==200){document.getElementById(container_R).innerHTML=http.responseText;}else{document.getElementById(container_R).innerHTML=http.statusText;}}}
