$js_path = "http://www.hotelsguesthouses.co.uk/temp_js/";

function js_include($script){
var script = document.createElement('script');
script.src = $js_path + $script;
script.type = 'text/javascript';
var head = document.getElementsByTagName('head').item(0);
head.appendChild(script);
}

var xmlHttp;

function showUser(town,county,facilities,page,orderby)
{ 

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 }
var url="/new09/inc/newtown-details2.php";
url=url+"?town="+town;
url=url+"&county="+county;
url=url+"&facilities="+facilities;
url=url+"&page="+page;
url=url+"&order="+orderby;
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 //js_include("innit.js");
 //innit2();
 document.getElementById("filter").innerHTML=xmlHttp.responseText;
 } 
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
initialize();
}

