var http = createRequestObject();
var field= '';

function createRequestObject() 
{
	var xmlhttp;
	try {
		xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
	}
	catch(e) 
	{
		try { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
		catch(f) { xmlhttp=null; }
	}
	if(!xmlhttp&&typeof XMLHttpRequest!="undefined") 
	{
		xmlhttp=new XMLHttpRequest();
	}
	return  xmlhttp;
}

function reload_ListTours(site, value, CatID, TourID, Start)
{
	field = 'pagination';
	try{
		document.getElementById(field).innerHTML = '<p align=center><img src="images/loading3.gif" width="235" height="12"></p>';
		http.open('POST', 'actions.php');
		http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		http.onreadystatechange = handleResponse;
		http.send('url='+ site +','+ value +','+ CatID +','+ TourID +','+ Start);
	}
	catch(e){}
	finally{}
}

function handleResponse() 
{
	try 
	{
		if((http.readyState == 4)&&(http.status == 200))
			document.getElementById(field).innerHTML = http.responseText;
  	}
	catch(e){}
	finally{}
}
