/*
  * Ajax call function to call remote page.
  * @param url url to call
  * @param formIdToPost form id to post with the call of the url
  * @param spanIdToModify span id to modify
  */
  function ajaxCallRemotePageDestinations(url,formule) {

    var req = null;

    //Do the Ajax call
    if (window.XMLHttpRequest) { // Non-IE browsers
        req = new XMLHttpRequest();
    } else
    if (window.ActiveXObject) { // IE
        req = new ActiveXObject("Microsoft.XMLHTTP");
    }

    req.onreadystatechange = function() { processStateChangeDestinations(req,formule); };
    req.open("GET", url, true);


    req.send(null);
    //alert(url);
  }

  /*
  * Set as the callback method for when XmlHttpRequest State Changes
  * used by retrieveUrl
  */
  function processStateChangeDestinations(req,formule) {

    if (req.readyState == 4) { // Complete
      if (req.status == 200) { // OK response
      document.getElementById('maritimes').className = '';
      document.getElementById('fluviales').className = '';
      document.getElementById(formule).className = 'on';

      sResponse = req.responseText;
      if (sResponse.length > 10){
       document.getElementById("destinations").innerHTML = sResponse;
       }
      } else {
        alert("Problem with server response:\n " + req.statusText);
      }
    }
  }