
function changer_mode_debit(){
	var xhr_object = null; 
		if(window.XMLHttpRequest) // Firefox 
			xhr_object = new XMLHttpRequest(); 
		else if(window.ActiveXObject) // Internet Explorer 
			xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
		else
			{ // XMLHttpRequest non supporté par le navigateur 
			alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
			return; 
			} 
		xhr_object.open("POST", "changer_debit.php", true); 
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{alert(xhr_object.responseText);}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = ""; 
		xhr_object.send(data);
		
	}
function test_effet(id){	
	if (document.getElementById(id).style.display == 'none')
		return true;
	else
		return false;
	}
function effet_menu(id){
	if (document.getElementById(id).style.display == 'none')
		Effect.BlindDown(id, {duration:0.5});
	else
		Effect.BlindUp(id, {duration:0.5});
	}
function valider_rechercher_commande(){	
	var num = document.getElementById('num').value;
	if (trim(num)!="")
		{
		var xhr_object = null; 
		if(window.XMLHttpRequest) // Firefox 
			xhr_object = new XMLHttpRequest(); 
		else if(window.ActiveXObject) // Internet Explorer 
			xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
		else
			{ // XMLHttpRequest non supporté par le navigateur 
			alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
			return; 
			} 
		xhr_object.open("POST", "valider_recherche_commande.php", true); 
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{alert(xhr_object.responseText);}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = "num="+num; 
		xhr_object.send(data);
		
		
		}
	}

function voir_commercial_region(region){
	window.open("voir_commercial.php?region="+region, 'commercial', 'fullscreen=no, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes, status=no, width=800px,height=700px');
	}

function bougerTitre() { 
 titre = titre.substring(1, titre.length) + titre.substring(0, 1);
 document.title = titre;
 setTimeout("bougerTitre()", 100);
 }
function modification_langage(langage) {
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "modification_langue.php", true); 
	xhr_object.onreadystatechange = function() 
		{ 
		if(xhr_object.readyState == 4) 
		try 
			{eval(xhr_object.responseText);window.location.reload();}
		catch(e) 
			{alert(xhr_object.responseText);}
		} 
	xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
	var data = "langage="+langage; 
	xhr_object.send(data);
	}
	/*
function initialisation(){
	if (type_navigateur() == 'IE')
		{
		document.getElementById('cellule_banniere').className = "td_banniere_IE";
		document.getElementById('celulle_barre_gauche').className = "td_barre_gauche_IE";
		}
	else
		{
		document.getElementById('cellule_banniere').className = "td_banniere";
		document.getElementById('celulle_barre_gauche').className = "td_barre_gauche";
		}
		
	remplissage_recherche();
	login();
	maj_type_nav();
	initialisation_touche_clavier();
	setInterval("maj_utilisateur_connecte();",intervalle_maj_compteur);
	positionnement_div_cache_acc();
	}
	*/
function maj_type_nav(){
	var type_navigateuraaaa = type_navigateur();
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "maj_type_nav.php", true); 
	xhr_object.onreadystatechange = function() 
		{ 
		if(xhr_object.readyState == 4) 
		try 
			{eval(xhr_object.responseText);}
		catch(e) 
			{alert(xhr_object.responseText);}
		} 
	xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
	var data = "type_navigateur="+type_navigateuraaaa; 
	xhr_object.send(data);
	}
function valider_recherche_avance(){
	var mot = document.getElementById('mot').value;
	var gamme = document.getElementById('gamme').options[document.getElementById('gamme').selectedIndex].value;
	var produit = document.getElementById('produit').options[document.getElementById('produit').selectedIndex].value;
	
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "valider_recherche_avance.php", true); 
	xhr_object.onreadystatechange = function() 
		{ 
		if(xhr_object.readyState == 4) 
		try 
			{eval(xhr_object.responseText);}
		catch(e) 
			{alert(xhr_object.responseText);}
		} 
	xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
	var data = "mot="+mot+"&gamme="+gamme+"&produit="+produit; 
	xhr_object.send(data);
	}
function unload(){
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "unload.php", true); 
	xhr_object.onreadystatechange = function() 
		{ 
		if(xhr_object.readyState == 4) 
		try 
			{eval(xhr_object.responseText);}
		catch(e) 
			{alert(xhr_object.responseText);}
		} 
	xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
	var data = ""; 
	xhr_object.send(data); 
	}

function positionnement_div_cache_acc(){
	barre_gauche = document.getElementById('celulle_barre_gauche');
	div_cache = document.getElementById('div_cache_acceuil');
	var left = positionXY('celulle_barre_gauche','x');
	div_cache.style.left = left+"px";
	div_cache.style.top = "0px";
	}

function positionXY(id,type)
	{
	obj = document.getElementById(id);
    var x=0,y=0;
	if (type == 'x')
		{
		while (obj!=null)
			{
			x+=obj.offsetLeft-obj.scrollLeft;
			obj=obj.offsetParent;
			}
		//x = x - document.getElementById('menu').offsetLeft;
		return x;
		}
	else if (type == 'y')
		{
		while (obj!=null)
			{
			y+=obj.offsetTop-obj.scrollTop;
			obj=obj.offsetParent;
			}
		//y = y - document.getElementById('menu').offsetTop;
		return y;
		}
	else
		{return false;}
	}
function probleme_XHR(fonction){
	var chaine = "";
	chaine = chaine+"<center><br><br><br><br><br><img src='images_site/attention.gif' style='vertical-align:middle;'><br><br><br>";
	chaine = chaine+"<span style='font-family:verdana;font-size:12px; color:red;'>   Problème de connexion à la base de données ";
	chaine = chaine+"<span style='color:#CCCCCC;font-size:10px;'><br>(fonction : <i>"+fonction+"</i>)</span><br><br><br>";
	chaine = chaine+"Veuillez réessayer ultérieurement</span></center>";
	document.getElementById('contenu_site').innerHTML = chaine;
	var type_nav = type_navigateur();
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "rapport_erreur.php", true); 
	xhr_object.onreadystatechange = function() 
		{ 
		if(xhr_object.readyState == 4) 
		try 
			{eval(xhr_object.responseText);}
		catch(e) 
			{alert("Probleme fonction probleme_XHR");}
		} 
	xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
	var data = "fonction="+fonction+"&type_nav="+type_nav; 
	xhr_object.send(data); 
	
	
	}
function initialisation_touche_clavier(){
	if (type_navigateur() == 'IE')
		{document.body.attachEvent("onkeydown", touche_clavier) ;}
	else
		{window.addEventListener('keydown', touche_clavier, true) ;}
	
	}
function touche_clavier(event){
	var touche = event.keyCode;
	if (touche == 13) // touche entré
		{
		if (session_utilisateur == '')
			{valider_connexion(tentative_connexion);}
		else
			{
			if (document.getElementById('recherche').value!=''&&document.getElementById('recherche').value!=' '&&document.getElementById('recherche').value.length>=3)
				valider_recherche();
			}
		}
	}
