	 function get(obj,url,id) {
	
      var getstr = "?";
	
      //for (i=0; i<obj.length; i++) {
      //if(obj[i].checked)
	 // {
		   var obj = document.getElementsByTagName("input");


	   for (i=0; i<obj.length; i++) {
      
            if (obj[i].type == "text") {
               getstr += obj[i].name + "=" + obj[i].value + "&";
            }
		
			   if (obj[i].type == "hidden") {
               getstr += obj[i].name + "=" + obj[i].value + "&";
            }
		   if (obj[i].type == "password") {
               getstr += obj[i].name + "=" + obj[i].value + "&";
            }
			 if (obj[i].type == "checkbox" && obj[i].checked) {
               getstr += obj[i].name + "=" + obj[i].value + "&";
            }
			 if (obj[i].type == "radio" && obj[i].checked) {
               getstr += obj[i].name + "=" + obj[i].value + "&";
            }
	  //}
	  // alert(obj[i].value);
	  //}
	  }
	  	// alert(''+getstr+'');

     loadajax(url,getstr,id); 
	 
	 
   }
   function loadpage(url,vex) 
{ 


    var xhr_object = null; 
    var position = vex; 
     if(window.XMLHttpRequest) xhr_object = new XMLHttpRequest(); 
     else 
     if (window.ActiveXObject) xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
  
 // url=url+appel; 
xhr_object.open("GET",url,true);
			
				

    xhr_object.onreadystatechange = function(){ 
    if ( xhr_object.readyState == 4 ) 
    { 
	
    
        document.getElementById(position).innerHTML = xhr_object.responseText; 
		
    } 
    } 
    // dans le cas du get 
   xhr_object.send(null); 
   
  
} 
function loadajax(url,appel,vex) 
{ 


    var xhr_object = null; 
    var position = vex; 
     if(window.XMLHttpRequest) xhr_object = new XMLHttpRequest(); 
     else 
     if (window.ActiveXObject) xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
  
  url=url+appel; 
xhr_object.open("GET",url,true);
			
				

    xhr_object.onreadystatechange = function(){ 
    if ( xhr_object.readyState == 4 ) 
    { 
	
    
        document.getElementById(position).innerHTML = xhr_object.responseText; 
		
    } 
    } 
    // dans le cas du get 
   xhr_object.send(null); 
   
  
} 
function ident()
{
	alert('test');
document.getElementById('formulaire').style.display='none';
}





