function presence_frame()
{
//On teste si il y a des frames et si il n’y en a pas on envoi vers l'index qui va en créer 

if (parent.haut){
	var xc = parent.haut.location.href;
	var tableau = new Array;
	tableau = xc.split("/");
	var nbtab = tableau.length - 1;
	xc = tableau[nbtab];

if ( xc != "haut1.html" )
{
	var url = location.href;
	var tableau = new Array;
	tableau = url.split("/");
	var nbtab = tableau.length - 1;
	var page_courante = new Array;
	page_courante[0] = tableau[nbtab-1]+"/"+tableau[nbtab];
	var chaine = page_courante.toString();
	top.location.href = "../index_reg.html?"+escape(chaine);
}}else{
    var url = location.href;
	var tableau = new Array;
	tableau = url.split("/");
	var nbtab = tableau.length - 1;
	var page_courante = new Array;
	page_courante[0] = tableau[nbtab-1]+"/"+tableau[nbtab];
	var chaine = page_courante.toString();
	top.location.href = "../index_reg.html?"+escape(chaine);}
}