
function sendData(url, isOpen, isGetMethod)
{
    //alert("send1"+ville);
    var xmlhttp=false;
	var retour='';
    //alert("0");    
            
    //------------------------------------------------------
    // Load the HTTP Activex for AJAX
    //------------------------------------------------------
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
        try {
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (E) {
           // alert("3");
            xmlhttp = false;
        }
    }


    //------------------------------------------------------
    // Create the HTTP Object request
    //------------------------------------------------------
    if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
      xmlhttp = new XMLHttpRequest();
    }
    typeTransaction="GET";
    if (!isGetMethod) {
        typeTransaction="POST";
    }
    //alert("send2");

    //alert("ss1"+url);
     xmlhttp.open(typeTransaction, url, isOpen);
     //alert("1a");
    xmlhttp.onreadystatechange=function() {
        //alert("1b");
    
        //------------------------------------------------------
        // Process the response
        //------------------------------------------------------
        if (xmlhttp.readyState==4) {
            retour = xmlhttp.responseText;
        }
        //alert("1c");
        //alert("send3");
        if (retour != '') {
            //alert("send4");
            document.getElementById('infotitre2').innerHTML= retour;
            //alert("send5");
            //document.getElementById('idvilleinfo1').style.display ='none';
            //document.getElementById('idvilleinfo2').style.display ='block';
            //document.getElementById('idresultsearch').style.display ='block';
            
        }
    }
    xmlhttp.send(null);

	
    
	
	return retour;
 }



 

 