	function decoupe(P_Obj,P_Tag) {
			var X_Temp=P_Obj.responseXML.getElementsByTagName(P_Tag);
			if (X_Temp.item(0)) {
				if (X_Temp.item(0).firstChild) {
					L_Res=X_Temp.item(0).firstChild.data;
					if ( L_Res == "." ) return "";
					p=/\n/g
					L_Temp=L_Res.replace(p,"<br>");
					p=/é/g
					L_Temp1=L_Temp.replace(p,"&eacute;");
					p=/è/g
					L_Temp=L_Temp1.replace(p,"&egrave;");
					p=/ê/g
					L_Temp1=L_Temp.replace(p,"&ecirc;");
					p=/à/g
					L_Temp=L_Temp1.replace(p,"&agrave;");
					return L_Temp;
				}
			}
			return "";
	}

	function affiche(P_Obj,P_Tag) {
		res=decoupe(P_Obj,P_Tag);
		if ( res != "" ) {
			document.getElementById(P_Tag+"_txt").innerHTML=res;
			document.getElementById(P_Tag).style.display = 'block';
		} 
	}
	function afficheTexte(P_Obj,P_Tag) {
		res=decoupe(P_Obj,P_Tag);
		if ( res != "" ) {
			if (document.getElementById(P_Tag+"_txt")) document.getElementById(P_Tag+"_txt").innerHTML=res;
		} 
	}
	function afficheUrlTitle(P_Obj,P_TagXml,P_TagHtml) {
		res=decoupe(P_Obj,P_TagXml);
		if ( res != "" ) {
			if (document.getElementById(P_TagHtml)) document.getElementById(P_TagHtml).title+=" " + res;
		} 
	}
	function afficheChapitre(P_Obj,P_Tag,P_Chapitre) {
		res=decoupe(P_Obj,P_Tag);
		if ( res != "" ) {
			document.getElementById(P_Tag+"_txt").innerHTML=res;
			document.getElementById(P_Chapitre).style.display = 'block';
		}else {
			document.getElementById(P_Tag+"_titre").innerHTML="";
		}
	}
		
	function afficherResultatsPeche(obj) {
		affiche(obj,"especes");
		afficheChapitre(obj,"vente","secteur");
		afficheChapitre(obj,"reciprocite","secteur");
		afficheChapitre(obj,"detaillant","secteur");
		afficheChapitre(obj,"contact","secteur");
		afficheChapitre(obj,"particularites","secteur");
		afficheChapitre(obj,"bonCoin","secteur");
		affiche(obj,"guides");
		affiche(obj,"periodes");
		affiche(obj,"parcours");
		afficheUrlTitle(obj,"copyright1","urlpeche1");
		afficheUrlTitle(obj,"copyright2","urlpeche2");
		afficheUrlTitle(obj,"copyright3","urlpeche3");
		afficheUrlTitle(obj,"copyright4","urlpeche4");
	}

	function afficherResultatsBacchus(obj) {
		affiche(obj,"region");
		affiche(obj,"appellation");
		affiche(obj,"sentier");
		afficheChapitre(obj,"nom","coordonnees");
		afficheChapitre(obj,"adresse","coordonnees");
		afficheChapitre(obj,"latitude","coordonnees");
		afficheTexte(obj,"longitude");
		afficheChapitre(obj,"tel","coordonnees");
		afficheChapitre(obj,"email","coordonnees");
		afficheChapitre(obj,"site","coordonnees");
		affiche(obj,"ouverture");
		affiche(obj,"fermetureJour");
		affiche(obj,"fermeturePeriode");
		affiche(obj,"visite");
		afficheUrlTitle(obj,"copyright1","urlbacchus1");
		afficheUrlTitle(obj,"copyright2","urlbacchus2");
		afficheUrlTitle(obj,"copyright3","urlbacchus3");
		afficheUrlTitle(obj,"copyright4","urlbacchus4");
	}


