function search_result(str)
{

if (str=="")
  {
  document.getElementById("search_result").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("search_result").innerHTML=xmlhttp.responseText;
	//document.getElementById("search_result").style.visibility="visible";
	document.getElementById("search_result").style.opacity=(1);
    }
  }





 
//document.getElementById("search_result").style.visibility="hidden";
document.getElementById("search_result").style.opacity=(0.3);
document.getElementById("search_result").style.filter='alpha(opacity=40)';
document.getElementById("search_result").style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=40)"; 
 
scroll(0,0);

xmlhttp.open("GET","searchresult.php?mode=1&"+str,true);
xmlhttp.send();
}
