// JavaScript Document
function Inint_AJAX() {
   try { return new ActiveXObject("Msxml2.XMLHTTP");  } catch(e) {} //IE
   try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE
   try { return new XMLHttpRequest();          } catch(e) {} //Native Javascript
   alert("XMLHttpRequest not supported");
   return null;
}

function dochange_hotel(src,val){
     var req = Inint_AJAX();
	 var val2 = val;
	 
     req.onreadystatechange = function () { 
         if (req.readyState==4) {
               if (req.status==200) {
                    document.getElementById(src).innerHTML=req.responseText; 
              } 
          }
     };
     req.open("GET", "condition_hotel.php?src="+src+"&val="+val2); 
     req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=tis-620"); 
     req.send(null); 
}

function dochange_hotel_jp(src,val){
     var req = Inint_AJAX();
	 var val2 = val;
	 
     req.onreadystatechange = function () { 
         if (req.readyState==4) {
               if (req.status==200) {
                    document.getElementById(src).innerHTML=req.responseText; 
              } 
          }
     };
     req.open("GET", "../back/condition_hotel.php?src="+src+"&val="+val2); 
     req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=tis-620"); 
     req.send(null); 
}



function dochange_hotel2(src,val,sel){
     var req = Inint_AJAX();
	 var val2 = val;
	 
     req.onreadystatechange = function () { 
         if (req.readyState==4) {
               if (req.status==200) {
                    document.getElementById(src).innerHTML=req.responseText; 
              } 
          }
     };
     req.open("GET", "condition_hotel.php?src="+src+"&val="+val2+"&sel="+sel); 
     req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=tis-620"); 
     req.send(null); 
}

function preview_popup(theURL,winName,features)
{
  window.open(theURL,winName,features).focus();
}
