////////////////////////////////////////////////////////////////////////////////
// Fonction qui pour un formulaire donné, change la background de chaque input au focus
////////////////////////////////////////////////////////////////////////////////
function fieldFocus(form_id) {

dl_id = "dl_" +form_id;
navDL = getObjectById(dl_id);
for (i=0; i<navDL.childNodes.length; i++) {
	navDIV = navDL.childNodes[i];
	if (navDIV.tagName=="DIV") {
		for (j=0; j<navDIV.childNodes.length; j++) {
			navDD = navDIV.childNodes[j];
			if (navDD.tagName=="DD") {
			  	nodeInput = navDD.childNodes[0];
			  	if(nodeInput.tagName == "INPUT" || nodeInput.tagName == "TEXTAREA"){
				  	nodeInput.onfocus=function() {
				  	previous = this.style.background; // Récupération de la couleur de background precedente
					this.style.background = "#FDE4CA";
					}
				  	nodeInput.onblur=function() {
					this.style.background = previous;
			}
/*<script type="text/javascript"> 
var champ=document.getElementById('f').getElementsByTagName('input');
for(i=0;i != champ.length;i++){
champ[i].onmouseover=function(){this.nextSibling.style.display='inline'};
champ[i].onmouseout=function(){this.nextSibling.style.display='none'};
}
</script>				*/
				
				
				}
			}
		}
	}
}



}/* FIN de fieldFocus() */


////////////////////////////////////////////////////////////////////////////////
// Fonction de la page d'accueil
////////////////////////////////////////////////////////////////////////////////
function moveEffect(){

box = getObjectById("accueil-box1"); 
alert(box.style.left);
box.style.left += 135; 
box.style.top += 335; 
}



function bouge(x,y,box_id){

    if(document.getElementById){
      	/*alert(parseInt(document.getElementById(box_id).style.left));*/
      	newY = parseInt(document.getElementById(box_id).style.top) + y;
      	newX = parseInt(document.getElementById(box_id).style.left) + x;
        document.getElementById(box_id).style.top = newY;
        document.getElementById(box_id).style.left = newX;
    }

}

