//返回指定版块的html静态分页的页数
function showPageNum(groupid)
{
	switch(groupid)
	{
	case 1:return 253;break;case 3:return 16;break;case 7:return 2;break;case 8:return 3;break;case 12:return 0;break;case 13:return 0;break;case 24:return 4;break;case 29:return 0;break;case 30:return 0;break;
	//case 1:return 22;break; 1为栏目id号,22为该栏牧的分页数 
	}
}

//显示html静态分页连接
//cur_no 当前的html页
//注意！！ html文件名格式 list_xx.html
function showLink(cur_no,cur_id)
{
	var s_link,s_pagenum;
	if(cur_id<1) return;

	s_pagenum=showPageNum(cur_id); //alert(s_pagenum);
	if(s_pagenum<1) s_pagenum=1;
	if(cur_no<1) cur_no=1;
	
	document.write("<span class=\"STYLE6\">页次：<font color=red>"+(s_pagenum-cur_no+1)+"</font>\/"+s_pagenum+"页 ");
	document.write("转到第<input type='text' name='page' size='3' maxlength='5' value='1' onKeyPress='goPage(this.value,"+cur_id+");'>页<\/span>")
}

//条到指定的页面
function goPage(page,cur_id)
{
	var s_pagenum;
	if (event.keyCode==13)
	{
		s_pagenum=showPageNum(cur_id); //alert(s_pagenum);
		if(Math.abs(page)>s_pagenum) page=s_pagenum;
		
		if(Math.abs(page)>1) window.location='list_'+(s_pagenum-Math.abs(page)+1)+'.html';
		else window.location='index.html';
  	}
}

function bodyLoad()
{}

//document.write("<div align=center ><iframe src=\"\/bbsLogin.html\" frameBorder=\"0\" width=\"960\" scrolling=\"no\" height=\"18\" allowTransparency><\/iframe></div>");