
///----------------------------------------------------------------
/// Begin : NisTech DataGrid Web Control client side script

function NTDataGrid_NavigatorClick(obj, strUniqueID, strPageIndex, bEnabledDuringCallBack, strPreCallBackScript, strPostCallBackScript, strCallBackCancelledScript)
{
	var bResult = true;
	
	NTSetVar(strUniqueID + ":p", strPageIndex);
	
	if (strPreCallBackScript)
		bResult = eval(strPreCallBackScript);
		
	if (typeof bResult == "undefined" || bResult)
	{
		var bEnabled = !obj.disabled;
		obj.disabled = !bEnabledDuringCallBack;
		NTAJAXControl_LookupRegion(obj);
		NTAJAXFireEvent(strUniqueID, strPageIndex, 
					function (result)
					{
						if (strPostCallBackScript)
							eval(strPostCallBackScript);
						obj.disabled = !bEnabled;
					}, 
					null, true, true, 1); // Temporary set to 1, for the best performance it should be set to 2
	}
}

/// End : NisTech DataGrid Web Control client side script
///----------------------------------------------------------------