var xmlHttpBar

function hideDiv() {
	document.getElementById("locationdiv").style.display="none";
}

function showLocations(str)
{
document.getElementById("barloader").innerHTML="<img src='/accommodation/tabinc/tabimg/barloader.gif' style='position:relative; top:0px; left:-110px;'>";
if (str.length==0)
  {
  document.getElementById("barloader").innerHTML=""
  document.getElementById("locationdiv").innerHTML="";
  return;
  }
xmlHttpBar=GetxmlHttpBarObject()
if (xmlHttpBar==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="/accommodation/tabinc/ajaxbar.asp";
url=url+"?loc="+str;
url=url+"&sid="+Math.random();
xmlHttpBar.onreadystatechange=barStateChanged;
xmlHttpBar.open("GET",url,true);
xmlHttpBar.send(null);
} 

function barStateChanged() 
{ 
if (xmlHttpBar.readyState==4)
{ 
document.getElementById("locationdiv").innerHTML=xmlHttpBar.responseText;
document.getElementById("locationdiv").style.display="block";
document.getElementById("barloader").innerHTML=""
}
}

function GetxmlHttpBarObject()
{
var xmlHttpBar=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttpBar=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttpBar=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttpBar=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttpBar;
}
