function scrollGallery(start,max)
{
	var xmlHttp;
	try
	  {
	  // Firefox, Opera 8.0+, Safari
		  xmlHttp=new XMLHttpRequest();
		  if ( xmlHttp.overrideMimeType) {
			 xmlHttp.overrideMimeType('text/xml');
		   // See note below about this line
		  }
	  }
	catch (e)
	  {
	  // Internet Explorer
	  try
	    {
	    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	    }
	  catch (e)
	    {
	    try
	      {
	      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	      }
	    catch (e)
	      {
	      alert("Az ön böngészője nem támogatja az AJAX-ot!");
	      return false;
	      }
	    }
	  }
	  	
	  xmlHttp.open("GET", 'inc/hostess.php?start='+start+'&max='+max, true);
	  
		xmlHttp.send(null); 
		  xmlHttp.onreadystatechange = function () {
		  	if (xmlHttp.readyState  == 4)
		  	{
		  		if (xmlHttp.status == 200) { 
		  			if (xmlHttp.responseText!='') {
		  				document.getElementById('hostess').innerHTML='';
		  				
			  			document.getElementById('hostess').innerHTML=xmlHttp.responseText;

		  			}
		  		}
		  	}
		  }
	/*alert (start);
	alert (max);*/
}

