//用于列表页的翻页


/**
 * 翻页
 */
function goPages(){
		var pageNum = document.getElementById("pageNum").value;
		var pages = document.getElementById("pages").value;
		var path = document.getElementById("path").value;
		if(!fucCheckNUM(pageNum)){
			return ;
		}
		if(parseInt(pageNum,10)>parseInt(pages,10))
		{
			alert("超出页面总数！请检查后从新输入。");
			return ;
		}
		if(pageNum==1){
			window.location.href=path;
		}else{
			var num = pages - pageNum + 1 ;
			var url = path+"/index_"+num+".shtml";
			window.location.href=path+"/index_"+num+".shtml";
		}
}
//函数名：fucCheckNUM
//功能介绍：检查是否为数字
//参数说明：要检查的数字
//返回值：1为是数字，0为不是数字

function fucCheckNUM(NUM)
{
	re = /^\d*$/g;
	if (!re.test(NUM))
	{
		alert("只允許輸入數字");
		return false;
	}else{
		return true;
	}
}

