

function addFavoriteTag(tagId){
    new Ajax.Request(baseHREF+"user/addFavoriteTag.do?tagId="+tagId+"&refresh="+Math.random(), {
        method: 'get',
        onSuccess: function(transport) {
            try{
                updateFavoriteBox();
            }catch(err){
            }
        }
    });
}

function addFavoriteCategory(categoryId){
    new Ajax.Request(baseHREF+"user/addFavoriteCategory.do?categoryId="+categoryId+"&refresh="+Math.random(), {
        method: 'get',
        onSuccess: function(transport) {
            try{
                updateFavoriteBox();
            }catch(err){
            }
        }
    });
}

function addFavoriteProject(workspaceKey){
    new Ajax.Request(baseHREF+"user/addFavoriteProject.do?workspaceKey="+workspaceKey+"&refresh="+Math.random(), {
        method: 'get',
        onSuccess: function(transport) {
        }
    });
}

function addFavoriteContact(contact) {
    new Ajax.Request(baseHREF+"/user/contact.do", 
      {
        method: 'post',
        parameters: {action: 'add', contact: contact},
        onSuccess: function(transport) {
        }
      });    
}