function deleteForum(id){
	if(confirm('请确认是否删除')){
		ForumAjax.deleteForum(id);
		//window.location.reload();
		setTimeout('window.location.reload();', 1);
		//location.replace(location.href) ;
	}
}
function setValidate(id,validate){
	if(confirm('请确认是否更改验证状态')){
		ForumAjax.setValidate(id,validate);
		//window.location.reload();
		setTimeout('window.location.reload();', 1);
		//location.replace(location.href) ;
	}
}


function getIp(ip){

	document.getElementById("ip").value = ip;
	document.ipform.submit();
	
}

function initForumNumber(typeId){
	if(confirm('请确认是否要初始化该类别下的所有已发布贴子编号？')){
		ForumAjax.initForumNumberByTypeId(typeId);
		//window.location.reload();
		//setTimeout('window.location.reload();', 1);
		//location.replace(location.href) ;
	}
}

function getForumByNumber(){
	var num = document.getElementById("number").value;
	if (num.length<=0){
		alert("请输入问题编号");
		return false;
	}

}


