function loadGrid()
{
/*	if(!document.getElementById('loading')){
		var loadingDiv = document.createElement("div");		
		loadingDiv.setAttribute("id","loading");
		loadingDiv.setAttribute("class","abtDataTable_processing");
		loadingDiv.innerHTML = "Processing...It may take a few moments...";
		document.body.appendChild(loadingDiv);
		}
	*/
	pageNo=1;
	noOfRecs=6;
	showGrid();
}

function setRecsPerPage()
{
  	pageNo=1;
  	noOfRecs=document.getElementById('recsPerPage').value;
   	showGrid();
}

function moveNext()
{
	pageNo=pageNo+1;
	showGrid();
}

function movePrevious()
{
	if(pageNo>=1)
	{
	pageNo=pageNo-1;
	}
	showGrid();
}

var flag=0;
var fieldName="";
function sortTable(fname)
{

if(flag==0)
	{
		flag=1;
	}
else
	{
		flag=0;
	}
	fieldName=fname;
	showGrid();
}

