
function ajax_abc(elementId)
{ 
	// proceed only if the xmlHttpRequest object isn't busy
	if (xmlHttpRequest.readyState == 4 || xmlHttpRequest.readyState == 0)
	{
		var elementValue = encodeURIComponent(document.getElementById(elementId).value);
		var appName = encodeURIComponent(navigator.appName);
		var userAgent = encodeURIComponent(navigator.userAgent);
		var uri = encodeURIComponent(location.href);
		var searchString = encodeURIComponent(location.search);
		var ajaxUri = "phpscripts/ajax_abc.php?appname=" + appName + 
			"&useragent=" + userAgent + 
			"&uri=" + uri + 
			"&searchstring=" + searchString + 
			"&elementvalue=" + elementValue;
		xmlHttpRequest.open("GET", ajaxUri, true);  
		xmlHttpRequest.onreadystatechange = handleServerResponse;
		xmlHttpRequest.send(null);
	}
	else
	{
		// if the connection is busy, try again after one second  
		setTimeout('GetAddress()', 1000);
	}
}

// executed automatically when a message is received from the server
function handleServerResponse() 
{
	return;
}

