function googlesearch(query)
{
window.open('http://www.google.com/search?q='+query+'','_blank','left=30,top=30,width=800,height=650,toolbar=1,scrollbars=1,location=1,resizable=1,menubar=1');
}

function searcher(hol,mit)
{
	//alert(hol);
	if (hol=='google')
	{
	   //document.forms.searchform.action="http://www.google.co.hu";
	   //document.forms.searchform.target="_blank";
	   //document.forms.searchform.task="";
	   window.open('http://www.google.com/search?q='+mit+'','_blank','left=30,top=30,width=800,height=650,toolbar=1,scrollbars=1,location=1,resizable=1,menubar=1');
	   //self.location="index.php";
	}
	else
		if (hol=='ehok')
		{
		//alert(mit);
		window.location="index.php?task=lib/search.php&q="+mit;}

//window.open('http://www.google.com/search?q='+query+'','_blank','left=30,top=30,width=800,height=650,toolbar=1,scrollbars=1,location=1,resizable=1,menubar=1');
}
function checkuser()
{
//alert(hotel)

	 //document.getElementById("txtHint").innerHTML="";
 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	  var srcstring=document.getElementById("userker").value
		 
	  //var value=x.options[x.selectedIndex].value
	  alert(srcstring)
	var url="lib/userlist.php";
	url=url+"?srcstring="+encodeURI(srcstring);
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange= function() { showcont2();  };
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);



/*else{
	utcasel=document.getElementById('utca');
	
	//utcasel.selectedIndex.text='Mindegy';
	utcasel.selectedIndex=0;
	utcasel.disabled=true;
	} */
}

function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}

function showcont2() 
{ 
	
if (xmlHttp.readyState==4)
{ 
	//alert(elem)
	citytxt=document.getElementById("user_idtd");
	citytxt.innerHTML=xmlHttp.responseText
//utcasel.disabled=false
//document.getElementById("utcadiv").innerHTML=xmlHttp.responseText;
}



}