function type_navigateur(){
	var nav;
	var ua = navigator.userAgent.toLowerCase();
	if ((ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1))
		{nav = "IE";}
	else
		{nav = "w3c";}
	return nav;
	/*isGecko = (ua.indexOf("gecko") != -1);
	isSafari = (ua.indexOf("safari") != -1);
	isKonqueror = (ua.indexOf("konqueror") != -1);*/
	}
	
	
function modifier_info_personnel_proprietaire(id_a_modifier,valeur,id_personnel){
	if (id_a_modifier == 'telephone_perso')
		{
		var chaine = "<input type='text' id='modification_telephone_perso' value='"+valeur+"'>";
		chaine = chaine+"<span style='margin-left:5px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"validation_modification_personnel_proprietaire('"+id_a_modifier+"','"+id_personnel+"');\">Valider</span>";
		chaine = chaine+"<span style='margin-left:15px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"annuler_modification_personnel_proprietaire('"+id_a_modifier+"','"+valeur+"');\">Annuler</span>";
		document.getElementById(id_a_modifier).innerHTML = chaine;
		}
	else if (id_a_modifier=='telephone_direct')
		{
		var chaine = "<input type='text' id='modification_telephone_direct' value='"+valeur+"'>";
		chaine = chaine+"<span style='margin-left:5px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"validation_modification_personnel_proprietaire('"+id_a_modifier+"','"+id_personnel+"');\">Valider</span>";
		chaine = chaine+"<span style='margin-left:15px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"annuler_modification_personnel_proprietaire('"+id_a_modifier+"','"+valeur+"');\">Annuler</span>";
		document.getElementById(id_a_modifier).innerHTML = chaine;
		}
	else if (id_a_modifier=='telephone_portable')
		{
		var chaine = "<input type='text' id='modification_telephone_portable' value='"+valeur+"'>";
		chaine = chaine+"<span style='margin-left:5px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"validation_modification_personnel_proprietaire('"+id_a_modifier+"','"+id_personnel+"');\">Valider</span>";
		chaine = chaine+"<span style='margin-left:15px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"annuler_modification_personnel_proprietaire('"+id_a_modifier+"','"+valeur+"');\">Annuler</span>";
		document.getElementById(id_a_modifier).innerHTML = chaine;
		}
	else if (id_a_modifier=='fax')
		{
		var chaine = "<input type='text' id='modification_fax' value='"+valeur+"'>";
		chaine = chaine+"<span style='margin-left:5px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"validation_modification_personnel_proprietaire('"+id_a_modifier+"','"+id_personnel+"');\">Valider</span>";
		chaine = chaine+"<span style='margin-left:15px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"annuler_modification_personnel_proprietaire('"+id_a_modifier+"','"+valeur+"');\">Annuler</span>";
		document.getElementById(id_a_modifier).innerHTML = chaine;
		}
	else if (id_a_modifier=='email_perso')
		{
		var chaine = "<input type='text' id='modification_email_perso' value='"+valeur+"'>";
		chaine = chaine+"<span style='margin-left:5px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"validation_modification_personnel_proprietaire('"+id_a_modifier+"','"+id_personnel+"');\">Valider</span>";
		chaine = chaine+"<span style='margin-left:15px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"annuler_modification_personnel_proprietaire('"+id_a_modifier+"','"+valeur+"');\">Annuler</span>";
		document.getElementById(id_a_modifier).innerHTML = chaine;
		}
	else if (id_a_modifier=='email_societe')
		{
		var chaine = "<input type='text' id='modification_email_societe' value='"+valeur+"'>";
		chaine = chaine+"<span style='margin-left:5px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"validation_modification_personnel_proprietaire('"+id_a_modifier+"','"+id_personnel+"');\">Valider</span>";
		chaine = chaine+"<span style='margin-left:15px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"annuler_modification_personnel_proprietaire('"+id_a_modifier+"','"+valeur+"');\">Annuler</span>";
		document.getElementById(id_a_modifier).innerHTML = chaine;
		}
	else if (id_a_modifier=='mot_de_passe')
		{
		var chaine = "<input type='password' id='modification_mot_de_passe' >";
		chaine = chaine+"<span style='margin-left:5px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"validation_modification_personnel_proprietaire('"+id_a_modifier+"','"+id_personnel+"');\">Valider</span>";
		chaine = chaine+"<span style='margin-left:15px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"annuler_modification_personnel_proprietaire('"+id_a_modifier+"','"+valeur+"');\">Annuler</span>";
		document.getElementById(id_a_modifier).innerHTML = chaine;
		}
	else if (id_a_modifier=='adresse')
		{
		var reg = new RegExp("\\*/\\*", "ig");
		tab_res = valeur.split(reg);
		adresse = tab_res[0];
		complement = tab_res[1];
		cp = tab_res[2];
		ville = tab_res[3];
		pays = tab_res[4];
		type_ville = 'text';
		var chaine = ": <input type='text' id='modification_adresse' value='"+adresse+"'><br>";
		chaine = chaine+": <input type='text' id='modification_complement' value='"+complement+"'><br>";
		chaine = chaine+": <input type='text' id='cp' value='"+cp+"' onblur='remplissage_ville();' ><br>";
		chaine = chaine+"<div id='select_ville'>: <input type='text' value='"+ville+"' id='ville'></div>";
		chaine = chaine+": "+creation_pays()+"<br><br>";
		chaine = chaine+"<center><span style='margin-left:5px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"validation_modification_personnel_proprietaire('"+id_a_modifier+"','"+id_personnel+"');\">Valider</span>";
		chaine = chaine+"<span style='margin-left:15px;COLOR: #E2E281;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 11px;FONT-WEIGHT:bold;cursor:pointer' onmouseover=\"this.style.color = '#FFDE00';this.style.textDecoration = 'underline';\" onmouseout=\"this.style.color = '#E2E281';this.style.textDecoration = 'none';\" onclick=\"annuler_modification_personnel_proprietaire('"+id_a_modifier+"','"+valeur+"');\">Annuler</span>";
		chaine = chaine+"</center>";
		document.getElementById(id_a_modifier).innerHTML = chaine;
		}
	else
		{}
	
	}
