function affichePhotoGr(image, titre, texte)
{	fichier = 'php/photo_zoom.php?image='+image+'&titre='+titre+'&texte='+texte;	window.open(fichier,'', 'menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=700,height=600');}

function confirme_suppr() {
	return confirm("Tu es sûr de vouloir supprimer cet élément?");
}

function roulage_info_change_affichage(element) { 
	var menu = document.getElementById('bloc_'+element); 
  	var titre = document.getElementById('titre_'+element);
	if(menu.className == 'info_on') {
		menu.className = 'info_off';
		titre.className = 'info_titre_off';
	} else {
		menu.className = 'info_on';
		titre.className = 'info_titre_on';
	}
	return true;
}

function inscription_mdp()
{
	var mdp = "";
	var liste_min = "azertyuiopqsdfghjklmwxcvbn";
	var liste_maj = "AZERTYUIOPQSDFGHJKLMWXCVBN";
	var liste_chi = "0123456789";
	var liste_sig = "-_.";
	for(var i=0; i<10; i++) {
		var num = Math.round(Math.random()*3);
		switch (num) {
		case 1:
			liste = liste_maj;
			break;
		case 2:
			liste = liste_chi;
			break;
		case 3:
			liste = liste_sig;
			break;
		default :
			liste = liste_min;
			break;
		}
		long = liste.length-1;
		pos = Math.round(Math.random()*long);
		mdp += liste.charAt(pos);
	}	document.forms[0].user_mdp.value = mdp;}
function verifieChampInscription()
{	if (document.forms[0].user_login.value.length == 0) {		alert("Le login est incorrect !");		return false;	}
	if (document.forms[0].user_mdp.value.length < 5) {		alert("Le mot de passe est incorrect !");		return false;	}	var a=document.forms[0].user_email.value;	var test="" + a;	for(var k=0; k<test.length; k++) {		var c = test.substring(k,k+1);		if(c == "@") {			return true;		}	}	alert("Adresse e-mail incorrect");	return false;}

function verifieChampContact()
{
	if (document.forms[0].email.value.length == 0) {		alert("Il faut préciser ton adresse e-mail.");		return false;	}
}

function verifieChampDate()
{
	if (document.forms[0].circuit_id.options.selectedIndex == 0 && document.forms[0].circuit.value.length == 0) {		alert("Il faut choisir un circuit pour ajouter un roulage");		return false;	}
	if (document.forms[0]. orga_id.options.selectedIndex == 0 && document.forms[0]. orga.value.length == 0) {		alert("Merci de préciser qui organise ce roulage.");		return false;	}
	if (document.forms[0].tarif.value.length == 0) {		alert("Merci de préciser le tarif pour ce roulage. Si tu ne le connais pas indique 0, en attendant...");		return false;	}}

function verifieChampConnexion()
{
	if (document.forms[0].connexion_login.value.length == 0) {		alert("Le login est incorrect !");		return false;	}
	if (document.forms[0].connexion_mdp.value.length < 5) {		alert("Le mot de passe est incorrect !");		return false;	}
}

function verifieChampRecherche()
{
	if (document.forms[0].r.value.length == 0) {		return false;	}
}

function verifieChampEnvoiIdentifiant()
{

}