function showline(a,d)
{
	


	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
		document.getElementById("line").innerHTML=xmlhttp.responseText;
		}
	  }
	  
	
	xmlhttp.open("GET","line.php?a="+a+"&d="+d,true);
	xmlhttp.send();

}

function showHint(a)
{
	
if(document.getElementById('sort').value!='')
{

	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
		document.getElementById("imgdiv2").innerHTML=xmlhttp.responseText;
		}
	  }
	  
	var str = document.getElementById('sort').value;
	xmlhttp.open("GET","gethint.php?q="+str+"&a="+a,true);
	xmlhttp.send();
}
}




function showHint2(a)
{
	
if(document.getElementById('sort2').value!='')
{
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
		document.getElementById("lenta").innerHTML=xmlhttp.responseText;
		}
	  }
	  
	var str = document.getElementById('sort2').value;
	xmlhttp.open("GET","gethint2.php?q="+str+"&a="+a,true);
	xmlhttp.send();
}
}