function validation_modification_personnel_proprietaire(id,id_personnel){
	var continu = true;
	if (id == 'telephone_perso')
		{var valeur = document.getElementById('modification_telephone_perso').value;}
	else if (id=='telephone_direct')
		{var valeur = document.getElementById('modification_telephone_direct').value;}
	else if (id=='telephone_portable')
		{var valeur = document.getElementById('modification_telephone_portable').value;}
	else if (id=='fax')
		{var valeur = document.getElementById('modification_fax').value;}
	else if (id=='email_perso')
		{
		var valeur = document.getElementById('modification_email_perso').value;
		var reg = new RegExp("[a-z0-9._-]+@[a-z0-9.-]{2,}[.][a-z]{2,3}", "ig");
		if (reg.test(valeur) == false)
			{
			alert("Adresse e-mail non valide");
			continu = false;
			document.getElementById('modification_email_perso').value = valeur;
			}
		}
	else if (id=='email_societe')
		{
		var valeur = document.getElementById('modification_email_societe').value;
		var reg = new RegExp("[a-z0-9._-]+@[a-z0-9.-]{2,}[.][a-z]{2,3}", "ig");
		if (reg.test(valeur) == false)
			{
			alert("Adresse e-mail non valide");
			continu = false;
			document.getElementById('modification_email_societe').value = valeur;
			}
		}
		
	else if (id=='mot_de_passe')
		{var valeur = document.getElementById('modification_mot_de_passe').value;}
	else if (id=='adresse')
		{
		var adresse = document.getElementById('modification_adresse').value;
		var complement = document.getElementById('modification_complement').value;
		var cp = document.getElementById('cp').value;
		var pays = document.getElementById('modification_pays').options[document.getElementById('modification_pays').selectedIndex].value;
		if (type_ville == 'text')
			{var ville = document.getElementById('ville').value;}
		if (type_ville == 'select')
			{var ville = document.getElementById('choix_ville').options[document.getElementById('choix_ville').selectedIndex].value}
		else
			{}
		var valeur = adresse+"*/*"+complement+"*/*"+cp+"*/*"+ville+"*/*"+pays;
		}
	
	
	
	else
		{}
	
	if (continu != false)
		{
		var xhr_object = null; 
		if(window.XMLHttpRequest) // Firefox 
			xhr_object = new XMLHttpRequest(); 
		else if(window.ActiveXObject) // Internet Explorer 
			xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
		else
			{ // XMLHttpRequest non supporté par le navigateur 
			alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
			return; 
			} 
		xhr_object.open("POST", "validation_modification_personnel_proprietaire_XHR.php", true); 
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('validation_modification_personnel_proprietaire');}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = "id="+id+"&id_personnel="+id_personnel+"&valeur="+valeur; 
		xhr_object.send(data); 
		}
	}
function annuler_modification_personnel_proprietaire(id,valeur){
	
	if (id == 'telephone_perso')
		{document.getElementById(id).innerHTML = valeur;}
	else if (id =='telephone_direct')
		{document.getElementById(id).innerHTML = valeur;}
	else if (id =='telephone_portable')
		{document.getElementById(id).innerHTML = valeur;}
	else if (id =='fax')
		{document.getElementById(id).innerHTML = valeur;}
	else if (id =='email_perso')
		{document.getElementById(id).innerHTML = valeur;}
	else if (id =='email_societe')
		{document.getElementById(id).innerHTML = valeur;}
	else if (id =='mot_de_passe')
		{document.getElementById('mot_de_passe').innerHTML = "<i>Crypté</i>";}
	else if (id =='adresse')
		{
		var reg = new RegExp("\\*/\\*", "ig");
		tab_res = valeur.split(reg);
		adresse = tab_res[0];
		complement = tab_res[1];
		cp = tab_res[2];
		ville = tab_res[3];
		pays = tab_res[4];
		chaine = "";
		chaine = chaine+"<span style=''>"+adresse+"</span><br>";
		chaine = chaine+"<span style=''>"+complement+"</span>";
		chaine = chaine+"<span style='margin-left:5px;margin-right:2px;'>"+cp+"</span>";
		chaine = chaine+"<span style='margin-left:5px;text-transform: uppercase;'>"+ville+"</span><br>";
		chaine = chaine+"<span style='text-transform: uppercase;'>"+pays+"</span>";
		document.getElementById('adresse').innerHTML = chaine;
		
		}
	else
		{}
		
	
	}
	
