// 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 getLocation(val) {
	//alert(val);
     var req = Inint_AJAX();
     //alert(src);alert(val);
		req.onreadystatechange = function () { 
          if (req.readyState==4) {
               if (req.status==200) {
					//alert(req.responseText);
                    document.getElementById("location").innerHTML=req.responseText; //retuen value
               } 
          }
     };
		 req.open("GET", "get_location.php?val="+val); //make connection
	 
	 req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1"); // set Header
     req.send(null); //send value
}
function getLocation_inRental(val)
{
	//alert(val);
     var req = Inint_AJAX();
     
		 req.onreadystatechange = function () { 
          if (req.readyState==4) {
               if (req.status==200) {
					//alert(req.responseText);
                    document.getElementById("location_rental").innerHTML=req.responseText; //retuen value
               } 
          }
     };
		 req.open("GET", "get_location.php?val="+val); //make connection
	
	 req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1"); // set Header
     req.send(null); //send value
}
