var obj;
function GetDataViaAJAX(strURL){
	if (window.XMLHttpRequest) {
		// Not IE
		obj = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		try{
			obj = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e){
			try{
				obj = new ActiveXObject("Microsoft.XMLHTTP");						
			}
			catch(e1){
				obj = null;
			}
		}
	}

	if(obj!=null){
		if(document.getElementById("query").value.length > 1){
			document.getElementById('Label2').style.display='inline';
			obj.onreadystatechange = ProcessResponse;
			var aURL = strURL + "?query=" + document.getElementById("query").value;
			//alert(aURL);
			obj.open("GET", aURL,  true);
			obj.send(null);
		}
	}
	return false;
}

function ProcessResponse(){
	if(obj.readyState == 4){
		if(obj.status == 200){
			var retval=obj.responseText;
			document.getElementById("Label2").innerHTML = retval;
		}
		else{
			//alert(obj.status);
		}
	}
}