function creation_pays(){
	var chaine = '';
	chaine = chaine+'<select id="modification_pays">';
	chaine = chaine+'<option value="France" selected="selected">France </option>';

	chaine = chaine+'<option value="Afghanistan">Afghanistan </option>';
	chaine = chaine+'<option value="Afrique_Centrale">Afrique_Centrale </option>';
	chaine = chaine+'<option value="Afrique_du_sud">Afrique_du_Sud </option>';
	chaine = chaine+'<option value="Albanie">Albanie </option>';
	chaine = chaine+'<option value="Algerie">Algerie </option>';
	chaine = chaine+'<option value="Allemagne">Allemagne </option>';
	chaine = chaine+'<option value="Andorre">Andorre </option>';
	chaine = chaine+'<option value="Angola">Angola </option>';
	chaine = chaine+'<option value="Anguilla">Anguilla </option>';
	chaine = chaine+'<option value="Arabie_Saoudite">Arabie_Saoudite </option>';
	chaine = chaine+'<option value="Argentine">Argentine </option>';
	chaine = chaine+'<option value="Armenie">Armenie </option>';
	chaine = chaine+'<option value="Australie">Australie </option>';
	chaine = chaine+'<option value="Autriche">Autriche </option>';
	chaine = chaine+'<option value="Azerbaidjan">Azerbaidjan </option>';

	chaine = chaine+'<option value="Bahamas">Bahamas </option>';
	chaine = chaine+'<option value="Bangladesh">Bangladesh </option>';
	chaine = chaine+'<option value="Barbade">Barbade </option>';
	chaine = chaine+'<option value="Bahrein">Bahrein </option>';
	chaine = chaine+'<option value="Belgique">Belgique </option>';
	chaine = chaine+'<option value="Belize">Belize </option>';
	chaine = chaine+'<option value="Benin">Benin </option>';
	chaine = chaine+'<option value="Bermudes">Bermudes </option>';
	chaine = chaine+'<option value="Bielorussie">Bielorussie </option>';
	chaine = chaine+'<option value="Bolivie">Bolivie </option>';
	chaine = chaine+'<option value="Botswana">Botswana </option>';
	chaine = chaine+'<option value="Bhoutan">Bhoutan </option>';
	chaine = chaine+'<option value="Boznie_Herzegovine">Boznie_Herzegovine </option>';
	chaine = chaine+'<option value="Bresil">Bresil </option>';
	chaine = chaine+'<option value="Brunei">Brunei </option>';
	chaine = chaine+'<option value="Bulgarie">Bulgarie </option>';
	chaine = chaine+'<option value="Burkina_Faso">Burkina_Faso </option>';
	chaine = chaine+'<option value="Burundi">Burundi </option>';

	chaine = chaine+'<option value="Caiman">Caiman </option>';
	chaine = chaine+'<option value="Cambodge">Cambodge </option>';
	chaine = chaine+'<option value="Cameroun">Cameroun </option>';
	chaine = chaine+'<option value="Canada">Canada </option>';
	chaine = chaine+'<option value="Canaries">Canaries </option>';
	chaine = chaine+'<option value="Cap_vert">Cap_Vert </option>';
	chaine = chaine+'<option value="Chili">Chili </option>';
	chaine = chaine+'<option value="Chine">Chine </option>';
	chaine = chaine+'<option value="Chypre">Chypre </option>';
	chaine = chaine+'<option value="Colombie">Colombie </option>';
	chaine = chaine+'<option value="Comores">Colombie </option>';
	chaine = chaine+'<option value="Congo">Congo </option>';
	chaine = chaine+'<option value="Congo_democratique">Congo_democratique </option>';
	chaine = chaine+'<option value="Cook">Cook </option>';
	chaine = chaine+'<option value="Coree_du_Nord">Coree_du_Nord </option>';
	chaine = chaine+'<option value="Coree_du_Sud">Coree_du_Sud </option>';
	chaine = chaine+'<option value="Costa_Rica">Costa_Rica </option>';
	chaine = chaine+'<option value="Cote_d_Ivoire">Côte_d_Ivoire </option>';
	chaine = chaine+'<option value="Croatie">Croatie </option>';
	chaine = chaine+'<option value="Cuba">Cuba </option>';

	chaine = chaine+'<option value="Danemark">Danemark </option>';
	chaine = chaine+'<option value="Djibouti">Djibouti </option>';
	chaine = chaine+'<option value="Dominique">Dominique </option>';

	chaine = chaine+'<option value="Egypte">Egypte </option>';
	chaine = chaine+'<option value="Emirats_Arabes_Unis">Emirats_Arabes_Unis </option>';
	chaine = chaine+'<option value="Equateur">Equateur </option>';
	chaine = chaine+'<option value="Erythree">Erythree </option>';
	chaine = chaine+'<option value="Espagne">Espagne </option>';
	chaine = chaine+'<option value="Estonie">Estonie </option>';
	chaine = chaine+'<option value="Etats_Unis">Etats_Unis </option>';
	chaine = chaine+'<option value="Ethiopie">Ethiopie </option>';

	chaine = chaine+'<option value="Falkland">Falkland </option>';
	chaine = chaine+'<option value="Feroe">Feroe </option>';
	chaine = chaine+'<option value="Fidji">Fidji </option>';
	chaine = chaine+'<option value="Finlande">Finlande </option>';
	chaine = chaine+'<option value="France">France </option>';

	chaine = chaine+'<option value="Gabon">Gabon </option>';
	chaine = chaine+'<option value="Gambie">Gambie </option>';
	chaine = chaine+'<option value="Georgie">Georgie </option>';
	chaine = chaine+'<option value="Ghana">Ghana </option>';
	chaine = chaine+'<option value="Gibraltar">Gibraltar </option>';
	chaine = chaine+'<option value="Grece">Grece </option>';
	chaine = chaine+'<option value="Grenade">Grenade </option>';
	chaine = chaine+'<option value="Groenland">Groenland </option>';
	chaine = chaine+'<option value="Guadeloupe">Guadeloupe </option>';
	chaine = chaine+'<option value="Guam">Guam </option>';
	chaine = chaine+'<option value="Guatemala">Guatemala</option>';
	chaine = chaine+'<option value="Guernesey">Guernesey </option>';
	chaine = chaine+'<option value="Guinee">Guinee </option>';
	chaine = chaine+'<option value="Guinee_Bissau">Guinee_Bissau </option>';
	chaine = chaine+'<option value="Guinee equatoriale">Guinee_Equatoriale </option>';
	chaine = chaine+'<option value="Guyana">Guyana </option>';
	chaine = chaine+'<option value="Guyane_Francaise ">Guyane_Francaise </option>';

	chaine = chaine+'<option value="Haiti">Haiti </option>';
	chaine = chaine+'<option value="Hawaii">Hawaii </option>';
	chaine = chaine+'<option value="Honduras">Honduras </option>';
	chaine = chaine+'<option value="Hong_Kong">Hong_Kong </option>';
	chaine = chaine+'<option value="Hongrie">Hongrie </option>';

	chaine = chaine+'<option value="Inde">Inde </option>';
	chaine = chaine+'<option value="Indonesie">Indonesie </option>';
	chaine = chaine+'<option value="Iran">Iran </option>';
	chaine = chaine+'<option value="Iraq">Iraq </option>';
	chaine = chaine+'<option value="Irlande">Irlande </option>';
	chaine = chaine+'<option value="Islande">Islande </option>';
	chaine = chaine+'<option value="Israel">Israel </option>';
	chaine = chaine+'<option value="Italie">italie </option>';

	chaine = chaine+'<option value="Jamaique">Jamaique </option>';
	chaine = chaine+'<option value="Jan Mayen">Jan Mayen </option>';
	chaine = chaine+'<option value="Japon">Japon </option>';
	chaine = chaine+'<option value="Jersey">Jersey </option>';
	chaine = chaine+'<option value="Jordanie">Jordanie </option>';

	chaine = chaine+'<option value="Kazakhstan">Kazakhstan </option>';
	chaine = chaine+'<option value="Kenya">Kenya </option>';
	chaine = chaine+'<option value="Kirghizstan">Kirghizistan </option>';
	chaine = chaine+'<option value="Kiribati">Kiribati </option>';
	chaine = chaine+'<option value="Koweit">Koweit </option>';

	chaine = chaine+'<option value="Laos">Laos </option>';
	chaine = chaine+'<option value="Lesotho">Lesotho </option>';
	chaine = chaine+'<option value="Lettonie">Lettonie </option>';
	chaine = chaine+'<option value="Liban">Liban </option>';
	chaine = chaine+'<option value="Liberia">Liberia </option>';
	chaine = chaine+'<option value="Liechtenstein">Liechtenstein </option>';
	chaine = chaine+'<option value="Lituanie">Lituanie </option>';
	chaine = chaine+'<option value="Luxembourg">Luxembourg </option>';
	chaine = chaine+'<option value="Lybie">Lybie </option>';

	chaine = chaine+'<option value="Macao">Macao </option>';
	chaine = chaine+'<option value="Macedoine">Macedoine </option>';
	chaine = chaine+'<option value="Madagascar">Madagascar </option>';
	chaine = chaine+'<option value="Madère">Madère </option>';
	chaine = chaine+'<option value="Malaisie">Malaisie </option>';
	chaine = chaine+'<option value="Malawi">Malawi </option>';
	chaine = chaine+'<option value="Maldives">Maldives </option>';
	chaine = chaine+'<option value="Mali">Mali </option>';
	chaine = chaine+'<option value="Malte">Malte </option>';
	chaine = chaine+'<option value="Man">Man </option>';
	chaine = chaine+'<option value="Mariannes du Nord">Mariannes du Nord </option>';
	chaine = chaine+'<option value="Maroc">Maroc </option>';
	chaine = chaine+'<option value="Marshall">Marshall </option>';
	chaine = chaine+'<option value="Martinique">Martinique </option>';
	chaine = chaine+'<option value="Maurice">Maurice </option>';
	chaine = chaine+'<option value="Mauritanie">Mauritanie </option>';
	chaine = chaine+'<option value="Mayotte">Mayotte </option>';
	chaine = chaine+'<option value="Mexique">Mexique </option>';
	chaine = chaine+'<option value="Micronesie">Micronesie </option>';
	chaine = chaine+'<option value="Midway">Midway </option>';
	chaine = chaine+'<option value="Moldavie">Moldavie </option>';
	chaine = chaine+'<option value="Monaco">Monaco </option>';
	chaine = chaine+'<option value="Mongolie">Mongolie </option>';
	chaine = chaine+'<option value="Montserrat">Montserrat </option>';
	chaine = chaine+'<option value="Mozambique">Mozambique </option>';

	chaine = chaine+'<option value="Namibie">Namibie </option>';
	chaine = chaine+'<option value="Nauru">Nauru </option>';
	chaine = chaine+'<option value="Nepal">Nepal </option>';
	chaine = chaine+'<option value="Nicaragua">Nicaragua </option>';
	chaine = chaine+'<option value="Niger">Niger </option>';
	chaine = chaine+'<option value="Nigeria">Nigeria </option>';
	chaine = chaine+'<option value="Niue">Niue </option>';
	chaine = chaine+'<option value="Norfolk">Norfolk </option>';
	chaine = chaine+'<option value="Norvege">Norvege </option>';
	chaine = chaine+'<option value="Nouvelle_Caledonie">Nouvelle_Caledonie </option>';
	chaine = chaine+'<option value="Nouvelle_Zelande">Nouvelle_Zelande </option>';

	chaine = chaine+'<option value="Oman">Oman </option>';
	chaine = chaine+'<option value="Ouganda">Ouganda </option>';
	chaine = chaine+'<option value="Ouzbekistan">Ouzbekistan </option>';

	chaine = chaine+'<option value="Pakistan">Pakistan </option>';
	chaine = chaine+'<option value="Palau">Palau </option>';
	chaine = chaine+'<option value="Palestine">Palestine </option>';
	chaine = chaine+'<option value="Panama">Panama </option>';
	chaine = chaine+'<option value="Papouasie_Nouvelle_Guinee">Papouasie_Nouvelle_Guinee </option>';
	chaine = chaine+'<option value="Paraguay">Paraguay </option>';
	chaine = chaine+'<option value="Pays_Bas">Pays_Bas </option>';
	chaine = chaine+'<option value="Perou">Perou </option>';
	chaine = chaine+'<option value="Philippines">Philippines </option>';
	chaine = chaine+'<option value="Pologne">Pologne </option>';
	chaine = chaine+'<option value="Polynesie">Polynesie </option>';
	chaine = chaine+'<option value="Porto_Rico">Porto_Rico </option>';
	chaine = chaine+'<option value="Portugal">Portugal </option>';

	chaine = chaine+'<option value="Qatar">Qatar </option>';

	chaine = chaine+'<option value="Republique_Dominicaine">Republique_Dominicaine </option>';
	chaine = chaine+'<option value="Republique_Tcheque">Republique_Tcheque </option>';
	chaine = chaine+'<option value="Reunion">Reunion </option>';
	chaine = chaine+'<option value="Roumanie">Roumanie </option>';
	chaine = chaine+'<option value="Royaume_Uni">Royaume_Uni </option>';
	chaine = chaine+'<option value="Russie">Russie </option>';
	chaine = chaine+'<option value="Rwanda">Rwanda </option>';

	chaine = chaine+'<option value="Sahara Occidental">Sahara Occidental </option>';
	chaine = chaine+'<option value="Sainte_Lucie">Sainte_Lucie </option>';
	chaine = chaine+'<option value="Saint_Marin">Saint_Marin </option>';
	chaine = chaine+'<option value="Salomon">Salomon </option>';
	chaine = chaine+'<option value="Salvador">Salvador </option>';
	chaine = chaine+'<option value="Samoa_Occidentales">Samoa_Occidentales</option>';
	chaine = chaine+'<option value="Samoa_Americaine">Samoa_Americaine </option>';
	chaine = chaine+'<option value="Sao_Tome_et_Principe">Sao_Tome_et_Principe </option>';
	chaine = chaine+'<option value="Senegal">Senegal </option>';
	chaine = chaine+'<option value="Seychelles">Seychelles </option>';
	chaine = chaine+'<option value="Sierra Leone">Sierra Leone </option>';
	chaine = chaine+'<option value="Singapour">Singapour </option>';
	chaine = chaine+'<option value="Slovaquie">Slovaquie </option>';
	chaine = chaine+'<option value="Slovenie">Slovenie</option>';
	chaine = chaine+'<option value="Somalie">Somalie </option>';
	chaine = chaine+'<option value="Soudan">Soudan </option>';
	chaine = chaine+'<option value="Sri_Lanka">Sri_Lanka </option>';
	chaine = chaine+'<option value="Suede">Suede </option>';
	chaine = chaine+'<option value="Suisse">Suisse </option>';
	chaine = chaine+'<option value="Surinam">Surinam </option>';
	chaine = chaine+'<option value="Swaziland">Swaziland </option>';
	chaine = chaine+'<option value="Syrie">Syrie </option>';

	chaine = chaine+'<option value="Tadjikistan">Tadjikistan </option>';
	chaine = chaine+'<option value="Taiwan">Taiwan </option>';
	chaine = chaine+'<option value="Tonga">Tonga </option>';
	chaine = chaine+'<option value="Tanzanie">Tanzanie </option>';
	chaine = chaine+'<option value="Tchad">Tchad </option>';
	chaine = chaine+'<option value="Thailande">Thailande </option>';
	chaine = chaine+'<option value="Tibet">Tibet </option>';
	chaine = chaine+'<option value="Timor_Oriental">Timor_Oriental </option>';
	chaine = chaine+'<option value="Togo">Togo </option>';
	chaine = chaine+'<option value="Trinite_et_Tobago">Trinite_et_Tobago </option>';
	chaine = chaine+'<option value="Tristan da cunha">Tristan de cuncha </option>';
	chaine = chaine+'<option value="Tunisie">Tunisie </option>';
	chaine = chaine+'<option value="Turkmenistan">Turmenistan </option>';
	chaine = chaine+'<option value="Turquie">Turquie </option>';

	chaine = chaine+'<option value="Ukraine">Ukraine </option>';
	chaine = chaine+'<option value="Uruguay">Uruguay </option>';

	chaine = chaine+'<option value="Vanuatu">Vanuatu </option>';
	chaine = chaine+'<option value="Vatican">Vatican </option>';
	chaine = chaine+'<option value="Venezuela">Venezuela </option>';
	chaine = chaine+'<option value="Vierges_Americaines">Vierges_Americaines </option>';
	chaine = chaine+'<option value="Vierges_Britanniques">Vierges_Britanniques </option>';
	chaine = chaine+'<option value="Vietnam">Vietnam </option>';

	chaine = chaine+'<option value="Wake">Wake </option>';
	chaine = chaine+'<option value="Wallis et Futuma">Wallis et Futuma </option>';

	chaine = chaine+'<option value="Yemen">Yemen </option>';
	chaine = chaine+'<option value="Yougoslavie">Yougoslavie </option>';

	chaine = chaine+'<option value="Zambie">Zambie </option>';
	chaine = chaine+'<option value="Zimbabwe">Zimbabwe </option>';

	chaine = chaine+'</select>';
	return chaine;
	}


