function chk_pub_right(c){
	var url = '/admin/ajax/chk_pub_right.php';
	var pars = 'c='+c;
	var myAjax = new Ajax.Request(
		url,
		{
		method: 'get',
		parameters: pars,
		onComplete: dealTXT_chk_pub_right
		});
	return true;
}
function dealTXT_chk_pub_right(originalRequest){
	res=originalRequest.responseText;
	switch(res){
	case '1':
		$('chk_hid').style.display='none';
		$('pub_hid').style.display='none';
		break;
	case '2':
		$('chk_hid').style.display='';
		$('pub_hid').style.display='';
		break;
	case '3':
		$('chk_hid').style.display='';
		$('pub_hid').style.display='none';
		break;
	default:
		$('chk_hid').style.display='none';
		$('pub_hid').style.display='none';
		break;
	}
}
function o_info(id){
	var url = '/chk_o_info.php';
	var pars = 'id='+id;
	var myAjax = new Ajax.Request(
		url,
		{
		method: 'get',
		parameters: pars,
		onComplete: dealTXT_chk_o_info
		});
	return true;
}
function dealTXT_chk_o_info(originalRequest){
	res=originalRequest.responseText;
	if(res.indexOf('/info/')>0){
		window.location.href=res;
		return false;
	}else{
		switch(res){
		case '-1':
			alert('参数错误，您可能无法阅读该信息！');
			break;
		case '-2':
			alert('该信息设置了保密级别，请先登录后点击阅读！');
			break;
		case '-3':
			alert('您没有该信息的阅读权限！');
			break;
		default:
			alert('您没有该信息的阅读权限！');
			break;
		}
	}
}