var xmlHttp = false;

try {
	xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
}

catch(e) {

try {

xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");

}

catch(e) {

xmlHttp  = false;

}

}

if (!xmlHttp  && typeof XMLHttpRequest != 'undefined') {

xmlHttp = new XMLHttpRequest();

}



function loadsearchData(searchfield)

{

if(searchfield!="") {

if (xmlHttp) {

xmlHttp.open('GET', 'ajax_search.php?search='+searchfield, true);

xmlHttp.onreadystatechange = function () {

if (xmlHttp.readyState == 4) {

document.getElementById("searchResult").innerHTML = xmlHttp.responseText;

document.getElementById('show-shadow').className="show-shadow";

document.getElementById('searchResult').className="show_lookup";

}

};

xmlHttp.send(null);

}

}

else{ hideall() }

}



function highlight(j,i){document.getElementById(j).className=i;}

function hideall()

{

document.getElementById("searchResult").innerHTML = '';

document.getElementById('show-shadow').className="hide_show-shadow";

document.getElementById('searchResult').className="hide_show_lookup";

}


