function AjaxRequest() {

	var xmlObj = false;

	var CBfunc,ObjSelf;

	ObjSelf=this;

	try { xmlObj=new XMLHttpRequest; }

	catch(e) {

		try { xmlObj=new ActiveXObject("MSXML2.XMLHTTP"); }

		catch(e2) {

			try { xmlObj=new ActiveXObject("Microsoft.XMLHTTP"); }

			catch(e3) { xmlObj=false; }

		}

	}

	if (!xmlObj) return false;

	this.method="POST";

	this.url;

	this.async=true;

	this.content="";

	this.callback=function(cbobj) {return;}

	this.send=function() {

		if(!this.method||!this.url||!this.async) return false;

		xmlObj.open (this.method, this.url, this.async);

		if(this.method=="POST") xmlObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");

		xmlObj.onreadystatechange=function() {

			if(xmlObj.readyState==4) {

				if(xmlObj.status==200) {

					ObjSelf.callback(xmlObj);

				}

			}

		}

		if(this.method=="POST") xmlObj.send(this.content);

		else xmlObj.send(null);

	}

}

function OnChangeContact(index){

	try{

   var alteremailobj=document.getElementById("alteremail");

   var dayphoneobj=document.getElementById("dayphone");

   var evephoneobj=document.getElementById("evephone"); 

    var besttimeobj=document.getElementById("besttime"); 

	 var faxobj=document.getElementById("fax"); 

	  var msnobj=document.getElementById("msn");  

   switch(index){

      case 1:

	     alteremailobj.style.display="";

		 dayphoneobj.style.display="";

		 evephoneobj.style.display="";

	     break;

	  case 2:

	     alteremailobj.style.display="";

		 dayphoneobj.style.display="";

		 evephoneobj.style.display="none";

		 besttimeobj.style.display="";

		 faxobj.style.display="none";

		 msnobj.style.display="none";

	     break;

	  case 3:

	     alteremailobj.style.display="";

		 dayphoneobj.style.display="none";

		 evephoneobj.style.display="";

		  besttimeobj.style.display="";

		 faxobj.style.display="none";

		 msnobj.style.display="none";

	     break;

	  case 4:

	     alteremailobj.style.display="";

		 dayphoneobj.style.display="none";

		 evephoneobj.style.display="none";

		  besttimeobj.style.display="none";

		 faxobj.style.display="";

		 msnobj.style.display="none";

	     break;

	  case 5:

	     alteremailobj.style.display="";

		 dayphoneobj.style.display="none";

		 evephoneobj.style.display="none";

		  besttimeobj.style.display="none";

		 faxobj.style.display="none";

		 msnobj.style.display="";

	     break;

   }  

	}

	catch(err){

	}

}
function OnChangeTour(index){

	try{

   var alterprivateobj=document.getElementById("privatetour");
   var altergroupobj=document.getElementById("grouptour");
   
   switch(index){

      case 1:

	     alterprivateobj.style.display="";

		 altergroupobj.style.display="none";

	     break;
		case 2:

	     alterprivateobj.style.display="none";

		 altergroupobj.style.display="";

	     break;
		   }  

	}

	catch(err){

	}

}

function EncodePostText(text1){

	var temptxt=text1.replace(/&/g,"@001@");

	temptxt=temptxt.replace(/'/g,"@002@");

	temptxt=temptxt.replace(/"/g,"@003@");

	return temptxt;

}
