function getAjaxData(strFieldName,intMinLength,strDivName,strSource) {
if (document.search[strFieldName].value.length > intMinLength) {
var xmlHttp;
try {xmlHttp=new XMLHttpRequest();}
catch (e) {
	try {xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
	catch (e) {
		try {xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
		catch (e) {return false;}}}
xmlHttp.onreadystatechange=function() {
	if(xmlHttp.readyState==4) {
		document.getElementById(strDivName).innerHTML = xmlHttp.responseText;
		if (xmlHttp.responseText.length != 0) {document.getElementById(strDivName).style.visibility = 'visible';}
		else {document.getElementById(strDivName).style.visibility = 'hidden';}}}
xmlHttp.open("GET","includes/ajax/"+strSource+"?s="+document.search[strFieldName].value ,true);xmlHttp.send(null);}
else {document.getElementById(strDivName).style.visibility = 'hidden';}}