var Follow = function(cid,type)
{
	var req = new Request(
	{
		url: '/api/follow',
		method: 'post',

		onSuccess: function(txt)
		{
			if(txt == 1)
			{
				$('fstat').set('text','AAN');	
			}
			else
			{
				$('fstat').set('text','UIT');	
			}
		}
	});
	
	req.send('cid='+cid+'&type='+type);
}

var Follow_toggle = function(cid,type)
{
	var req = new Request(
	{
		url: '/api/follow',
		method: 'post',

		onSuccess: function(txt)
		{
			$('f_'+cid).dispose();
			$('f_amount').set('text',$('f_amount').get('text')-1);
		}
	});
	
	req.send('cid='+cid+'&type='+type);
}