function HorizPager(parentId, maxPage, initPage, autoFlag)
{
	this.parentId = parentId;
	this.maxPage = maxPage;
	if (initPage == null)
		this.page = 1;
	else
		this.page = initPage;
	if (autoFlag == null)
		this.autoFlag = true;
	else
		this.autoFlag = autoFlag;

	this.next = function () {
		if (this.page == this.maxPage) {
			if (this.autoFlag) {
				this.setPage(1);
			}
			else {
				alert('¸¶Áö¸· ÆäÀÌÁöÀÔ´Ï´Ù.');
			}
		}
		else {
			this.setPage(this.page + 1);
		}
		return false;
	}

	this.prev = function () {
		if (this.page == 1) {
			if (this.autoFlag) {
				this.setPage(this.maxPage);
			}
			else {
				alert('Ã¹ ÆäÀÌÁöÀÔ´Ï´Ù.');
			}
		}
		else {
			this.setPage(this.page - 1);
		}
		return false;
	}

	this.setPage = function (page)
	{
		var parentElement = document.getElementById(this.parentId);
		var tables = parentElement.getElementsByTagName('TABLE');
		for (var i = 0; i < tables.length; i++)
		{
			var table = tables.item(i);
			var horizPage = table.getAttribute('horizPage');
			if (horizPage == null || horizPage == '') {
				// °Á Áö³ªÄ§
			}
			else {
				var nHorizPage = Number(horizPage);
				if (!isNaN(nHorizPage) && nHorizPage == page) {
					table.style.display = 'block';
				}
				else {
					table.style.display = 'none';
				}
			}
		}
		this.page = page;
	}
}
