﻿

function collectProfileItem(pItem)
{
  
  var pItemId = $(pItem).attr("profilerItemId");  
  var pModuleId = $(pItem).attr("profilerModuleId");    
  
  updateProfile("ModuleId="+pModuleId+"&ItemId="+pItemId+"&UserId="+userId+"&portalName="+portalName);
  
}

function updateProfile(dataStr)
{
  

    $.get(profilerUrl,dataStr);
}

function setProfileCollect()
{ 

   $(".profileCollect").unbind('click', profileCollectClick);
   $(".profileCollect").click(profileCollectClick);  
}

function profileCollectClick() {    
      collectProfileItem(this);
}
