function Search(team)
{
	var xmlHttp;
	var url;
	url = "/includes/_ajax_search.php?team="+team+"&sid="+Math.floor(Math.random()*1000000);
	try { xmlHttp=new XMLHttpRequest(); }
	catch (e) {
  		try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }
 		catch (e) {
    		try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }
    		catch (e) {
      			alert("Your browser does not support AJAX!");
      			return false;
      		}
    	}
  	}
	if (team.length > 1) {
		xmlHttp.onreadystatechange=function() {
			if(xmlHttp.readyState==4) { 
				document.getElementById('zoekresultaten').innerHTML=xmlHttp.responseText; 
				document.getElementById('zoekresultaten').style.visibility="visible";
				document.getElementById('zoekresultaten').style.display="inline";
			}
		}	
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}
	else {
		document.getElementById('zoekresultaten').innerHTML="";
		document.getElementById('zoekresultaten').style.visibility="hidden";
		document.getElementById('zoekresultaten').style.display="none";
	}
}