function valider_recherche(){
	var mot = document.getElementById('recherche').value;
	window.location.replace("rechercher.php?mot="+mot);
	/*
	if (mot!='' && mot!=' ')	
		{
		var reg = new RegExp("é", "g");
		mot = mot.replace(reg, "%");
		var xhr_object = null; 
		if(window.XMLHttpRequest) // Firefox 
			xhr_object = new XMLHttpRequest(); 
		else if(window.ActiveXObject) // Internet Explorer 
			xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
		else
			{ // XMLHttpRequest non supporté par le navigateur 
			alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
			return; 
			} 
		xhr_object.open("POST", "recherche_XHR.php", true); 
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('valider_recherche');}	
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = "mot="+mot; 
		xhr_object.send(data); 
		}
	*/
		
	}
function maj_code_postal(nom){
	var id = document.getElementById(nom).value;
	document.getElementById('id_cp').value = id;
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "maj_code_postal_XHR.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('maj_code_postal');}	
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = "id="+id; 
		xhr_object.send(data); 
	}
function maj_code_postal_facturation(nom){
	var id = document.getElementById(nom).value;
	document.getElementById('id_cp_facturation').value = id;
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "maj_code_postal_XHR_facturation.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('maj_code_postal');}	
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = "id="+id; 
		xhr_object.send(data); 
	}

