function non(clic) 
{
 var msg="Opération réservée à celui qui a créé ce site";
 if (navigator.appName == 'Netscape' && clic.which==3) {
 											 		alert(msg);
													return false;}
 else
 if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
 											 		alert(msg);
													return false;
													}
return true;
}
document.onmousedown = non;

/*
 RETROUVEZ LES MEILLEURS SCRIPTS SUR
 http://www.scriptsplus.com
*/
function time() {
window.setTimeout("time()",2000);+1
today = new Date();
horloge.chrono.value = today.toLocaleString(); }

/*

SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/
nav = navigator.appName.substring(0,3);
ver = navigator.appVersion.substring(0,1)
function addFav()
	{
	if (nav == "Mic" && ver >= 4)
		{
		url_site="http://www.arkasdogs.com";
		titre_site = "Arkasdogs";
		document.write('<A HREF="#" onClick="window.external.AddFavorite(url_site, titre_site);return(false);"><img src="../Photos/favoris.gif" alt="Arka\'s dogs dans vos favoris" border=0></A>&nbsp;')
		}
	else
		{
		document.write('Appuyez sur CTRL+D pour ajouter ce site &agrave; vos favoris!')
		}
	}
	
/*
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/
function AfficheHomePage()
	{
	if (document.all && document.getElementById)
		{
		document.write('<A HREF="#" onClick="HomePage(this);return(false);"><img src="../Photos/home.gif" alt="Arka\'s dogs en page de démarrage" border=0></A>&nbsp;');
		}
	}
function HomePage(obj)
	{
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('http://www.arkasdogs.com/');
	}

function vote_ok()
{
alert ("Votre vote a été enregistré.\nMerci pour votre participation");
}

function jscharger(jsmode) 
			{
				 if (liste.la_page.value>0) 
				 {
				  zone=liste.la_page.value;
					adresse="afficher_photos.php?page="+zone+"&mode="+jsmode;
	  			window.location=adresse;
					}
			}

function jsbouger(sens, actuel, maximum, jsmode)
	     {
				 if (sens==1)
				 		{	actuel++;
							if (actuel<=maximum)
								  {
									adresse="afficher_photos.php?page="+actuel+"&mode="+jsmode;
	  							window.location=adresse;							 
							 		}
							else
								{
								 alert ("Il n'y a plus de page suivante");
								}
						}
				 else
				 	 { 
					 actuel--;
					 if (actuel>0)
						 		{
								adresse="afficher_photos.php?page="+actuel+"&mode="+jsmode;
	  						window.location=adresse;
								}
							else
							{ alert ("Il n'y a pas de page précédente");
							}
						}						  
				}

function jsaller_a(lettre)
{
//alert (lettre);
window.location="#"+lettre;
}

function jschanger()
{

if (nouv.choix.value!=0)
	 {
	 window.open(nouv.choix.value);
	}
}

var date_deb;
var DHeure, DMinute, DSeconde;
function Chrono(date_debut)
	
{
	date_deb=date_debut;
	if (document.getElementById)
		{
		Now = new Date;
		TempMaintenant = Now.getTime();
		Future = new Date(date_deb);
		TempDebut = Future.getTime();
		DinaHeure = (TempMaintenant-TempDebut)/1000;

				DJours=Math.floor(DinaHeure/3600/24);
				DinaHeure=DinaHeure % (3600*24);
				DHeure=Math.floor(DinaHeure/(60*60));
				DinaHeure=DinaHeure % (60*60);
				DMinute=Math.floor(DinaHeure/(60));
				DinaHeure=DinaHeure % 60;
				DSeconde=Math.floor(DinaHeure);
				Brol="<table><tr  bgcolor='#ffff99'><td><font size=-1>Durée du jeu actuel  <b><font size=+1>"+DHeure+" h "+DMinute+" m "+DSeconde+" s</font></b></td></tr></table>";

		document.getElementById("comptarebour").innerHTML=Brol;
		}
	temporebour = setTimeout("Chrono(date_deb)", 1000)
	}


var date_fin;

function Rebour(date_stop)
	
{
	date_fin=date_stop;
	if (document.getElementById)
		{
		Maintenant = new Date;
		TempMaintenant = Maintenant.getTime();
		Future = new Date(date_fin);
		TempFuture = Future.getTime();
		DinaHeure = (TempFuture-TempMaintenant)/1000;
//		alert (DinaHeure);
		if (DinaHeure <= 0)
			 {
			 Brol = "Vous pouvez voter";
			 }
		else
				{
				DJours=Math.floor(DinaHeure/3600/24);
				DinaHeure=DinaHeure % (3600*24);
				DHeure=Math.floor(DinaHeure/(60*60));
				DinaHeure=DinaHeure % (60*60);
				DMinute=Math.floor(DinaHeure/(60));
				DinaHeure=DinaHeure % 60;
				DSeconde=Math.floor(DinaHeure);
				Brol="<font size=-1>Votre vote apparaît dans la barre rouge.<table border=1 summary='' align='center'><tr  bgcolor='#ffff99'><td><font size=-1>Vous pourrez revoter dans  <b><font size=+1>"+DHeure+" h "+DMinute+" m "+DSeconde+" s</font></b></td></tr></table>";
				}
		document.getElementById("comptarebour").innerHTML=Brol;
		}
	temporebour = setTimeout("Rebour(date_fin)", 1000)
	}

var date_membre;

function Membre(date_inscription)
	
{
	date_membre=date_inscription;
	if (document.getElementById)
		{
		Maintenant = new Date;
		TempMaintenant = Maintenant.getTime();
		Future = new Date(date_membre);
		TempFuture = Future.getTime();
		DinaHeure = (TempMaintenant-TempFuture)/1000;
		DJours=Math.floor(DinaHeure/3600/24);
		DinaHeure=DinaHeure % (3600*24);
		DHeure=Math.floor(DinaHeure/(60*60));
		DinaHeure=DinaHeure % (60*60);
		DMinute=Math.floor(DinaHeure/(60));
		DinaHeure=DinaHeure % 60;
		DSeconde=Math.floor(DinaHeure);
		Brol="<font size=-1>Vous êtes membre du site depuis "+DJours+" jours "+DHeure+" h "+DMinute+" m "+DSeconde+" s";

		document.getElementById("compteMembre").innerHTML=Brol;
		}
	temporebour = setTimeout("Membre(date_membre)", 1000)
	}	

function monter(indice)
{
save_z=tableau.elements[(indice*2)-3].value;
tableau.elements[(indice*2)-3].value=tableau.elements[(indice*2)-1].value;
tableau.elements[(indice*2)-1].value=save_z

save_z=tableau.elements[(indice*2)-2].value;
tableau.elements[(indice*2)-2].value=tableau.elements[(indice*2)].value;
tableau.elements[(indice*2)].value=save_z

}

function descendre(indice)
{
save_z=tableau.elements[(indice*2)+1].value;
tableau.elements[(indice*2)+1].value=tableau.elements[(2*indice)-1].value;
tableau.elements[(2*indice)-1].value=save_z

save_z=tableau.elements[(indice*2)+2].value;
tableau.elements[(indice*2)+2].value=tableau.elements[(indice*2)].value;
tableau.elements[(indice*2)].value=save_z
}

function monter_top()
{
maximum=tableau.passe2.value-1;																	// nombre d'options
save_z1=tableau.elements[(2*maximum)-1].value;									// sauvegarde du titre
save_z2=tableau.elements[(2*maximum)].value;										// sauvegarde du numéro
indice=2*(maximum)-1;	
while (indice>2)
			{
			tableau.elements[(indice)].value=tableau.elements[(indice)-2].value;
			tableau.elements[(indice+1)].value=tableau.elements[(indice+1)-2].value;
			indice=indice-2;
			}
tableau.elements[1].value=save_z1;	
tableau.elements[2].value=save_z2;		
}

function descendre_bot()
{
save_z1=tableau.elements[1].value;								// sauvegarde du titre
save_z2=tableau.elements[2].value;								// sauvegarde du numéro
maximum=tableau.passe2.value-1;										// nombre d'options
indice=1												
while (indice<2*maximum-1)
			{
			tableau.elements[indice].value=tableau.elements[indice+2].value;
			tableau.elements[indice+1].value=tableau.elements[indice+3].value;
			indice=indice+2;
			}
tableau.elements[2*maximum-1].value=save_z1;	
tableau.elements[2*maximum].value=save_z2;	
}

var Fenetre
var Numero_bis
function PleinePage(c_image, position, texte) {

//	c_image="../Photos/"+c_image+".JPG";
	decallage=10;
//	v=475;
//	h=356;
  v=600;
	h=450;
	bord=120;
	if (position=="H")
	{
	 hauteur = h+bord;
	 largeur = v+decallage;
	 h_photo = h;
	 v_photo = v;
	 }
	else 
	if (position=="V")
	{
	 hauteur = v+bord;
	 largeur = h+decallage;
	 h_photo=v;
	 v_photo=h;
	}
	else
			{
			hauteur = v+bord;
			largeur = v+decallage;
			h_photo = v;
			v_photo = v;
			}

 
	//Fenetre = window.open("","","HEIGHT=screen.availHeight,WIDTH=screen.availWidth,resizable,top=0,left=0");
	Fenetre = window.open("","","HEIGHT="+(hauteur)+",WIDTH="+(largeur+35)+",top=0,left=0");
	Numero_bis = "<HTML><HEAD><TITLE>Les photos d'Arka's dogs</TITLE>";
	Numero_bis = Numero_bis+"<style>div #photo { 	position:absolute ;	vertical-align: middle;	top: 0px }</style></HEAD>";
	Numero_bis = Numero_bis+"<BODY bgcolor='#f2f2f2'>";
	Numero_bis = Numero_bis+"<table border=0 cellpadding='0' cellspacing='0' width='100%' align='center'>";
	Numero_bis = Numero_bis+"<tr bgcolor='#ffffff'><td width='15'>&nbsp;</td><td><center>";
	Numero_bis = Numero_bis+"<div id='photo'><a href='javascript:window.close()'><IMG SRC="+c_image+" HEIGHT="+(h_photo)+" WIDTH="+(v_photo)+" border=0 alt='Clicquez sur la photo pour fermer la fenêtre''></a></center></div></td><td width='15'>&nbsp;</td></tr>"
	//Numero_bis = Numero_bis+"<tr><td colspan=3><font face='Verdana' size=2pt>"+texte+"</td></tr>";
	Numero_bis = Numero_bis+"</table>";
	Numero_bis = Numero_bis+"</td></tr></table></BODY></HTML>";
	Fenetre.document.write(Numero_bis)
}

var Fenetre
var Numero_bis
function PleinePageDim(c_image, largeur, hauteur, texte) 
{
bord=45;
v_fenetre=parseInt(largeur)+parseInt(bord);
h_fenetre=parseInt(hauteur)+(3*parseInt(bord));

Fenetre = window.open("","","HEIGHT="+h_fenetre+",WIDTH="+v_fenetre+",top=0,left=0");
Numero_bis = "<HTML><HEAD><TITLE>Les photos d'Arka's dogs</TITLE></HEAD>";
Numero_bis = Numero_bis+"<BODY bgcolor='#f2f2f2'>";
Numero_bis = Numero_bis+"<table border=0 cellpadding='0' cellspacing='0' width='100%' align='center'>";
Numero_bis = Numero_bis+"<tr bgcolor='#000000'><td width='15'>&nbsp;</td><td><center>";
Numero_bis = Numero_bis+"&nbsp;<br><a href='javascript:window.close()'><IMG SRC="+c_image+" HEIGHT="+hauteur+" WIDTH="+largeur+" border=0 alt='Cliquez sur la photo pour fermer la fenêtre''></a></center><br></td><td width='15'>&nbsp;</td></tr>"
Numero_bis = Numero_bis+"<tr><td colspan=3><font face='Verdana' size=2pt>"+texte+"</td></tr>";
Numero_bis = Numero_bis+"</table>";
Numero_bis = Numero_bis+"</BODY></HTML>";
Fenetre.document.write(Numero_bis)
}

<!--
var Fenetre_copy
var Numero_copy
function PleinePageCopy(c_image, largeur, hauteur, texte) 
{
bord=45;
v_fenetre=parseInt(largeur)+parseInt(bord);
h_fenetre=parseInt(hauteur)+(3*parseInt(bord));

Fenetre_copy = window.open("","","HEIGHT="+h_fenetre+",WIDTH="+v_fenetre+",top=0,left=0");
Numero_copy = "<HTML><HEAD><TITLE>Les photos d'Arka's dogs</TITLE></HEAD>";
Numero_copy = Numero_copy+"<BODY bgcolor='#f2f2f2'>";
Numero_copy = Numero_copy+"<table border=0 cellpadding='0' cellspacing='0' width='100%' align='center'>";
Numero_copy = Numero_copy+"<tr bgcolor='#ffffff'><td width='15'>&nbsp;</td><td><center>";
Numero_copy = Numero_copy+"&nbsp;<br><a href='javascript:window.close()'><img src='"+c_image+"' border=0 title=''></a></center><br></td><td width='15'>&nbsp;</td></tr>"
Numero_copy = Numero_copy+"<tr><td colspan=3><font face='Verdana' size=2pt>"+texte+"</td></tr>";
Numero_copy = Numero_copy+"</table>";
Numero_copy = Numero_copy+"</BODY></HTML>";
Fenetre_copy.document.write(Numero_copy)
}
//-->

<!--
var Fenetre_copy
var Numero_copy
function PleinePageCopy2(c_image, largeur, hauteur, texte, legende, numero) 
{
bord=45;
v_fenetre=parseInt(largeur)+parseInt(bord);
h_fenetre=parseInt(hauteur)+(3*parseInt(bord));

Fenetre_copy = window.open("","","HEIGHT="+h_fenetre+",WIDTH="+v_fenetre+",top=0,left=0");
Numero_copy = "<HTML><HEAD><TITLE>Les photos d'Arka's dogs</TITLE></HEAD>";
Numero_copy = Numero_copy+"<BODY bgcolor='#f2f2f2'>";
Numero_copy = Numero_copy+"<table border=0 cellpadding='0' cellspacing='0' width='100%' align='center'>";
Numero_copy = Numero_copy+"<tr bgcolor='#ffffff'><td width='15'>&nbsp;</td><td><center>";
Numero_copy = Numero_copy+"&nbsp;<br><a href='javascript:window.close()'><img src='"+c_image+"' border=0 title=''></a></center><br></td><td width='15'>&nbsp;</td></tr>"
Numero_copy = Numero_copy+"<tr><td colspan=3><font face='Verdana' size=2pt>"+texte+"</td></tr>";
if (legende!='')
	 Numero_copy = Numero_copy+"<tr><td colspan=3 align='center'><font face='Verdana' size=2pt>"+legende+"<a href='../commentaires/comment_simple.php?categorie="+numero+"' target='_new'><img src='../commentaires/comment.gif' border=0 title='Commentez cette photo'></a></td></tr>";
Numero_copy = Numero_copy+"</table>";
Numero_copy = Numero_copy+"</BODY></HTML>";
Fenetre_copy.document.write(Numero_copy)
}
//-->

var Fenetre_copy
var Numero_copy
function Afficher_photo(numero, largeur, hauteur) 								//pourrait être supprimé remplacé par Afficher paramétré
{
bord=20;
v_fenetre=parseInt(largeur)+parseInt(bord);
h_fenetre=parseInt(hauteur)+(3*parseInt(bord));
Fenetre_copy = window.open("","","HEIGHT="+h_fenetre+",WIDTH="+v_fenetre+",top=0,left=0");
Numero_copy = "<HTML><HEAD><TITLE>Les photos d'Arka's dogs</TITLE>";
Numero_copy = Numero_copy+"<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=windows-1252'>";
Numero_copy = Numero_copy+"</HEAD>";
Numero_copy = Numero_copy+"<BODY>";
Numero_copy = Numero_copy+"<IFRAME NAME='fenetre' src='../photos_visiteurs/detail_photo.php?num_photo="+numero+"' align='center' FRAMEBORDER='1' height="+hauteur+" hspace=0 width="+largeur+" scrolling='auto'>";
//Numero_copy = Numero_copy+"Votre navigateur n'accepte pas les IFRAMES";
Numero_copy = Numero_copy+"</IFRAME>"
Numero_copy = Numero_copy+"<p align='right'><input type='button' onclick='javascript:window.close()' value='Fermer la fenêtre' />"
Numero_copy = Numero_copy+"</BODY></HTML>";
Fenetre_copy.document.write(Numero_copy)
}

var Fenetre_copy
var Numero_copy
function Afficher_rencontre(numero, largeur, hauteur) 
{
bord=20;
v_fenetre=parseInt(largeur)+parseInt(bord);
h_fenetre=parseInt(hauteur)+(3*parseInt(bord));
Fenetre_copy = window.open("","","HEIGHT="+h_fenetre+",WIDTH="+v_fenetre+",top=0,left=0");
Numero_copy = "<HTML><HEAD><TITLE>Les rencontres d'Arka's dogs</TITLE>";
Numero_copy = Numero_copy+"<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=windows-1252'>";
Numero_copy = Numero_copy+"</HEAD>";
Numero_copy = Numero_copy+"<BODY>";
Numero_copy = Numero_copy+"<IFRAME NAME='fenetre' src='../photos_rencontres/detail_photo.php?num_photo="+numero+"' align='center' FRAMEBORDER='1' height="+hauteur+" hspace=0 width="+largeur+" scrolling='auto'>";
//Numero_copy = Numero_copy+"Votre navigateur n'accepte pas les IFRAMES";
Numero_copy = Numero_copy+"</IFRAME>"
Numero_copy = Numero_copy+"<p align='right'><input type='button' onclick='javascript:window.close()' value='Fermer la fenêtre' />"
Numero_copy = Numero_copy+"</BODY></HTML>";
Fenetre_copy.document.write(Numero_copy)
}

var Fenetre_copy
var Numero_copy
function Afficher_encyclo(numero, origine, largeur, hauteur) 
{
bord=20;
v_fenetre=parseInt(largeur)+parseInt(bord);
h_fenetre=parseInt(hauteur)+(3*parseInt(bord));
Fenetre_copy = window.open("","","HEIGHT="+h_fenetre+",WIDTH="+v_fenetre+",top=0,left=0");
Numero_copy = "<HTML><HEAD><TITLE>Les photos d'Arka's dogs</TITLE>";
Numero_copy = Numero_copy+"<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=windows-1252'>";
Numero_copy = Numero_copy+"</HEAD>";
Numero_copy = Numero_copy+"<BODY>";
Numero_copy = Numero_copy+"<IFRAME NAME='fenetre' src='../photos_visiteurs/detail_encyclo_photo.php?num_photo="+numero+"&origine="+origine+"' align='center' FRAMEBORDER='1' height="+hauteur+" hspace=0 width="+largeur+" scrolling='auto'>";
//Numero_copy = Numero_copy+"Votre navigateur n'accepte pas les IFRAMES";
Numero_copy = Numero_copy+"</IFRAME>"
Numero_copy = Numero_copy+"<p align='right'><input type='button' onclick='javascript:window.close()' value='Fermer la fenêtre' />"
Numero_copy = Numero_copy+"</BODY></HTML>";
Fenetre_copy.document.write(Numero_copy)
}

// nouveau script pour afficher une photo aggrandie
// type = "A" pour une photo d'Arka
// type = "P" pour le pêle mêle des visiteurs
// type = "R" pour les rencontres des membres
// type = "C" pour le caninoscope
// type = "E" pour l'encyclo chien
// type = "G" pour agrandir sur l'atelier -> à placer dans le script_atelier.js
// type = "AP" pour les albums persos
var Fenetre_copy
var Numero_copy
function Afficher(type, numero, largeur, hauteur) 
{
bord=20;
v_fenetre=parseInt(largeur)+parseInt(bord);
h_fenetre=parseInt(hauteur)+(3*parseInt(bord));
Fenetre_copy = window.open("","","HEIGHT="+h_fenetre+",WIDTH="+v_fenetre+",top=0,left=0");
Numero_copy = "<HTML><HEAD><TITLE>Les photos d'Arka's dogs</TITLE>";
Numero_copy = Numero_copy+"<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=windows-1252'>";
Numero_copy = Numero_copy+"</HEAD>";
Numero_copy = Numero_copy+"<BODY>";
Numero_copy = Numero_copy+"<IFRAME NAME='fenetre' ";
if (type=="A")
	 Numero_copy = Numero_copy+"src='../Pages_html_fra/detail_arka.php?num_photo="+numero;
else
		if (type=="P")
	 		 Numero_copy = Numero_copy+"src='../photos_visiteurs/detail_photo.php?num_photo="+numero;
		else
				if (type=="C")										// agrandissement de la photo du caninoscope
	 				 Numero_copy = Numero_copy+"src='../Pages_html_fra/caninoscope.php?num_membre="+numero;
				else
						if (type=="R")										// agrandissement de la photo d'une rencontre
							 Numero_copy = Numero_copy+"src='../photos_rencontres/detail_photo.php?num_photo="+numero;
						else
								if (type=="E")										// agrandissement de la photo de l'encyclo
									 Numero_copy = Numero_copy+"src='../photos_visiteurs/detail_encyclo_photo.php?num_photo="+numero;
								else
										if (type=="G")										// agrandissement de la page de l'atelier
											 Numero_copy = Numero_copy+"src='../atelier/detail_atelier_photo.php?num_photo="+numero;
								    else
												if (type=="AP")					// albums persos
													 Numero_copy = Numero_copy+"src='../photos_perso/detail_photo.php?num_photo="+numero;
								    		else
														if (type=="FE")					// fond d'écran
													 		 Numero_copy = Numero_copy+"src='../fonds_ecran/detail_fond.php?numero="+numero;

Numero_copy=Numero_copy+"' align='center' FRAMEBORDER='1' height="+hauteur+" hspace=0 width="+largeur+" scrolling='auto'>";
//Numero_copy = Numero_copy+"Votre navigateur n'accepte pas les IFRAMES";
Numero_copy = Numero_copy+"</IFRAME>"
Numero_copy = Numero_copy+"<p align='right'><input type='button' onclick='javascript:window.close()' value='Fermer la fenêtre' />"
Numero_copy = Numero_copy+"</BODY></HTML>";
Fenetre_copy.document.write(Numero_copy)
}


var Fenetre_copy
var Numero_copy
function Afficher_membre(numero, largeur, hauteur) 
{
bord=20;
v_fenetre=parseInt(largeur)+parseInt(bord);
h_fenetre=parseInt(hauteur)+(3*parseInt(bord));
Fenetre_copy = window.open("","","HEIGHT="+h_fenetre+",WIDTH="+v_fenetre+",top=0,left=0");
Numero_copy = "<HTML><HEAD><TITLE>Le caninoscope d'Arka's dogs</TITLE>";
Numero_copy = Numero_copy+"<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=windows-1252'>";
Numero_copy = Numero_copy+"</HEAD>";
Numero_copy = Numero_copy+"<BODY>";
Numero_copy = Numero_copy+"<IFRAME NAME='fenetre' src='../Pages_html_fra/caninoscope.php?num_membre="+numero+"' align='center' FRAMEBORDER='1' height="+hauteur+" hspace=0 width="+largeur+" scrolling='auto'>";
//Numero_copy = Numero_copy+"Votre navigateur n'accepte pas les IFRAMES";
Numero_copy = Numero_copy+"</IFRAME>"
Numero_copy = Numero_copy+"<p align='right'><input type='button' onclick='javascript:window.close()' value='Fermer la fenêtre' />"
Numero_copy = Numero_copy+"</BODY></HTML>";
Fenetre_copy.document.write(Numero_copy)
}

function ajouter_carnet(truc){

nbre = truc.carnet.options.length;
for (i=0; i<nbre; i++) 
	{ 
  if (truc.carnet.options[i].selected ) 
		 { 
		 //alert (truc.carnet.options[i].text);
		 transformer=truc.carnet.options[i].text;
		 x=transformer.indexOf("|",0);
		 l=transformer.length;
		 afinal=transformer.substr(0,x)+"/"+transformer.substr(x+1,l-x);
		 truc.tous_les_noms.value=truc.tous_les_noms.value+"|"+afinal;
		 nouvel_element = new Option(truc.carnet.options[i].text,afinal,false,true);
		 truc.liste.options[truc.liste.length] = nouvel_element;
		 //truc.nom.value = "";
		 //truc.email.value = "";
		 truc.cpt.value++;
		 }
	}		
}

function effacer(truc){
	for(yo=0;yo<truc.liste.length;yo++){
		if(truc.liste.options[yo].selected == true & truc.liste.options[yo].value!="0"){
		truc.liste.options[yo] = null;
	 truc.cpt.value--;
		}
	}

	// reconstituer les zones tous_les ...
	truc.tous_les_noms.value="";
	for(yo=1;yo<truc.liste.length;yo++){
		 truc.tous_les_noms.value=truc.tous_les_noms.value+"|"+truc.liste.options[yo].value;
	}	
}

var PlPage
var contenu
function PPage(c_image, hauteur, largeur) {

h_photo=hauteur;
v_photo=largeur;
proportion=hauteur/largeur;
decallage=0;
v=screen.width-35;
h=screen.height-120;

if (hauteur>h)
	 {
	 h_photo=h;
	 v_photo=h/proportion;
	 }
else
		if (largeur>v)
			 {
			 v_photo=v;
			 h_photo=v_photo*proportion;
			 }

image_gt="../picturex.php?select="+c_image+"&action=limit_h&set_h="+h_photo+","+v_photo+","+h_photo;

PlPage = window.open("","","HEIGHT="+screen.height+",WIDTH="+screen.width+",top=0,left=0");
Contenu = "<HTML><HEAD><TITLE>Les photos d'Arka's dogs</TITLE></HEAD>";
Contenu = Contenu+"<SCRIPT>function bloc(){return false;}</SCRIPT>";
Contenu = Contenu+"<BODY bgcolor='#000000' oncontextmenu='return bloc()'>";
Contenu = Contenu+"<table border=0 height='100%' width='100%' valign='middle'><tr><td>";
Contenu = Contenu+"<center><a href='javascript:window.close()'><IMG SRC="+image_gt+" border=0 alt='Cliquez sur la photo pour fermer la fenêtre''></a></center>"
Contenu = Contenu+"</td></tr></table>";
//Contenu = Contenu+"<center><a href='javascript:window.close()'><IMG SRC="+c_image+" HEIGHT="+(h_photo)+" WIDTH="+(v_photo)+" border=0 alt='Cliquez sur la photo pour fermer la fenêtre''></a></center>"
Contenu = Contenu+"</BODY></HTML>";
PlPage.document.write(Contenu)
}

var Fenetre_copy
var Numero_copy
function Afficher_diapo(parametre,genre) 
{
bord=20;
largeur=630;
hauteur=545;
v_fenetre=parseInt(largeur)+parseInt(bord);
h_fenetre=parseInt(hauteur)+(3*parseInt(bord));
Fenetre_copy = window.open("","","HEIGHT="+h_fenetre+",WIDTH="+v_fenetre+",top=0,left=0");
if (genre=="fonds")
	 Numero_copy = "<HTML><HEAD><TITLE>Les fonds d'écran d'Arka's dogs</TITLE>";
else
		Numero_copy = "<HTML><HEAD><TITLE>Les cartes virtuelles d'Arka's dogs</TITLE>";
Numero_copy = Numero_copy+"<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=windows-1252'>";
Numero_copy = Numero_copy+"</HEAD>";
Numero_copy = Numero_copy+"<BODY>";
//Numero_copy = Numero_copy+parametre;
if (genre=="fonds")
		Numero_copy = Numero_copy+"<IFRAME NAME='fenetre' src='../fonds_ecran/diapo_fonds.php?parametre="+parametre+"' align='center' FRAMEBORDER='1' height="+hauteur+" hspace=0 width="+largeur+" scrolling='auto'>";
else
		Numero_copy = Numero_copy+"<IFRAME NAME='fenetre' src='../docs/diapo_cartes.php?parametre="+parametre+"' align='center' FRAMEBORDER='1' height="+hauteur+" hspace=0 width="+largeur+" scrolling='auto'>";

Numero_copy = Numero_copy+"Votre navigateur n'accepte pas les IFRAMES";
Numero_copy = Numero_copy+"</IFRAME>"
Numero_copy = Numero_copy+"<p align='right'><input type='button' onclick='javascript:window.close()' value='Fermer la fenêtre' />"
Numero_copy = Numero_copy+"</BODY></HTML>";
Fenetre_copy.document.write(Numero_copy)
}


var Fenetre_fond
var Numero_fond
function Afficher_diapo_fonds(parametre) 
{
bord=20;
largeur=630;
hauteur=545;
v_fenetre=parseInt(largeur)+parseInt(bord);
h_fenetre=parseInt(hauteur)+(3*parseInt(bord));
Fenetre_fond = window.open("","","HEIGHT="+h_fenetre+",WIDTH="+v_fenetre+",top=0,left=0");
Numero_fond = "<HTML><HEAD><TITLE>Les fonds d'écran d'Arka's dogs</TITLE>";
Numero_fond = Numero_fond+"<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=windows-1252'>";
Numero_fond = Numero_fond+"</HEAD>";
Numero_fond = Numero_fond+"<BODY>";
Numero_fond = Numero_fond+"<IFRAME NAME='fenetre' src='../fonds_ecran/diapo_fonds.php?parametre="+parametre+"' align='center' FRAMEBORDER='1' height="+hauteur+" hspace=0 width="+largeur+" scrolling='auto'>";
Numero_fond = Numero_fond+"Votre navigateur n'accepte pas les IFRAMES";
Numero_fond = Numero_fond+"</IFRAME>"
Numero_fond = Numero_fond+"<p align='right'><input type='button' onclick='javascript:window.close()' value='Fermer la fenêtre' />"
Numero_fond = Numero_fond+"</BODY></HTML>";
Fenetre_fond.document.write(Numero_fond)
}

function fermer_popup()
{ 
var obj_window = window.open('', '_self'); 
obj_window.opener = window; 
obj_window.focus(); 
opener=self; 
self.close(); 
}

/**
*
* UTF-8 data encode / decode
* http://www.webtoolkit.info/
*
**/

