var exclude_forum_handleSuccess = function(o)
{
	if(o.responseText !== undefined)
	{
		if (exclude_forum_callback.object_name[o.tId] !== undefined)
		{
			fetch_object(exclude_forum_callback.object_name[o.tId]).innerHTML = o.responseText;
		}
	}
}
var exclude_forum_handleFailure = function(o)
{
	if(o.responseText !== undefined)
	{
		alert(o.responseText);
	}
}
var exclude_forum_callback =
{
	success: exclude_forum_handleSuccess,
	failure: exclude_forum_handleFailure,
	timeout: vB_Default_Timeout,
	cache: false,
	object_name: new Array()
};
function exclude_forum_add(id,title,iscat)
{

		if (iscat)
		{
			fetch_object('collapseobj_cat_' + id).style.display = "none";
			if(fetch_object('collapseobj_forumbit_' + id) !== null)
			fetch_object('collapseobj_forumbit_' + id).style.display = "none";
		}
		else
		{
			fetch_object('exclude_' + id).style.display = 'none';
		}
		
		var sUrl = 'misc.php';
		var postData = 'do=exclude_forum_add&forum=' + id + '&securitytoken=' + SECURITYTOKEN;
	
		var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, exclude_forum_callback, postData);
		
		fetch_object('exclude_forum_box').style.display = "block";
		exclude_forum_callback.object_name[request.tId] = 'exclude_forum_box';
		var NURL = new String(this.location.href + "#excludebox");
		window.location.href = NURL;
	
		return false;
}