function showModel(str)
	{
	if (str=="")
	  {
	  document.getElementById("model").innerHTML="";
	  return;
	  }
	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("model").innerHTML=xmlhttp.responseText;
		}
	  }
	xmlhttp.open("GET","cars.php?q="+str,true);
	xmlhttp.send();
	}
	
	function showEngine(str, marka)
	{
	
	if (str=="")
	  {
	  document.getElementById("engine").innerHTML="";
	  return;
	  }
	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("engine").innerHTML=xmlhttp.responseText;
		}
	  }
	xmlhttp.open("GET","cars.php?m="+str+"&marka="+marka,true);
	xmlhttp.send();
	}
	
	function showCont(str, model, marka)
	{
		if (str=="")
		  {
		  document.getElementById("big_cont").innerHTML="";
		  return;
		  }
		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("big_cont").innerHTML=xmlhttp.responseText;
			}
		  }
		xmlhttp.open("GET","results.php?marka="+marka+"&model="+model+"&engine="+str,true);
		xmlhttp.send();
	}
	
