  var x;
   var http_info_request = false;
function makeInfoRequest(CustomerType, CompanyName, FirstName, MiddleInitial, LastName, Country, Gender, Phone, MailAddress) {
      http_info_request = false;
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
         http_info_request = new XMLHttpRequest();
         if (http_info_request.overrideMimeType) {
         	// set type accordingly to anticipated content type
            http_info_request.overrideMimeType('text/xml');
            //http_info_request.overrideMimeType('text/html');
         }
      } else if (window.ActiveXObject) { // IE
         try {
            http_info_request = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               http_info_request = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http_info_request) {
         alert('Cannot create XMLHTTP instance');
         return false;
      }
var Parameters = '&CustomerType=' + CustomerType + '&Phone=' + Phone +  '&Gender=' + Gender + '&Country=' + Country + '&FirstName=' + FirstName + '&MiddleInitial=' + MiddleInitial + '&LastName=' + LastName + '&CompanyName=' + CompanyName + '&MailAddress=' + MailAddress;
      http_info_request.onreadystatechange = RetreiveCountryInfo;
      http_info_request.open('GET', '/f/ag-AjaxProefabonnement?openagent' + Parameters, true);
      http_info_request.send(null);
   }
  function RetreiveCountryInfo() 
{
    if (http_info_request.readyState == 4) {
        if (http_info_request.status == 200) {
      response  = http_info_request.responseXML.documentElement;
//var strReturnAddress = response.getElementsByTagName('returnaddress')[0].firstChild.data;
//location.href= 'strReturnAddress';
location.href = 'ProefabonnementReturn';
   }
 }
}
