function messArea() {
      $.get('/index/14', function (d) {
       $('#allMessArea').html(Math.round(parseInt($('a.pmCatLinkActive b:first', d).html(), 10) + parseInt($('a.pmCatLink b:first', d).html(), 10)));
       loadMessage = $('b.unread', d).length;
       if (loadMessage > 0) {
        _uWnd.alert('Вам сообщение!');
        $('#unreadPM').replaceWith(loadMessage);
        $('.loadM').replaceWith(loadMessage);
       }
      });
}

setTimeout(messArea(), 300000);

