/*
   Created By :- Tushar Deshpande
   Email-Id :- tushard@techepoch.com
*/
var req_pagination = false;
var div_nm_paging = '';
 
  // branch for native XMLHttpRequest object
   if(window.XMLHttpRequest && !(window.ActiveXObject)) {
    	try {
			req_pagination = new XMLHttpRequest();	
        } catch(e) {
			req_pagination = false;
        }
    // branch for IE/Windows ActiveX version
    } else if(window.ActiveXObject) {
       	try {
        	req_pagination = new ActiveXObject("Msxml2.XMLHTTP");
      	} catch(e) {
        	try {
          		req_pagination = new ActiveXObject("Microsoft.XMLHTTP");
        	} catch(e) {
          		req_pagination = false;
        	}
		}
    }
	
 function nextPrev()
 {
	 return true;
 }
function showRecords(url,new_url,tmp_div_nm) 
{
    div_nm_paging = tmp_div_nm;

	var url1;
	if(new_url!='')
	url1=url+".php?"+new_url;
	else
		url1=url+".php";



    if(req_pagination)	
	 {
		document.getElementById('ajaxLoader').style.display="block";
		req_pagination.open("get", url1, true);	
		req_pagination.onreadystatechange = processReqChange;
		req_pagination.send("");
	   
	 }
}
    

	
function processReqChange() 
{
    if (req_pagination.readyState == 4)
		{
          if (req_pagination.status == 200) 
		    {
            // ...processing statements go here...
		     document.getElementById('ajaxLoader').style.display="none";
             document.getElementById(div_nm_paging).innerHTML =req_pagination.responseText;
			 
		    }
		  
        }
}
