var xmlHttp=null;

function showHint(str)
{
	if (str.length<3)
	{
		txtHint.style.visibility="hidden";
		document.getElementById("txtHint").innerHTML="";
		return;
	}

	try
	{// Firefox, Opera 8.0+, Safari, IE7
		xmlHttp=new XMLHttpRequest();
	}
	catch(e)
	{// Old IE
		try
	    {
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	    }
		catch(e)
		{
			return; 
		}
	}

	var url="scripts/suggestions.asp?txt=" + str;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	xmlHttp.onreadystatechange=function() {
		if ((xmlHttp.readyState==4)&&(xmlHttp.status==200)){
			if (xmlHttp.responseText=="")
			{
				txtHint.style.visibility="hidden";
				document.getElementById("txtHint").innerHTML="";
				return;
			}
			txtHint.style.visibility="visible";
			document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
		}
	}
/*	xmlHttp.open("GET",url,false);
	xmlHttp.send(null);
	if (xmlHttp.responseText=="")
	{
		txtHint.style.visibility="hidden";
		document.getElementById("txtHint").innerHTML="";
		return;
	}
	document.getElementById("txtHint").innerHTML=xmlHttp.responseText;

	txtHint.style.visibility="visible";
*/
}