// =========================================
function doAdd(){LastName=document.getElementById('LastName').value;FirstName=document.getElementById('FirstName').value;email=document.getElementById('email').value;city=document.getElementById('city').value;state=document.getElementById('state').value;Country=document.getElementById('Country').value;Phone=document.getElementById('Phone').value;Fax=document.getElementById('Fax').value;ArrivalDate=document.getElementById('ArrivalDate').value;ArrivalMonth=document.getElementById('ArrivalMonth').value;DepartureDate=document.getElementById('DepartureDate').value;DepartureMonth=document.getElementById('DepartureMonth').value;NumberOfNights=document.getElementById('NumberOfNights').value;NumberOfAdults=document.getElementById('NumberOfAdults').value;NumberOfChildren=document.getElementById('NumberOfChildren').value;AgeOfChildren=document.getElementById('AgeOfChildren').value;NumberOfRooms1=document.getElementById('NumberOfRooms1').value;TypeOfRoom1=document.getElementById('TypeOfRoom1').value;Conditions1=document.getElementById('Conditions1').value;TypeOfAccommodation=document.getElementById('TypeOfAccommodation').value;Quality=document.getElementById('Quality').value;Location=document.getElementById('Location').value;OtherPlaces=document.getElementById('OtherPlaces').value;Comments=document.getElementById('Comments').value;xmlHttp=GetXmlHttpObject()
if (xmlHttp==null){alert ("Browser does not support HTTP Request")
return
} 
var url="doAdd.php"
url=url+"?LastName="+encodeURIComponent(LastName)+"&FirstName="+encodeURIComponent(FirstName)+"&email="+encodeURIComponent(email)+"&city="+encodeURIComponent(city)+"&state="+encodeURIComponent(state)+"&Country="+encodeURIComponent(Country)+"&Phone="+encodeURIComponent(Phone)+"&Fax="+encodeURIComponent(Fax)+"&ArrivalDate="+encodeURIComponent(ArrivalDate)+"&ArrivalMonth="+encodeURIComponent(ArrivalMonth)+"&DepartureDate="+encodeURIComponent(DepartureDate)+"&DepartureMonth="+encodeURIComponent(DepartureMonth)+"&NumberOfNights="+encodeURIComponent(NumberOfNights)+"&NumberOfAdults="+encodeURIComponent(NumberOfAdults)+"&NumberOfChildren="+encodeURIComponent(NumberOfChildren)+"&AgeOfChildren="+encodeURIComponent(AgeOfChildren)+"&NumberOfRooms1="+encodeURIComponent(NumberOfRooms1)+"&TypeOfRoom1="+encodeURIComponent(TypeOfRoom1)+"&Conditions1="+encodeURIComponent(Conditions1)+"&TypeOfAccommodation="+encodeURIComponent(TypeOfAccommodation)+"&Quality="+encodeURIComponent(Quality)+"&Location="+encodeURIComponent(Location)+"&OtherPlaces="+encodeURIComponent(OtherPlaces)+"&Comments="+encodeURIComponent(Comments)
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateAdded
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
} 
function stateAdded(){if (xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("result").innerHTML=xmlHttp.responseText;} else{document.getElementById('result').innerHTML='<div style="border:1px solid #45BF2D;background-color: #DDE6D0;padding: 5px;color:#000;font-family:arial">Loading...</div>';}}
function GetXmlHttpObject(){var xmlHttp=null;try{
xmlHttp=new XMLHttpRequest();} catch (e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");} catch (e){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}

