/**************************************************************
 * <p>网站分页JavaScript Document</p>
 *  @Author:Lzj.Liu(LzjLiu307@163.com)
 **************************************************************/
var cur="currentPage";
/**显示第一页的资料*/
function goFirst(form)
{
	var obj=document.getElementById(cur);
	if(null != obj)
	{		
		obj.value=1;
		changPage(form);
	}
}
/**显示上一页的资料*/
function goPrevious(form)
{
	var obj=document.getElementById(cur);
	if(null != obj)
	{		
		obj.value=parseInt(obj.value)-1;
		changPage(form);
	}
}
/**显示下一页的资料*/
function goNext(form)
{
	var obj=document.getElementById(cur);
	if(null != obj)
	{
		obj.value=parseInt(obj.value)+1;		
		changPage(form);
	}
}
/**显示最后一页的资料*/
function goLast(form)
{
	var obj=document.getElementById(cur);
	if(null != obj)
	{
		obj.selectedIndex = obj.length - 1;
		changPage(form);
	}
}
/**显示指定的第几页*/
function goPage(iPage,form)
{
	var obj=document.getElementById(cur);
	if(null != obj)
	{		
		obj.value=iPage;
		changPage(form);
	}
}
/**资料分页提交*/
function changPage(form)
{
	form.submit();
}
/**提交查询时将页索引置为一*/
function query()
{
	var obj=document.getElementById(cur);
	if(null != obj)
	{		
		obj.value=1;		
	}

	var totalCount=document.getElementById("totalCount");
	if(null !=totalCount)
		totalCount.value=0;
}
