var backgroundSortingPgm;
var sortingFlag='no';
//This function is for paging
function attraction_paging(page,Id)
{
	backgroundSortingPgm=document.getElementById("bg_sorting_pgm_path").value;
	// here i am getting the drop down value
	var url=backgroundSortingPgm + "?page="+page+"&Id="+Id+"";
	processXML(url);
	
}
// this function is used to get the page display of the vacation rentals page
function displayPagingContent(pageNumber,Id)
{	
	page=pageNumber;
	//backgroundSortingPgm=document.getElementById("bg_sorting_pgm_path").value;
	// here i am getting the drop down value
	var url=backgroundSortingPgm + "?page="+page+"&Id="+Id+"";
	processXML(url);
}
function processXML(url)
{
  // native  object
  if (window.XMLHttpRequest) {
    // obtain new object
    obj = new XMLHttpRequest();
    // set the callback function - based on toggle value
    obj.onreadystatechange = processChange;
    obj.open("GET", url, true);
    // null for GET with native object
    obj.send(null);
  // IE/Windows ActiveX object
  } else if (window.ActiveXObject) {
    obj = new ActiveXObject("Microsoft.XMLHTTP");
    if (obj) {
      	obj.onreadystatechange = processChange;
   	    obj.open("GET", url, true);
      // don't send null for ActiveX
      obj.send();
    }
  } else {
    changeErrorText("Your browser does not support AJAX");
  }
}
function processChange(){
	if (obj.readyState == 4) {
	 // 200 means "OK"
      if (obj.status == 200) {
			      	
            document.getElementById("list-info").innerHTML = obj.responseText;
      } else {
           alert("There was a problem in the returned data:\n" + obj.status);
       }
    }
}
