<!--
function inviaFormPrenotazione()
{
		var params = new Array();
		params.push('nome=' + document.prenota.nome.value);
		params.push('cognome=' + document.prenota.cognome.value);
		params.push('email=' + document.prenota.email.value);
		params.push('telefono=' + document.prenota.telefono.value);
		params.push('prenota_da=' + document.prenota.prenota_da.value);
		params.push('prenota_a=' + document.prenota.prenota_a.value);
		params.push('informazioni=' + document.prenota.informazioni.value);
    if (document.prenota.privacy.checked === true)
    {
		  params.push('privacy=1');
    }
    else
    {
      params.push('privacy=0');
    }
		params.push('lang=' + document.prenota.lang.value);
	  params.push('hotel_id=' + document.prenota.hotel_id.value);
		http.open('POST', '/ajax.prenotazione_hotel.html');
		http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		http.onreadystatechange = esitoPrenotazioneHotel;
		var strParams = params.join("&");
		http.send(strParams);
}

function esitoPrenotazioneHotel()
{
	if (http.readyState == 4)
	{
			var xmlDocument = http.responseXML;
      var stato = xmlDocument.getElementsByTagName("stato")[0].firstChild.nodeValue;
      var messaggio = xmlDocument.getElementsByTagName("messaggio")[0].firstChild.nodeValue;
      alert(messaggio);
      if (stato == 1)
      {
        document.prenota.nome.value = "";
        document.prenota.cognome.value = "";
        document.prenota.email.value = "";
        document.prenota.telefono.value = "";
        document.prenota.prenota_da.value = "";
        document.prenota.prenota_a.value = "";
        document.prenota.informazioni.value = "";
        document.prenota.privacy.checked = false;
      }

  }
}
-->