
   function NewMessages(received)
    {
         $.ajax({
            type: "GET",
            dataType: "data",
            url:'/message/listunreadmessagexhr',
            data:{'received':received},
           success:
               function(data)
           {
                   if(data >= 1)
                       {
                         $("tr#new_message").show();
                         $("#iconnewmessage").show();
                         $("#iconnewmessage").html(data);
                       }
                   else
                   {
                       $("tr#new_message").hide();
                   }
           }
        });
    }
   
   function NewNotifications(received)
   {
        $.ajax({
           type: "GET",
           dataType: "data",
           url:'/message/listunreadnoticexhr',
           data:{'received':received},
          success:
          function(data)
          {
                  if(data >= 1)
                      {
                        $("tr#new_notice").show();
                        $("#iconnewnotice").show();
                        $("#iconnewnotice").html(data);
                      }
                  else
                  {
                      $("tr#new_notice").hide();
                  }
          }
       });
   }



