function showHint(str)
{
if (str.length==0)
  { 
  document.getElementById("txtHint").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("txtHint").innerHTML=xmlhttp.responseText;
	}
  }
  
  
str = str.replace("å", "!1")
str = str.replace("ä", "!2")
str = str.replace("ö", "!3")

str = str.replace("Å", "!4")
str = str.replace("Ä", "!5")
str = str.replace("Ö", "!6")

str = str.replace("/", "!7")

str = str.replace("-", "!8")

str = str.replace("&", "")
  
xmlhttp.open("GET","/includes/search/div_en.php?random="+str+"&q="+str,true);
xmlhttp.send();
}

		

var state = 'none';

function search_show(layer_ref) {

	state = 'block';
	if (document.all) { //IS IE 4 or 5 (or 6 beta)
	eval( "document.all." + layer_ref + ".style.display = state");
	}
	if (document.layers) { //IS NETSCAPE 4 or below
	document.layers[layer_ref].display = state;
	}
	if (document.getElementById &&!document.all) {
	hza = document.getElementById(layer_ref);
	hza.style.display = state;
	}
}





function search_hide(layer_ref) {

	state = 'none';
	
	if (document.all) { //IS IE 4 or 5 (or 6 beta)
	eval( "document.all." + layer_ref + ".style.display = state");
	}
	if (document.layers) { //IS NETSCAPE 4 or below
	document.layers[layer_ref].display = state;
	}
	if (document.getElementById &&!document.all) {
	hza = document.getElementById(layer_ref);
	hza.style.display = state;
	}
}


