function sendRequest() {
	//new Ajax.Request("./dir_results.php",
	//new Ajax.Request("/webtools/data/dir_results.php",
	new Ajax.Request("/webtools/dir_results.php",
					{
					method: 'post',
					parameters: 'other='+$F('other')+'&city='+$F('city')+'&tow='+$F('tow'),
					onComplete: showResponse
					});
	}
function showResponse(req){
	$('show').innerHTML= req.responseText;
	document.getElementById('other').focus();
}
function clearCrt(){
	document.getElementById('other').value='';
	document.getElementById('city').selectedIndex ='All';
	document.getElementById('tow').selectedIndex ='All';
	document.getElementById('show').innerHTML='';
	document.getElementById('other').focus();
}
function popup()
{
	window.open('/webtools/helpsearch.php', '', 'width=680,height=390,scrollbars=yes,location=no');
}
function searchKeyPress(e){
	// look for window.event in case event isn't passed in
	if (window.event) { 
		e = window.event; 
	}
	if (e.keyCode == 13)                 
	{
		document.getElementById('btnsubmit').click();
	}
} 
function targetDiv() {
	if (req.readyState == 4) { // Complete
		if (req.status == 200) { // OK response
			document.getElementById("searchBlock").innerHTML = req.responseText;
			//document.write(req.responseText);
		} else {
			alert("Problem: " + req.statusText);
		}
	}
}
function setSearch() {
	//Display page on DIV
	var url = "/webtools/dir_block.php";
	if (window.XMLHttpRequest) { // Non-IE browsers
		req = new XMLHttpRequest();
		req.onreadystatechange = targetDiv;
		try {
		req.open("GET", url, true);
		} catch (e) {
		alert(e);
		}
		req.send(null);//alert(1);
	} else if (window.ActiveXObject) { // IE
		req = new ActiveXObject("Microsoft.XMLHTTP");
		if (req) 
		{
			req.onreadystatechange = targetDiv;
			req.open("GET", url, true);
			req.send();

		}
	}//document.write (url);
}