function maj_code_postal_livraison(nom){
	var id = document.getElementById(nom).value;
	document.getElementById('id_cp_livraison').value = id;
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "maj_code_postal_XHR_livraison.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('maj_code_postal');}	
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = "id="+id; 
		xhr_object.send(data); 
	}

function voir_gamme(type_nav){
	var type_nav = type_navigateur();
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "voir_gamme.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('voir_gamme');}	
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = "type_nav="+type_nav; 
		xhr_object.send(data); 
	}
function voir_infos_client(id_utilisateur){
	window.open("voir_infos_client.php?id_utilisateur="+id_utilisateur, 'test', 'fullscreen=no, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes, status=no, width=500px,height=400px');
	}
function voir_famille(id_gamme){
	var type_nav = type_navigateur();
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "voir_famille.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('voir_famille');}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = "id_gamme="+id_gamme+"&type_navigateur="+type_nav; 
		xhr_object.send(data); 
	
	}
function voir_produit(id_gamme,id_famille){
	var type_nav = type_navigateur();
	//chargement();
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "voir_produit.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('voir_produit');}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = "id_gamme="+id_gamme+"&id_famille="+id_famille+"&type_navigateur="+type_nav; 
		xhr_object.send(data); 
	}
function traiter_panier(){
	chargement();
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "traiter_panier.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('traiter_panier');}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = ""; 
		xhr_object.send(data); 
	}
function voir_lien(){
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "voir_liens.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('voir_lien');alert(xhr_object.responseText);}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = ""; 
		xhr_object.send(data); 
	}
function voir_plan_site(){
	chargement();
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "voir_plan_site.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('voir_plan_site');}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = ""; 
		xhr_object.send(data); 
	}
function consultation_du_produit(id_gamme,id_famille,id_produit){
	var type_nav = type_navigateur();
	//chargement();
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "consultation_du_produit.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('consultation_du_produit');}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = "id_produit="+id_produit+"&id_gamme="+id_gamme+"&id_famille="+id_famille+"&type_navigateur="+type_nav; 
		xhr_object.send(data); 
	
	
	}
function voir_infos(){
	
	chargement();
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "voir_info.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('voir_infos');}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = ""; 
		xhr_object.send(data); 
	}
function contact_commercial(){
	//chargement();
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "voir_contact_commercial.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('contact_commercial');}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = ""; 
		xhr_object.send(data); 
	}
function voir_acceuil(){
	
	chargement();
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "voir_acceuil.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{
				eval(xhr_object.responseText);
				voir_gamme();
				}
			catch(e) 
				{probleme_XHR('voir_acceuil');}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = ""; 
		xhr_object.send(data); 
	}


function verification_session_utilisateur(){
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "verification_session_utilisateur.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('verification_session_utilisateur');alert(xhr_object.responseText);}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = ""; 
		xhr_object.send(data); 
	}
