function Prepare(numero,nomCompte,nom, adresse1, adresse2, ville, telephone1, telephone2, mail, internet, reference, site, epis, etoile, type,capacite,latitude,longitude,photo,nomPage ) {
	document.write("<TR><TD><b>"+nom+"</b><BR>");
	if( adresse1 != "" ) {
		document.write(adresse1+"<BR>");
	}
	if( adresse2 != "" ) {
		document.write(adresse2+"<BR>");
	}
	document.write(ville+"<P>");
	if( telephone1 != "" ) {
		document.write(telephone1+"<BR>");
	}
	if( telephone2 != "" ) {
		document.write(telephone2+"<BR>");
	}
	if( mail != "" ) {
		document.write("<A HREF='mailto:"+mail+"'>e-Mail</A><BR>");
	}
	if( reference != "" ) {
		if( epis > 0 ) {
			document.write("<BR>Gîtes <B>"+reference+"</B><BR>");
		}
	}
	document.write("Réf : "+nomCompte);
	document.write("</TD>");
	document.write("<TD align='center'>");
	if( site == "cheflieu" ) {
		document.write("<P><A href='/visite crevoux-vue.html?affichemenu=0' target='_blank'>Chef-lieu</A><p>");
	}
	else if( site == "lachalp" ) {
		document.write("<P><A href='/visite la chalp-vue.html?affichemenu=0' target='_blank'>La Chalp</A><p>");
	}
	else if( site == "praveyral" ) {
		document.write("<P><A href='/visite praveyral-vue.html?affichemenu=0' target='_blank'>Praveyral<A><p>");
	}
	else if( site == "champrond" ) {
		document.write("<P><A href='/visite champrond-vue.html?affichemenu=0' target='_blank'>Champrond</A><p>");
	}
	else if( site == "standre" ) {
		document.write("<P><A href='/visite alentour-vue.html#standre?affichemenu=0' target='_blank'>St André</A><p>");
	}
	else {
		document.write("<P><A href='/visite auloin-vue.html?affichemenu=0' target='_blank'>Autres communes</A><P>");
	}
	if( type == "gite" ) {
		document.write("<IMG src='/logo/gites.bmp'><BR>");
	}
	else{
		document.write(type+"<BR>");
	}
	for( i = 0; i < epis; i++ ) {
		document.write("<IMG src='/logo/epis.bmp'>&nbsp;");
	}
	for( i = 0; i < etoile; i++ ) {
		document.write("<IMG src='/logo/etoile.bmp'>&nbsp;");
	}
	if( epis > 0 || etoile > 0 ) {
		document.write("<BR>");
	}
	document.write("<BR>");
	document.write("<A href='#' onclick='affichephoto("+numero+","+latitude+","+longitude+");'>Situation</A><BR>");
	document.write("<A href='http://crevoux.eu/"+nomPage+"?affichemenu=0' target=_blank>Description</A><BR>");

	document.write("</TD>"); 
			
	document.write("<td align='center'><A href='http://crevoux.eu/"+photo+"-vue.html' target='_blank'><img src='/photo/vignettes/"+photo+" 01.jpg'></A></td>");

	if(capacite != "" ) {
		document.write("<td align='center'>"+capacite+" pers.</td>");
	}
	else {
		document.write("<td>&nbsp;</td>");
	}		
	document.write("<TD>");
	compteur=compteur+1;
}	
function PreparePlanning(numero,nomCompte,nom, adresse1, adresse2, ville, telephone1, telephone2, mail, internet, reference, site, epis, etoile, type,capacite,latitude,longitude,photo,nomPage ) {
	document.write("<TR><TD><b>"+nom+"</b><BR>");
	if( telephone1 != "" ) {
		document.write(telephone1+"<BR>");
	}
	if( telephone2 != "" ) {
		document.write(telephone2+"<BR>");
	}
	if( mail != "" ) {
		document.write("<A HREF='mailto:"+mail+"'>e-Mail</A><BR>");
	}
	if( internet != "" ) {
		document.write("<A HREF='"+internet+"'>Site internet</A><BR>");
	}
	if( reference != "" ) {
		if( epis > 0 ) {
			document.write("Gîtes <B>"+reference+"</B><BR>");
		}
	}
	document.write("Réf : "+nomCompte);
	document.write("</TD>");
	document.write("<TD align='center'>");
	if( site == "cheflieu" ) {
		document.write("<P><A href='/visite crevoux-vue.html?affichemenu=0' target='_blank'>Chef-lieu</A><br>");
	}
	else if( site == "lachalp" ) {
		document.write("<P><A href='/visite la chalp-vue.html?affichemenu=0' target='_blank'>La Chalp</A><br>");
	}
	else if( site == "praveyral" ) {
		document.write("<P><A href='/visite praveyral-vue.html?affichemenu=0' target='_blank'>Praveyral<A><br>");
	}
	else if( site == "champrond" ) {
		document.write("<P><A href='/visite champrond-vue.html?affichemenu=0' target='_blank'>Champrond</A><br>");
	}
	else if( site == "standre" ) {
		document.write("<P><A href='/visite alentour-vue.html#standre?affichemenu=0' target='_blank'>St André</A><br>");
	}
	else {
		document.write("<P><A href='/visite auloin-vue.html?affichemenu=0' target='_blank'>Autres communes</A><br>");
	}
	for( i = 0; i < epis; i++ ) {
		document.write("<IMG src='/logo/epis.bmp'>&nbsp;");
	}
	for( i = 0; i < etoile; i++ ) {
		document.write("<IMG src='/logo/etoile.bmp'>&nbsp;");
	}
	if( epis > 0 || etoile > 0 ) {
		document.write("<BR>");
	}
	document.write("<A href='#' onclick='affichephotoPlanning("+numero+","+latitude+","+longitude+");'>Situation</A><BR>");
	document.write("<A href='http://crevoux.eu/"+nomPage+"?affichemenu=0' target=_blank>Description</A>");

	document.write("</TD>"); 
			
	if(capacite != "" ) {
		document.write("<td align='center'>"+capacite+" pers.</td>");
	}
	else {
		document.write("<td>&nbsp;</td>");
	}		
}	

function affichephoto( num,lat,lon ){
	var gite=document.forms.feuille.autregite.checked;
	var alpin=document.forms.feuille.skialpin.checked;
	var fond=document.forms.feuille.skifond.checked;
	var service=document.forms.feuille.service.checked;
	var hotel=document.forms.feuille.hotel.checked;
	var rest=document.forms.feuille.restaurant.checked;
	var culture=document.forms.feuille.culturel.checked;
	var geo=document.forms.feuille.geographique.checked;
	var hameau=document.forms.feuille.hameau.checked;
	var parc=document.forms.feuille.stationnement.checked;
	var divers=document.forms.feuille.divers.checked;
	var appel="http://crevoux.eu/geo.html?lat="+lat+"&lon="+lon+"&loc=false&num="+num+"&txt=9999&gite="+gite+"&alpin="+alpin+"&fond="+fond+"&service="+service+"&hotel="+hotel+"&snack="+rest+"&culture="+culture+"&geo="+geo+"&hameau="+hameau+"&parc="+parc+"&divers="+divers;
//	alert(appel);
	window.open(appel,"","scrollbars");
}
function affichephotoPlanning( num,lat,lon ){
	var appel="http://crevoux.eu/geo.html?lat="+lat+"&lon="+lon+"&loc=false&num="+num+"&txt=9999&gite=false&alpin=false&fond=false&service=false&hotel=false&snack=false&culture=false&geo=false&hameau=true&parc=false&divers=false";
//	alert(appel);
	window.open(appel,"","scrollbars");
}