function hideResult() {
  if (!document.getElementById) return false;

  document.getElementById("searchlist").innerHTML = "";
  document.getElementById("searchlist").style.border = "0px";
  document.getElementById("searchlist").style.backgroundColor = "transparent";
  return;
}

function showResult(str) {
  if (!document.getElementById) return false;

  if (str.length == 0)   { 
  document.getElementById("searchlist").innerHTML = "";
  document.getElementById("searchlist").style.border = "0px";
  document.getElementById("searchlist").style.backgroundColor = "transparent";
  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 && xmlhttp.responseText.length > 0) {
      document.getElementById("searchlist").innerHTML = xmlhttp.responseText;
      document.getElementById("searchlist").style.border = "1px solid #afafaf";
      document.getElementById("searchlist").style.backgroundColor = "#ffffff";
    } else {
      document.getElementById("searchlist").innerHTML = "";
      document.getElementById("searchlist").style.border = "0px";
      document.getElementById("searchlist").style.backgroundColor = "transparent";
	}
  }
  xmlhttp.open("GET", "/en/search2.html?q=" + str, true);
  xmlhttp.send();
}