function voir_sous_menu(choix){
	verification_session_utilisateur();
	if (session_utilisateur !='')
		{
		if (choix == 'contact')
			{
			if (document.getElementById('sous_menu_contact').style.display!='none')
				{enroulement_sous_menu('sous_menu_contact');}
			else
				{Effect.toggle('sous_menu_contact','slide',{duration:0.2,afterFinish: deroulement_sous_menu});}
			
			if (document.getElementById('sous_menu_loisir').style.display != 'none')	{Effect.toggle('sous_menu_loisir','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_industriel').style.display != 'none')	{Effect.toggle('sous_menu_industriel','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_visite').style.display != 'none')	{Effect.toggle('sous_menu_visite','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_societe').style.display != 'none')	{Effect.toggle('sous_menu_societe','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_agencement').style.display != 'none')	{Effect.toggle('sous_menu_agencement','slide',{duration:0.2});}
			}
		else if (choix == 'agencement')
			{
			if (document.getElementById('sous_menu_agencement').style.display!='none')
				{
				enroulement_sous_menu('sous_menu_agencement');
				voir_acceuil();
				}
			else
				{
				Effect.toggle('sous_menu_agencement','slide',{duration:0.2,afterFinish: deroulement_sous_menu});
				voir_famille('1');
				//chargement();
				}
				
			if (document.getElementById('sous_menu_loisir').style.display != 'none')	{Effect.toggle('sous_menu_loisir','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_industriel').style.display != 'none')	{Effect.toggle('sous_menu_industriel','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_visite').style.display != 'none')	{Effect.toggle('sous_menu_visite','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_societe').style.display != 'none')	{Effect.toggle('sous_menu_societe','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_contact').style.display != 'none')	{Effect.toggle('sous_menu_contact','slide',{duration:0.2});}
			}
		else if (choix == 'loisir')
			{
			if (document.getElementById('sous_menu_loisir').style.display!='none')
				{
				enroulement_sous_menu('sous_menu_loisir');
				voir_acceuil();
				}
			else
				{
				Effect.toggle('sous_menu_loisir','slide',{duration:0.2,afterFinish: deroulement_sous_menu});
				voir_famille('2');
				//chargement();
				}
			
			if (document.getElementById('sous_menu_agencement').style.display != 'none')	{Effect.toggle('sous_menu_agencement','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_industriel').style.display != 'none')	{Effect.toggle('sous_menu_industriel','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_visite').style.display != 'none')	{Effect.toggle('sous_menu_visite','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_societe').style.display != 'none')	{Effect.toggle('sous_menu_societe','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_contact').style.display != 'none')	{Effect.toggle('sous_menu_contact','slide',{duration:0.2});}
			}
		else if (choix == 'industriel')
			{
			if (document.getElementById('sous_menu_industriel').style.display!='none')
				{
				enroulement_sous_menu('sous_menu_industriel');
				voir_acceuil();
				}
			else
				{
				Effect.toggle('sous_menu_industriel','slide',{duration:0.2,afterFinish: deroulement_sous_menu});
				voir_famille('3');
				//chargement();
				}
			
			if (document.getElementById('sous_menu_loisir').style.display != 'none')	{Effect.toggle('sous_menu_loisir','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_agencement').style.display != 'none')	{Effect.toggle('sous_menu_agencement','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_visite').style.display != 'none')	{Effect.toggle('sous_menu_visite','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_societe').style.display != 'none')	{Effect.toggle('sous_menu_societe','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_contact').style.display != 'none')	{Effect.toggle('sous_menu_contact','slide',{duration:0.2});}
			}
			
		else if (choix == 'visite')
			{
			if (document.getElementById('sous_menu_visite').style.display!='none')
				{
				enroulement_sous_menu('sous_menu_visite');
				voir_acceuil();
				}
			else
				{
				Effect.toggle('sous_menu_visite','slide',{duration:0.2,afterFinish: deroulement_sous_menu});
				}
			if (document.getElementById('sous_menu_loisir').style.display != 'none')	{Effect.toggle('sous_menu_loisir','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_industriel').style.display != 'none')	{Effect.toggle('sous_menu_industriel','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_agencement').style.display != 'none')	{Effect.toggle('sous_menu_agencement','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_societe').style.display != 'none')	{Effect.toggle('sous_menu_societe','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_contact').style.display != 'none')	{Effect.toggle('sous_menu_contact','slide',{duration:0.2});}
			}
		else if (choix == 'societe')
			{
			if (document.getElementById('sous_menu_societe').style.display!='none')
				{
				enroulement_sous_menu('sous_menu_societe');
				voir_acceuil();
				}
			else
				{
				Effect.toggle('sous_menu_societe','slide',{duration:0.2,afterFinish: deroulement_sous_menu});
				}
			if (document.getElementById('sous_menu_loisir').style.display != 'none')	{Effect.toggle('sous_menu_loisir','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_industriel').style.display != 'none')	{Effect.toggle('sous_menu_industriel','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_visite').style.display != 'none')	{Effect.toggle('sous_menu_visite','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_agencement').style.display != 'none')	{Effect.toggle('sous_menu_agencement','slide',{duration:0.2});}
			if (document.getElementById('sous_menu_contact').style.display != 'none')	{Effect.toggle('sous_menu_contact','slide',{duration:0.2});}
			}
		
		else
			{}
		}
	else
		{
		alert("Vous devez vous enregistrer avant de pouvoir consulter ce site");
		}
	}
function chargement(){
	//var chaine = '<center><div style="margin-top:250px;border:1px solid #707070;padding:10px;width:200px;text-align:center;background-color:#DEDEDE">';
	var chaine = '<center><div style="margin-top:250px;">';
	chaine = chaine+'<img src="images_site/chargement.gif" ><br><br>';
	chaine = chaine+'</div><center>';
	document.getElementById('contenu_site').innerHTML = chaine;
	}
function voir_administration(){
	window.location.replace("administration.php");
	
	}
function voir_stat(){
	Effect.toggle('consut_stat','slide',{duration:0.5});
	}
function voir_proposition_statistique_utilisateur(id_utilisateur){
	Effect.toggle('liste_proposition_statistique_utilisateur_'+id_utilisateur,'slide',{duration:0.5});
	}
function voir_personnel(){
	Effect.toggle('liste_personnel','slide',{duration:0.5});
	}
function voir_produit_pour_modif(){
	Effect.toggle('liste_produit','slide',{duration:0.5});
	}
function voir_composant_pour_modif(){
	Effect.toggle('liste_composant','slide',{duration:0.5});
	}
function voir_produit_pour_organiser(){
	Effect.toggle('liste_produit_organiser','slide',{duration:0.5});
	}
function voir_composant_pour_organiser(){
	Effect.toggle('liste_composant_organiser','slide',{duration:0.5});
	}
function voir_lien_pour_modif(){
	Effect.toggle('liste_lien','slide',{duration:0.5});
	}
function voir_lien_pour_suppression(){
	Effect.toggle('liste_lien_suppr','slide',{duration:0.5});
	}
	
function voir_produit_pour_suppression(){
	Effect.toggle('liste_produit_supression','slide',{duration:0.5});
	}
function voir_composant_pour_suppression(){
	Effect.toggle('liste_composant_supression','slide',{duration:0.5});
	}
function voir_produit_impression(){
	Effect.toggle('liste_produit_impression','slide',{duration:0.5});
	}
function voir_organiser_famille(){
	Effect.toggle('liste_organiser_famille','slide',{duration:0.5});
	}
function voir_organiser_produit_menu(){
	Effect.toggle('liste_voir_organiser_produit_menu','slide',{duration:0.5});
	}
function voir_news_modification(){
	Effect.toggle('liste_news_modification','slide',{duration:0.5});
	}
function voir_news_suppression(){
	Effect.toggle('liste_news_suppression','slide',{duration:0.5});
	}
function voir_produit_impression_poste(id){
	Effect.toggle('liste_produit_impression_poste_'+id,'slide',{duration:0.5});
	}
function voir_gestion_bdd(){
	Effect.toggle('liste_base','slide',{duration:0.5});
	}

	
function voir_gestion_recrutement(){
	Effect.toggle('gestion_recrutement','slide',{duration:0.5});
	}
function voir_recrutement(){
	Effect.toggle('liste_recrutement','slide',{duration:0.5});
	}
function voir_recrutement_pour_suppression(){
	Effect.toggle('liste_recrutement_suppression','slide',{duration:0.5});
	}
function suppression_produit(id_produit){
	if (confirm("Voulez vous vraiment supprimer ce produit ?"))
		{
		window.open("partie_administration/administration_site/gestion_des_produits/supprimer_produit.php?id_produit="+id_produit,"Supression du produit");
		voir_administration();
		}
	}
function suppression_composant(id_composant){
	if (confirm("Voulez vous vraiment supprimer ce composant ?"))
		{
		window.open("partie_administration/administration_site/gestion_des_composants/supprimer_composant.php?id_composant="+id_composant,"Supression du composant");
		voir_administration();
		}
	}
function impression_produit(id_produit,id_poste)
	{
	window.open("impression_produit.php?id_produit="+id_produit+"&id_poste="+id_poste,"impression de la fiche d'un produit");
	}
