<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

// Fonction de stockage des scripts à charger
FuncOL = new Array();
function StkFunc(Obj) {
	FuncOL[FuncOL.length] = Obj;
}
	
// Execution des scripts au chargement de la page
window.onload = function() {
	for(i=0; i<FuncOL.length; i++)
		{FuncOL[i]();}
}// JavaScript Document

// Appel du div

function writediv(texte,id_du_div,id_du_champ)
     {
     document.getElementById(id_du_div).innerHTML = texte;
     }
//xhr
function file(fichier)
     {
     if(window.XMLHttpRequest) // FIREFOX
          xhr_object = new XMLHttpRequest();
     else if(window.ActiveXObject) // IE
          xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
     else
          return(false);
     xhr_object.open("GET", fichier, false);
     xhr_object.send(null);
     if(xhr_object.readyState == 4) return(xhr_object.responseText);
     else return(false);
     }

	 
function maj( table,ref,id, nomChamp,valeur ) { 
    
      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", "../js/maj.asp", true); 
            
       xhr_object.onreadystatechange = function() { 
         if(xhr_object.readyState == 4) 
  
		 var i_Code_Retour = xhr_object.responseText
 
           
         } 
        
         xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
          // test pour les case à cocher pour qu'elle renvoit la valeur 0 quand on les décoche 
		 valeur=valeur.replace( /[+]/g, '&#43;');
 if ((document.getElementById(nomChamp).checked) && (document.getElementById(nomChamp).type == "checkbox")) {
		var data ="table="+table+"&ref="+ref+"&id=" + id + "&nomChamp=" + nomChamp +"&valeur="+escape(valeur) ; 
	} else if(document.getElementById(nomChamp).type == "checkbox") {
		var data ="table="+table+"&ref="+ref+"&id=" + id + "&nomChamp=" + nomChamp +"&valeur=0" ; }
else{var data ="table="+table+"&ref="+ref+"&id=" + id + "&nomChamp=" + nomChamp +"&valeur="+escape(valeur) ; 
	}
           xhr_object.send(data); 
		
		 // alert(data)

		    
        } 
     //Fin fonction 
	
		

	   
	   function saveMail(a,b,c,d,e,f,g,h,i,j){
texte = file('http://www.azurconseil.com/saveMailGet.asp?tchoix='+a+'&tquoi='+b+'&tcivilite='+c+'&tnom='+d+'&tsociete='+e+'&tadresse='+f+'&tcp='+g+'&tville='+h+'&ttel='+i+'&tmail='+j);
		//alert(texte)
      writediv(unescape(texte),'merci');
	
	   }
	   

	   