function GetSP(O1)
{
   var xmlString = "http://www.easytravel.com.tw/GetSP.aspx?Father="+O1.value;  
   if(window.ActiveXObject)
    {  
 	    xmlhttp1 = new ActiveXObject('Microsoft.XMLHTTP'); 
 	    xmlhttp1.Open("get", xmlString, true);
 	    xmlhttp1.onreadystatechange=ShowSPData;	        
      xmlhttp1.send();  
    }	
    else
    { 	  
 	     xmlhttp1 = new XMLHttpRequest(); 	    
 	     xmlhttp1.onreadystatechange=ShowSPData;                	                    	 
       xmlhttp1.open("get", xmlString, true);       
       xmlhttp1.send(null);     
     }               
}
function ShowSPData()
{
 if(xmlhttp1.readyState==4)   
  {
    document.getElementById("ShowSP").innerHTML="<select name='htp' size='1' OnChange=GetH(this); style=font-size:12px><option selected>不分旅遊地　　　　　　　</option>"+xmlhttp1.responseText+"</select>";
    GetH(document.shcheckinfrm.htp);
  } 
  
}
function GetH(O1)
{
   var xmlString = "http://www.easytravel.com.tw/GetH.aspx?AutoNo="+O1.value+"&Father="+document.shcheckinfrm.hcounty.value;  
   if(window.ActiveXObject)
    {  
 	    xmlhttp1 = new ActiveXObject('Microsoft.XMLHTTP'); 	  
      xmlhttp1.onreadystatechange=ShowHData;                	                    	 
      xmlhttp1.open("get", xmlString, true); 
      xmlhttp1.send();  
    }	
    else
    { 	  
 	     xmlhttp1 = new XMLHttpRequest(); 	                    	                    	 
       xmlhttp1.onreadystatechange=ShowHData;                	                    	 
       xmlhttp1.open("get", xmlString, true); 
       xmlhttp1.send(null);     
     }                       
}
function ShowHData()
{
 if(xmlhttp1.readyState==4)   
  {
    document.getElementById("ShowH").innerHTML="<select name='hhotel' size='1' style=font-size:12px><option selected>不分飯店　　　　　　　　</option>"+xmlhttp1.responseText+"</select>";             
  }   
} 
GetSP(document.shcheckinfrm.hcounty);
GetH(document.shcheckinfrm.htp);