function supprimer_annonce(id_recrutement){
	if (confirm("Voulez vous vraiment supprimer cette annonce ?"))
		{
		var xhr_object = null; 
		if(window.XMLHttpRequest) // Firefox 
			xhr_object = new XMLHttpRequest(); 
		else if(window.ActiveXObject) // Internet Explorer 
			xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
		else
			{ // XMLHttpRequest non supporté par le navigateur 
			alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
			return; 
			} 
		xhr_object.open("POST", "partie_administration/administration_site/gestion_recrutement/supprimer_recrutement_XHR.php", true); 
		
			xhr_object.onreadystatechange = function() 
				{ 
				if(xhr_object.readyState == 4) 
				try 
					{eval(xhr_object.responseText);}
				catch(e) 
					{probleme_XHR('supprimer_annonce');}
				} 
			xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
			var data = "id_recrutement="+id_recrutement; 
			xhr_object.send(data); 
		
		}
	}
function suppression_news(id_news){
	if (confirm("Voulez vous vraiment supprimer cette news ?"))
		{
		var xhr_object = null; 
		if(window.XMLHttpRequest) // Firefox 
			xhr_object = new XMLHttpRequest(); 
		else if(window.ActiveXObject) // Internet Explorer 
			xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
		else
			{ // XMLHttpRequest non supporté par le navigateur 
			alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
			return; 
			} 
		xhr_object.open("POST", "partie_administration/administration_site/gestion_des_news/supprimer_news.php", true); 
		
			xhr_object.onreadystatechange = function() 
				{ 
				if(xhr_object.readyState == 4) 
				try 
					{eval(xhr_object.responseText);}
				catch(e) 
					{probleme_XHR('supprimer_news');}
				} 
			xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
			var data = "id_news="+id_news; 
			xhr_object.send(data); 
		
		}
	}
function recrutement(){
	chargement();
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "page_recrutement.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('recrutement');}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = ""; 
		xhr_object.send(data); 
	}
function qui_somme_nous(telephone_abac1,telephone_abac2,fax,email_general){
	if(session_utilisateur)
		{
	var chaine = "";
	chaine = chaine+"<u>Vous &#234;tes ici</u> : <br><br>";
	chaine = chaine+"<div class='emplacement'><img src='images_site/fleche.gif' style='vertical-align:middle;margin-right:10px' >";
	chaine = chaine+"<span class='item_emplacement' onmouseover=\"this.className = 'item_emplacement_over';\"  onmouseout=\"this.className = 'item_emplacement';\" onclick=\"voir_acceuil();\" >Acceuil</span>";
	chaine = chaine+" &#187; ";
	chaine = chaine+"<span class='item_emplacement' onmouseover=\"this.className = 'item_emplacement_over';\"  onmouseout=\"this.className = 'item_emplacement';\" onclick=\"qui_somme_nous();\">Qui sommes-nous</span>";
	chaine = chaine+"</div>";
	chaine = chaine+"<center>";
	
	chaine = chaine+"<div class='titre_haut_droit_contenu'><img src='images_site/qui.png' style='vertical-align:middle;margin-right:5px'>Qui sommes nous&nbsp;&nbsp;&nbsp;</div>";
	
	chaine = chaine+"<div class='container_general'>";
	/*chaine = chaine+"<div class='coin_haut'></div>";*/
	chaine = chaine+"<div class='titre_info'>Qui sommes_nous ?</div>";
	chaine = chaine+"<div class='text'>";
	
	
	chaine = chaine+"<b>ABAC evolution</b> réalise pour vous des études personnalisées ce dont vous avez besoin.";
	chaine = chaine+"<br>C’est vous qui sélectionnez les produits que vous désirez parmi nos références.";
	chaine = chaine+"<br><br>C’est pourquoi nous vous conseillons de réaliser vous-même votre demande via notre site Internet<br><br>";
	
	chaine = chaine+"</div>";
	chaine = chaine+"<div class='annul_float'></div>";
	chaine = chaine+"<div class='coin_bas'></div>";
	chaine = chaine+"</div>";
	
	
	
	chaine = chaine+"<br><br>";
	chaine = chaine+"<center><div class='carte' id='carte'></div></center><br><br><br>";
	
	
	
	
	
	
	
	document.getElementById("contenu_site").innerHTML = chaine;
	
	var rounded = false;
	roundMe(rounded) ;
	
	
	
	
	
	if (GBrowserIsCompatible()) 
		{
		var map = new GMap2(document.getElementById("carte"));
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		map.setCenter(new GLatLng(45.80487122128867, 4.867490530014038), 15);
		map.setMapType(G_HYBRID_MAP);
		var icon = new GIcon();
		icon.image = "societe/icone.png";
		icon.shadow = "societe/ombre_icone.png";
		icon.iconSize = new GSize(15, 13);
		icon.shadowSize = new GSize(22, 20);
		icon.iconAnchor = new GPoint(6, 20);
		icon.infoWindowAnchor = new GPoint(5, 1);
		
		var point = new GLatLng(45.80487122128867, 4.867490530014038);
		

		
		
		var marker = new GMarker(point,icon);
        map.openInfoWindowHtml(point,"<font color=#4F4F4F><b><font color=Blue>ABAC Evolution</font></b><br><br>15 Avenue Barthelemy Thimonnier<br>69300 Caluire-et-Cuire<br>Tel : "+telephone_abac1+"<br>Tel : "+telephone_abac2+"<br>Fax : "+fax+"<br>Mail :"+email_general+"</font>");
		map.addOverlay(createMarker(point,icon));
		
		}
			}
	}
function contact_abac(){
	}
function roundMe(rounded){
		if ( !rounded )
		new Rico.Effect.Round('div', 'coin_haut' ,{corners:'tl tr',bgColor:'#333333'});
		new Rico.Effect.Round('div', 'coin_bas' ,{corners:'bl br',bgColor:'#333333'});
		rounded = true;
		}
function createMarker(point,icon) {
          var marker = new GMarker(point,icon);
          GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml("<font color=#4F4F4F><b><font color=Blue>ABAC Evolution</font></b><br><br>15 Avenue Barthelemy Thimonnier<br>69300 Caluire-et-Cuire<br>Tel : 04-79-36-87-02<br>Tel : 04-78-30-83-17<br>Fax : 06-79-86-90-76<br>Mail :abac@abac-evolution.com</font>");
          });
          return marker;
        }



function prechargement() {
	//PRECHARGE TOUTES LES IMAGES DES DOSSIERS IMAGES_SITE
	/*
	var xhr_object = null; 
	if(window.XMLHttpRequest) // Firefox 
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else
		{ // XMLHttpRequest non supporté par le navigateur 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
		} 
	xhr_object.open("POST", "prechargement_image.php", true); 
	
		xhr_object.onreadystatechange = function() 
			{ 
			if(xhr_object.readyState == 4) 
			try 
				{eval(xhr_object.responseText);}
			catch(e) 
				{probleme_XHR('recrutement');}
			} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = ""; 
		xhr_object.send(data); 
	*/
	}
