document.getElementById("livesearch").innerHTML="";
document.getElementById("livesearch").style.border="0px";
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange=function()
if (xmlhttp.readyState==4 && xmlhttp.status==200)
document.getElementById("livesearch").innerHTML=xmlhttp.responseText;
document.getElementById("livesearch").style.border="0px solid #A5ACB2";
document.getElementById("livesearch").innerHTML='

';
xmlhttp.open("POST","search/livesearch.php?q="+str,true);