   var http35_request = false;
function makePOSTRequest35(url, parameters) {
      http35_request = false;
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
         http35_request = new XMLHttpRequest();
         if (http35_request.overrideMimeType) {
         	// set type accordingly to anticipated content type
            //http35_request.overrideMimeType('text/xml');
            http35_request.overrideMimeType('text/html');
         }
      } else if (window.ActiveXObject) { // IE
         try {
            http35_request = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               http35_request = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http35_request) {
         alert('Cannot create XMLHTTP instance');
         return false;
      }
 
      http35_request.onreadystatechange = alertContentssavejt;
      http35_request.open('POST', url, true);
      http35_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
      http35_request.setRequestHeader("Content-length", parameters.length);
      http35_request.setRequestHeader("Connection", "close");
      http35_request.send(parameters);
   }
 
   function alertContentssavejt() {
   if(http35_request.readyState==3)
      {
       document.getElementById("jointourblock").innerHTML="<center><br><br><br><br><img src=\"ajax/ajax-loader.gif\"></center>";
      }
      if (http35_request.readyState == 4) {
         if (http35_request.status == 200) {
            //alert(http35_request.responseText);
            result = http35_request.responseText;
            document.getElementById('jointourblock').innerHTML = result;            
         } else {
            alert('There was a problem with the request.');
         }
      }
   }
 
   function jointour2(obj,amount) {
  var poststr = "action=2";
  var counter = 0;
  var cc=1;
  var tourrad='';
  
  if(amount>2)
  {
  for (counter = 0; counter < document.getElementById('jointourform').radio_button.length; counter++)
  {
  
  if (document.getElementById('jointourform').radio_button[counter].checked == true) 
  {
  tourrad = true; 
  }
  else
  {
  tourrad = false;
  }
  
  poststr = poststr + "&tour"+ cc +"=" + tourrad;
  poststr = poststr + "&tourID"+ cc +"=" + document.getElementById("tourID"+cc).value;
  poststr = poststr + "&participant"+ cc +"=" + document.getElementById("participant"+cc).value;
  cc++;	
  }
  }
  else
  {
  if (document.getElementById('jointourform').radio_button[0].checked == true) 
  {
  tourrad = true; 
  }
  else
  {
  tourrad = false;
  }
  
  poststr = poststr + "&tour"+ cc +"=" + tourrad;
  poststr = poststr + "&tourID"+ cc +"=" + document.getElementById("tourID"+cc).value;
  poststr = poststr + "&participant"+ cc +"=" + document.getElementById("participant"+cc).value;
  cc++;
  }				
  poststr = poststr + "&total=" + cc;
  makePOSTRequest35('ajax/first/jointours.php', poststr);
   }
