function DisplayCoord(id_relais) {
		var fenetre=window.open('', 'NouvFen', 'resizable=no,scrollbars=yes,status=0,WIDTH=408,HEIGHT=145,left=143,top=390,screenX=0,screenY=20');
		 fenetre.location = "modules/interce/interce-fiche.asp?relais="+id_relais;
		 if(navigator.appVersion.substring(0,2) != '2.') { fenetre.focus(); }
}
function afficheDetail(cible,index){
	obj=document.getElementById(cible)
	if (obj!=null){
	    obj.innerHTML=Tdetail[index];
	}
}

function passwd_onclick(){
	document.formident.passwd.value="";
}

function login_onclick(){
	document.formident.login.value="";
}
function verif_ident(){
if (document.formident.login.value!="" && document.formident.passwd.value!=""){
	if (!isNaN(document.formident.login.value)){
		//Ouverture de pop-up d'identification
		window.open('modules/adherents/accueil.asp?login='+ document.formident.login.value +'&passwd='+ document.formident.passwd.value ,'fenetre','toolbar=no,status=no,width=550,height=500,top=100,left=200,resizable=yes,scrollbars=yes');
		return false;
	}else{
		alert("La valeur du login doit être numérique");
	}
}
return false;
}
/*gestion du défilement d'images*/
var hauteur_affichage=210; //hauteur d'affichage de la division principale
var tempo_deux_div=5000; //inertval de temps entre deux divisions

function defilDiv(indexcourant,id_div,index_max){
	//alert("defil +"+ indexcourant );
	indexsuivant=indexcourant+1;
	if (isNaN(indexsuivant) || index_max<indexsuivant) indexsuivant=1;
	div_suivante=document.getElementById(id_div + indexsuivant );
	if (div_suivante!=null){
	    //Place la division suivante derrière la courante
	    div_suivante.style.top= hauteur_affichage+ "px";

	    setTimeout("rollDiv("+ indexcourant +","+ indexsuivant +","+ index_max +",'"+ id_div +"');",20);
	}
}
function rollDiv(index1,index2,index_max,id_div){
    div_courante=document.getElementById(id_div+ index1 );
    div_suivante=document.getElementById(id_div+ index2 );
    top_courant=hauteur_affichage*-1;
    top_suivant=0;
    if (div_courante!=null){top_courant=parseInt(div_courante.style.top);}
    if (div_suivante!=null){top_suivant=parseInt(div_suivante.style.top);}
    if (top_courant>hauteur_affichage*-1){
        div_courante.style.top=top_courant-1 +"px";
    }
    if (top_suivant>0){
        div_suivante.style.top=top_suivant-1 +"px";
    }
    //Les deux divisions on fini de bouger, on prépare l'affichage de la suivante
    if (top_courant<=hauteur_affichage*-1 && top_suivant<=0){
       // alert("suivant");
        setTimeout("defilDiv("+index2 +",'"+ id_div +"',"+ index_max +");",tempo_deux_div);
    }else{
        setTimeout("rollDiv("+ index1 +","+ index2 +","+ index_max +",'"+ id_div +"');",20);
    }
}


