var D0; if (!D0) D0 = {};
if (!D0.com) D0.com = {};
if (!D0.com.cn) D0.com.cn = {};
D0.com.cn.Tr = function(){}
D0.com.cn.Tr.prototype.constructor = D0.com.cn.Tr;
D0.com.cn.Tr.prototype.Init = function(_numRows, _pageOffset, _pageSize){
	this.numRows = _numRows;
	this.pageOffset = _pageOffset;
	this.pageSize = _pageSize;
	this.pageStop = this.pageOffset + this.pageSize;
	return true;
}
D0.com.cn.Tr.prototype.ChangePage = function(v){
 	var offset = v;
	if (offset > (this.numRows - this.pageSize))
		offset = this.numRows - this.pageSize;
	if (offset < 0)
		offset = 0;
	this.pageOffset = offset;
	this.pageStop = offset + this.pageSize;
}
D0.com.cn.Tr.prototype.NextPage = function(){
 	if  (this.pageStop + this.pageSize > this.numRows) return false;
	this.pageOffset = this.pageStop;
	this.pageStop = this.pageStop + this.pageSize;
	return true;
}
