function digg(id,num,action)
{
	var COOKIE_NAME = 'votes';
    var options = { path: '/', expires: 10 };
    var votes = $.cookie(COOKIE_NAME)
    if (votes == null || votes == '' || votes == 'undefined') {
    	votes=id;
    } else {
    	votesArray = votes.split(",");
    	for (i=0;i<votesArray.length ;i++ )
    	{
    	    if(id == votesArray[i] )
    	    {
    	    	alert('您已经投过票了！');
    	    	return false;
    	    }
    	}
    	votes += ','+id;
    }
    
    $.cookie(COOKIE_NAME, votes, options);
    
    $.get("/article/updatesupport/", { aid: id,a:action,number:num},
        function(data){
        $('#'+action).html(data);
    })
}