	var myRequest = null;
	var myRequest2 = null;
	var myRequest3 = null;

	function CreateXmlHttpReq(handler) {
	  var xmlhttp = null;
	  try {
		xmlhttp = new XMLHttpRequest();
	  } catch(e) {
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	  }
	  xmlhttp.onreadystatechange = handler;
	  return xmlhttp;
	}
	
	function myHandler() {
		if (myRequest.readyState == 4 && myRequest.status == 200) {
			document.getElementById("info").innerHTML = myRequest.responseText;
		}
	}
	
	function invia() {
		var r = Math.random();		
		var ga = document.getElementById('ga').options[document.getElementById('ga').selectedIndex].value;
		var ma = document.getElementById('ma').options[document.getElementById('ma').selectedIndex].value;
		var aa = document.getElementById('aa').options[document.getElementById('aa').selectedIndex].value;
		var gp = document.getElementById('gp').options[document.getElementById('gp').selectedIndex].value;
		var mp = document.getElementById('mp').options[document.getElementById('mp').selectedIndex].value;
		var ap = document.getElementById('ap').options[document.getElementById('ap').selectedIndex].value;

		var adulti = document.getElementById('adulti').value;
		var bambini = document.getElementById('bambini').value;
		var singole = document.getElementById('singole').value;
		var matrimoniali = document.getElementById('matrimoniali').value;
		var note = document.getElementById('note').value;
		var nome = document.getElementById('nome').value;
		var telefono = document.getElementById('telefono').value;
		var posta = document.getElementById('posta').value;
		var privacy = document.getElementById('privacy').value;
		var offerte = document.getElementById('offerte').value;
		var trattamento = document.getElementById('trattamento').options[document.getElementById('trattamento').selectedIndex].value;
		myRequest = CreateXmlHttpReq(myHandler);
		myRequest.open("GET","/dformed.php?ga="+ga+"&ma="+ma+"&aa="+aa+"&gp="+gp+"&mp="+mp+"&ap="+ap+"&nome="+nome+"&posta="+posta+"&telefono="+telefono+"&trattamento="+trattamento+"&adulti="+adulti+"&bambini="+bambini+"&singole="+singole+"&matrimoniali="+matrimoniali+"&note="+note+"&privacy="+privacy+"&offerte="+offerte+"&rand="+escape(r));
		myRequest.send(null);
	}