function Process3()
{
	o = document.addact2.strCountry3;
	for (m=o.options.length-1;m>=0;m--) {
	  o.options[m]=null
	}
	j = 0;
	o.options[j++]=new Option("选择全部国家... ","");	
	o.options[0].selected=true;
    if (xmlHttp.readyState == 4)
        {
        // only if "OK"
            if (xmlHttp.status == 200)
            {
			var xmlDoc = xmlHttp.responseXML;
			if (xmlDoc.documentElement)
	           {
	           		var xdata  = xmlDoc.getElementsByTagName('tourdata').item(0).firstChild;
	           		if (xdata!=null) {
					r = xdata.data.split("@!@");
					for (i=0;i<r.length;i++) {
					  	c= r[i].split("|");
						o.options[j++]=new Option(c[0],c[1]);
					} 
				}
    		      }
            }
        }
}


function SendQuery3(strArea,isSSL) {
	var cssl;
	cssl = "";
	if(isSSL) cssl = "s";
	url="http"+ cssl +"://www.shasettour.com/travel/Ajax_GenAreaTour_U8.asp?strArea="+ escape(strArea);
	xmlHttp.open('GET', url, true);
	xmlHttp.onreadystatechange = Process3;
	xmlHttp.send(null);
}

function Process4()
{
	o = document.addact2.strCity3;
	for (m=o.options.length-1;m>=0;m--) {
	  o.options[m]=null
	}
	j = 0;
	o.options[j++]=new Option("选择全部城市... ","");	
	o.options[0].selected=true;
    if (xmlHttp.readyState == 4)
        {
        // only if "OK"
            if (xmlHttp.status == 200)
            {
			var xmlDoc = xmlHttp.responseXML;
			if (xmlDoc.documentElement)
	           {
	           		var xdata  = xmlDoc.getElementsByTagName('tourdata').item(0).firstChild;
	           		if (xdata!=null) {
					r = xdata.data.split("@!@");
					for (i=0;i<r.length;i++) {
					  	c= r[i].split("|");
						o.options[j++]=new Option(c[0],c[1]);
					} 
				}
    		      }
            }
        }
}


function SendQuery4(strCountry,isSSL) {
	var cssl;
	cssl = "";
	if(isSSL) cssl = "s";
	url="http"+ cssl +"://www.shasettour.com/travel/Ajax_GenCountryTour.asp?strCountry="+ escape(strCountry);
	xmlHttp.open('GET', url, true);
	xmlHttp.onreadystatechange = Process4;
	xmlHttp.send(null);
}


function getXmlHttpObject() {
	var xmlhttp;
	try
	{
	    xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
	    try
	    {
	        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	    }
	    catch(oc)
	    {
	        xmlhttp=null;
	    }
	}

	if(!xmlhttp && typeof XMLHttpRequest!="undefined")
	{
	    xmlhttp=new XMLHttpRequest();
	}
	return xmlhttp;
}

var xmlHttp = getXmlHttpObject();

