function cikkKeres(nev,hol,elozmeny,xpos,ypos,IEy)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
	   if(hol==3) 
	   		{
	   	   	$('content_frame').innerHTML = xmlHttp.responseText;
	   	   	$('loading').style.display='none';
	   	   	$('content_frame').style.display='block';
	   	   	milkbox = new Milkbox({removeTitle: true});
	   	   	window.fbAsyncInit = function() {
    FB.init({appId: '167108446642333', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/hu_HU/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
     	   		}
   	   else if(hol==4)
   	   		{
	   	   	$('kosar_padding').innerHTML = xmlHttp.responseText;
	   	   	}
	   else if(hol==5) 
	   		{
	   	   	$('content_frame').innerHTML = xmlHttp.responseText;
	   	   	$('loading').style.display='none';
	   	   	$('content_frame').style.display='block';
	   	   	milkbox = new Milkbox({removeTitle: true});
   	   		}
   	   else if(hol==6)
   	   		{
	   	   	$('kosar_padding').innerHTML = xmlHttp.responseText;
	   	   	kosarfeltolt(0,0,0,5,0);
	   	   	}
   	   else
   	   		{
		   	if(xmlHttp.responseText != 'No result!' && xmlHttp.responseText != '') $('suggestion').style.display = 'block';
	   	   	document.getElementById('autoSuggestionsList').innerHTML = xmlHttp.responseText;
	   	   	}
      }
    }
   xmlHttp.open("GET","/modul/php/cikkkeres.php?queryString="+nev+"&holkeres="+hol+"&q1="+elozmeny+"&q2="+xpos+"&q3="+ypos,true);
  
  xmlHttp.send(null);

  if(nev.length >0 && hol > 0 && hol!=3 && hol!=4 && hol!=5 && hol!=6 && hol!=7) {
	  
  document.getElementById('suggestion').style.position = 'fixed';
  document.getElementById('suggestion').style.top = '80px';
  document.getElementById('suggestion').style.left = '90px';
  
  }
}

function Valasztas(thisValue, thisValue1, thisValue2, thisValue3, thisValue4, thisValue5, thisValue6, thisValue7, thisValue8, thisValue9, thisValue10, hova) 
{
		setTimeout("document.getElementById('suggestion').style.display = 'none';", 200);
		if(hova == 1) 
			{
				var myArray = thisValue1.split('*/*');
				var i = 0;
				var str = '';
				while (i < thisValue2)
					{
						var myArray2 = myArray[i].split('*-*');
						str += '<div class="cikkmegoldas_tartalom"><div class="cikkmegoldas_cim"><input type="checkbox" name="MEGOLDASOK[]" value="'+myArray2[3]+'"></div><div class="cikkmegoldas_szoveg">Elfogadás megoldásnak ('+myArray2[4]+' db)</div><div class="cikkmegoldas_cim">cikkjelenség: </div><div class="cikkmegoldas_szoveg"><b>'+myArray2[0]+'</b></div><div class="cikkmegoldas_cim">Teendő: </div><div class="cikkmegoldas_szoveg">'+myArray2[1]+'</div><div class="cikkmegoldas_cim">Megoldás: </div><div class="cikkmegoldas_szoveg">'+myArray2[2]+'</div><hr></div>';
						i++;
					}
				document.getElementById('cikkjelenik').innerHTML = '<br><h2 style="text-align: center;">'+thisValue3+'</h2><br><h3>Megoldási találatok:</h3><hr><div class="cikkmegoldas_keret">'+str+'</div>';
			}
}

function leiras_valt(id,id2)
{
	$('termek_'+id).style.display='table'; 
	$('termek_'+id+'_gomb').style.border='1px solid #dedede'; 
	$('termek_'+id+'_gomb').style.borderBottom='0px'; 
	$('termek_'+id+'_gomb').style.height='20px';

	$('termek_'+id2).style.display='none'; 
	$('termek_'+id2+'_gomb').style.border='1px solid #dedede'; 
	$('termek_'+id2+'_gomb').style.height='19px';
}
