	var xmlHttp;
	function createXMLHttpRequest() {
		/// set 1
	     if (window.ActiveXObject) {
		    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		 } 	else if (window.XMLHttpRequest) {
			 xmlHttp = new XMLHttpRequest();
		 }
		/// set 2
		if (window.ActiveXObject) {
		    xmlHttp2 = new ActiveXObject("Microsoft.XMLHTTP");
		 } 	else if (window.XMLHttpRequest) {
			 xmlHttp2 = new XMLHttpRequest();
		 }
	}
	
	function showRoom(nbR,id_hotel) {
			var objForm = document.frm_booking;
			var errMsg = "";
			var objFocus = "";
			function isEmpty(txt)
			{
				return (txt == "");
			}
			Msg = "Please insert Data\n====================\n";	
			if(isEmpty(objForm.date1.value)){
				errMsg += "- Check-In\n";
				objFocus = (objFocus)? objFocus : objForm.date1;
			}
			if(isEmpty(objForm.date2.value)){
				errMsg += "- Check-Out\n";
				objFocus = (objFocus)? objFocus : objForm.date2;
			}
			if(errMsg != ""){
				objFocus.focus();
				alert(Msg+errMsg);
			}
			else{
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_room.php?rooms=" + nbR+"&id_hotel="+id_hotel+"&date1="+objForm.date1.value+"&date2="+objForm.date2.value, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        displayInfo(xmlHttp.responseText);
                    } else {
                        displayInfo("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
		}
        
        function displayInfo() {
            document.getElementById("tbInfo").innerHTML = xmlHttp.responseText;
			 
        }
//////////////// child 1
		function showChild1(nbC) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_child.php?set_child=1&childs=" + nbC, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        displayChild1(xmlHttp.responseText);
                    } else {
                        displayChild1("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function displayChild1() {
            document.getElementById("info_child1").innerHTML = xmlHttp.responseText;
			 
        }
////////////// child 2
		function showChild2(nbC) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_child.php?set_child=2&childs=" + nbC, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        displayChild2(xmlHttp.responseText);
                    } else {
                        displayChild2("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function displayChild2() {
            document.getElementById("info_child2").innerHTML = xmlHttp.responseText;
			 
        }
////////////// child 3
		function showChild3(nbC) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_child.php?set_child=3&childs=" + nbC, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        displayChild3(xmlHttp.responseText);
                    } else {
                        displayChild3("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function displayChild3() {
            document.getElementById("info_child3").innerHTML = xmlHttp.responseText;
			 
        }
////////////// child 4
		function showChild4(nbC) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_child.php?set_child=4&childs=" + nbC, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        displayChild4(xmlHttp.responseText);
                    } else {
                        displayChild4("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function displayChild4() {
            document.getElementById("info_child4").innerHTML = xmlHttp.responseText;
			 
        }
////////////// child 5
		function showChild5(nbC) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_child.php?set_child=5&childs=" + nbC, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        displayChild5(xmlHttp.responseText);
                    } else {
                        displayChild5("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function displayChild5() {
            document.getElementById("info_child5").innerHTML = xmlHttp.responseText;
			 
        }
////////////// child 6
		function showChild6(nbC) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_child.php?set_child=6&childs=" + nbC, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        displayChild6(xmlHttp.responseText);
                    } else {
                        displayChild6("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function displayChild6() {
            document.getElementById("info_child6").innerHTML = xmlHttp.responseText;
			 
        }
////////////// child 7
		function showChild7(nbC) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_child.php?set_child=7&childs=" + nbC, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        displayChild7(xmlHttp.responseText);
                    } else {
                        displayChild7("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function displayChild7() {
            document.getElementById("info_child7").innerHTML = xmlHttp.responseText;
			 
        }
////////////// child 8
		function showChild8(nbC) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_child.php?set_child=8&childs=" + nbC, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        displayChild8(xmlHttp.responseText);
                    } else {
                        displayChild8("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function displayChild8() {
            document.getElementById("info_child8").innerHTML = xmlHttp.responseText;
			 
        }
////////////// child 9
		function showChild9(nbC) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_child.php?set_child=9&childs=" + nbC, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        displayChild9(xmlHttp.responseText);
                    } else {
                        displayChild9("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function displayChild9() {
            document.getElementById("info_child9").innerHTML = xmlHttp.responseText;
			 
        }
////////////// child 10
		function showChild10(nbC) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_child.php?set_child=10&childs=" + nbC, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        displayChild10(xmlHttp.responseText);
                    } else {
                        displayChild10("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function displayChild10() {
            document.getElementById("info_child10").innerHTML = xmlHttp.responseText;
			 
        }

		function test_num(){alert("test");}
////////////// check type 1
		function check_type1(id_hotel,date1,date2,room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_option_child.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_option=1", true);
            xmlHttp2.open("get", "check_room_type.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_type=1", true);
			xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_num_child1(xmlHttp.responseText);
                    } else {
                        display_num_child1("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            }  
			xmlHttp2.onreadystatechange = function () {
                if (xmlHttp2.readyState == 4) {
                    if (xmlHttp2.status == 200) {
						display_type1(xmlHttp2.responseText);
                    } else {
						display_type1("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp2.statusText); 
                    }
                }            
            }  
            xmlHttp2.send(null);
			xmlHttp.send(null);
        }
        
        function display_num_child1() {
            document.getElementById("option_child1").innerHTML = xmlHttp.responseText;
        }
		function display_type1() {
            document.getElementById("show_type1").innerHTML = xmlHttp2.responseText;
        }
////////////// check type 2
		function check_type2(id_hotel,date1,date2,room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_option_child.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_option=2", true);
            xmlHttp2.open("get", "check_room_type.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_type=2", true);
			xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_num_child2(xmlHttp.responseText);
                    } else {
                        display_num_child2("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            }  
			xmlHttp2.onreadystatechange = function () {
                if (xmlHttp2.readyState == 4) {
                    if (xmlHttp2.status == 200) {
						display_type2(xmlHttp2.responseText);
                    } else {
						display_type2("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp2.statusText); 
                    }
                }            
            }  
            xmlHttp2.send(null);
			xmlHttp.send(null);
        }
        
        function display_num_child2() {
            document.getElementById("option_child2").innerHTML = xmlHttp.responseText;
        }
		function display_type2() {
            document.getElementById("show_type2").innerHTML = xmlHttp2.responseText;
        }
////////////// check type 3
		function check_type3(id_hotel,date1,date2,room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_option_child.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_option=3", true);
            xmlHttp2.open("get", "check_room_type.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_type=3", true);
			xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_num_child3(xmlHttp.responseText);
                    } else {
                        display_num_child3("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            }  
			xmlHttp2.onreadystatechange = function () {
                if (xmlHttp2.readyState == 4) {
                    if (xmlHttp2.status == 200) {
						display_type3(xmlHttp2.responseText);
                    } else {
						display_type3("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp2.statusText); 
                    }
                }            
            }  
            xmlHttp2.send(null);
			xmlHttp.send(null);
        }
        
        function display_num_child3() {
            document.getElementById("option_child3").innerHTML = xmlHttp.responseText;
        }
		function display_type3() {
            document.getElementById("show_type3").innerHTML = xmlHttp2.responseText;
        }
////////////// check type 4
		function check_type4(id_hotel,date1,date2,room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_option_child.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_option=4", true);
            xmlHttp2.open("get", "check_room_type.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_type=4", true);
			xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_num_child4(xmlHttp.responseText);
                    } else {
                        display_num_child4("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            }  
			xmlHttp2.onreadystatechange = function () {
                if (xmlHttp2.readyState == 4) {
                    if (xmlHttp2.status == 200) {
						display_type4(xmlHttp2.responseText);
                    } else {
						display_type4("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp2.statusText); 
                    }
                }            
            }  
            xmlHttp2.send(null);
			xmlHttp.send(null);
        }
        
        function display_num_child4() {
            document.getElementById("option_child4").innerHTML = xmlHttp.responseText;
        }
		function display_type4() {
            document.getElementById("show_type4").innerHTML = xmlHttp2.responseText;
        }
////////////// check type 5
		function check_type5(id_hotel,date1,date2,room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_option_child.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_option=5", true);
            xmlHttp2.open("get", "check_room_type.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_type=5", true);
			xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_num_child5(xmlHttp.responseText);
                    } else {
                        display_num_child5("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            }  
			xmlHttp2.onreadystatechange = function () {
                if (xmlHttp2.readyState == 4) {
                    if (xmlHttp2.status == 200) {
						display_type5(xmlHttp2.responseText);
                    } else {
						display_type5("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp2.statusText); 
                    }
                }            
            }  
            xmlHttp2.send(null);
			xmlHttp.send(null);
        }
        
        function display_num_child5() {
            document.getElementById("option_child5").innerHTML = xmlHttp.responseText;
        }
		function display_type5() {
            document.getElementById("show_type5").innerHTML = xmlHttp2.responseText;
        }
////////////// check type 6
		function check_type6(id_hotel,date1,date2,room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_option_child.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_option=6", true);
            xmlHttp2.open("get", "check_room_type.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_type=6", true);
			xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_num_child6(xmlHttp.responseText);
                    } else {
                        display_num_child6("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            }  
			xmlHttp2.onreadystatechange = function () {
                if (xmlHttp2.readyState == 4) {
                    if (xmlHttp2.status == 200) {
						display_type6(xmlHttp2.responseText);
                    } else {
						display_type6("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp2.statusText); 
                    }
                }            
            }  
            xmlHttp2.send(null);
			xmlHttp.send(null);
        }
        
        function display_num_child6() {
            document.getElementById("option_child6").innerHTML = xmlHttp.responseText;
        }
		function display_type6() {
            document.getElementById("show_type6").innerHTML = xmlHttp2.responseText;
        }
////////////// check type 7
		function check_type7(id_hotel,date1,date2,room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_option_child.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_option=7", true);
            xmlHttp2.open("get", "check_room_type.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_type=7", true);
			xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_num_child7(xmlHttp.responseText);
                    } else {
                        display_num_child7("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            }  
			xmlHttp2.onreadystatechange = function () {
                if (xmlHttp2.readyState == 4) {
                    if (xmlHttp2.status == 200) {
						display_type7(xmlHttp2.responseText);
                    } else {
						display_type7("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp2.statusText); 
                    }
                }            
            }  
            xmlHttp2.send(null);
			xmlHttp.send(null);
        }
        
        function display_num_child7() {
            document.getElementById("option_child7").innerHTML = xmlHttp.responseText;
        }
		function display_type7() {
            document.getElementById("show_type7").innerHTML = xmlHttp2.responseText;
        }
////////////// check type 8
		function check_type8(id_hotel,date1,date2,room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_option_child.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_option=8", true);
            xmlHttp2.open("get", "check_room_type.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_type=8", true);
			xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_num_child8(xmlHttp.responseText);
                    } else {
                        display_num_child8("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            }  
			xmlHttp2.onreadystatechange = function () {
                if (xmlHttp2.readyState == 4) {
                    if (xmlHttp2.status == 200) {
						display_type8(xmlHttp2.responseText);
                    } else {
						display_type8("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp2.statusText); 
                    }
                }            
            }  
            xmlHttp2.send(null);
			xmlHttp.send(null);
        }
        
        function display_num_child8() {
            document.getElementById("option_child8").innerHTML = xmlHttp.responseText;
        }
		function display_type8() {
            document.getElementById("show_type8").innerHTML = xmlHttp2.responseText;
        }
////////////// check type 9
		function check_type9(id_hotel,date1,date2,room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_option_child.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_option=9", true);
            xmlHttp2.open("get", "check_room_type.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_type=9", true);
			xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_num_child9(xmlHttp.responseText);
                    } else {
                        display_num_child9("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            }  
			xmlHttp2.onreadystatechange = function () {
                if (xmlHttp2.readyState == 4) {
                    if (xmlHttp2.status == 200) {
						display_type9(xmlHttp2.responseText);
                    } else {
						display_type9("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp2.statusText); 
                    }
                }            
            }  
            xmlHttp2.send(null);
			xmlHttp.send(null);
        }
        
        function display_num_child9() {
            document.getElementById("option_child9").innerHTML = xmlHttp.responseText;
        }
		function display_type9() {
            document.getElementById("show_type9").innerHTML = xmlHttp2.responseText;
        }
////////////// check type 10
		function check_type10(id_hotel,date1,date2,room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "buil_option_child.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_option=10", true);
            xmlHttp2.open("get", "check_room_type.php?id_hotel=" + id_hotel+"&date1="+date1+"&date2="+date2+"&room_type="+room_type+"&num_type=10", true);
			xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_num_child10(xmlHttp.responseText);
                    } else {
                        display_num_child10("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            }  
			xmlHttp2.onreadystatechange = function () {
                if (xmlHttp2.readyState == 4) {
                    if (xmlHttp2.status == 200) {
						display_type10(xmlHttp2.responseText);
                    } else {
						display_type10("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp2.statusText); 
                    }
                }            
            }  
            xmlHttp2.send(null);
			xmlHttp.send(null);
        }
        
        function display_num_child10() {
            document.getElementById("option_child10").innerHTML = xmlHttp.responseText;
        }
		function display_type10() {
            document.getElementById("show_type10").innerHTML = xmlHttp2.responseText;
        }
////////////// check adult 1
		function check_adult1(room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "check_adult.php?num_adult=1&room_type=" + room_type, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_adult1(xmlHttp.responseText);
                    } else {
                        display_adult1("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function display_adult1() {
            document.getElementById("show_adult1").innerHTML = xmlHttp.responseText;
		}
////////////// check adult 2
		function check_adult2(room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "check_adult.php?num_adult=2&room_type=" + room_type, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_adult2(xmlHttp.responseText);
                    } else {
                        display_adult2("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function display_adult2() {
            document.getElementById("show_adult2").innerHTML = xmlHttp.responseText;
		}
////////////// check adult 3
		function check_adult3(room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "check_adult.php?num_adult=3&room_type=" + room_type, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_adult3(xmlHttp.responseText);
                    } else {
                        display_adult3("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function display_adult3() {
            document.getElementById("show_adult3").innerHTML = xmlHttp.responseText;
		}
////////////// check adult 4
		function check_adult4(room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "check_adult.php?num_adult=4&room_type=" + room_type, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_adult4(xmlHttp.responseText);
                    } else {
                        display_adult4("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function display_adult4() {
            document.getElementById("show_adult4").innerHTML = xmlHttp.responseText;
		}
////////////// check adult 5
		function check_adult5(room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "check_adult.php?num_adult=5&room_type=" + room_type, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_adult5(xmlHttp.responseText);
                    } else {
                        display_adult5("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function display_adult5() {
            document.getElementById("show_adult5").innerHTML = xmlHttp.responseText;
		}
////////////// check adult 6
		function check_adult6(room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "check_adult.php?num_adult=6&room_type=" + room_type, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_adult6(xmlHttp.responseText);
                    } else {
                        display_adult6("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function display_adult6() {
            document.getElementById("show_adult6").innerHTML = xmlHttp.responseText;
		}
////////////// check adult 7
		function check_adult7(room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "check_adult.php?num_adult=7&room_type=" + room_type, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_adult7(xmlHttp.responseText);
                    } else {
                        display_adult7("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function display_adult7() {
            document.getElementById("show_adult7").innerHTML = xmlHttp.responseText;
		}
////////////// check adult 8
		function check_adult8(room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "check_adult.php?num_adult=8&room_type=" + room_type, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_adult8(xmlHttp.responseText);
                    } else {
                        display_adult8("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function display_adult8() {
            document.getElementById("show_adult8").innerHTML = xmlHttp.responseText;
		}
////////////// check adult 9
		function check_adult9(room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "check_adult.php?num_adult=9&room_type=" + room_type, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_adult9(xmlHttp.responseText);
                    } else {
                        display_adult9("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function display_adult9() {
            document.getElementById("show_adult9").innerHTML = xmlHttp.responseText;
		}
////////////// check adult 10
		function check_adult10(room_type) {
		    createXMLHttpRequest();
            //var sText = document.getElementById("dataget").value;
            xmlHttp.open("get", "check_adult.php?num_adult=10&room_type=" + room_type, true);
            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        display_adult10(xmlHttp.responseText);
                    } else {
                        display_adult10("¾º¢éÍ¼Ô´¾ÅÒ´: " + xmlHttp.statusText); 
                    }
                }            
            };
            xmlHttp.send(null);
        }
        
        function display_adult10() {
            document.getElementById("show_adult10").innerHTML = xmlHttp.responseText;
		}