var Utf8 = {

    // public method for url encoding
    encode : function (string) {
        string = string.replace(/\r\n/g,"\n");
        var utftext = "";

        for (var n = 0; n < string.length; n++) {

            var c = string.charCodeAt(n);

            if (c < 128) {
                utftext += String.fromCharCode(c);
            }
            else if((c > 127) && (c < 2048)) {
                utftext += String.fromCharCode((c >> 6) | 192);
                utftext += String.fromCharCode((c & 63) | 128);
            }
            else {
                utftext += String.fromCharCode((c >> 12) | 224);
                utftext += String.fromCharCode(((c >> 6) & 63) | 128);
                utftext += String.fromCharCode((c & 63) | 128);
            }

        }

        return utftext;
    },

    // public method for url decoding
    decode : function (utftext) {
        var string = "";
        var i = 0;
        var c = c1 = c2 = 0;

        while ( i < utftext.length ) {

            c = utftext.charCodeAt(i);

            if (c < 128) {
                string += String.fromCharCode(c);
                i++;
            }
            else if((c > 191) && (c < 224)) {
                c2 = utftext.charCodeAt(i+1);
                string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
                i += 2;
            }
            else {
                c2 = utftext.charCodeAt(i+1);
                c3 = utftext.charCodeAt(i+2);
                string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
                i += 3;
            }

        }

        return string;
    }

}

