﻿function getFriendsOnlineCount()
{          
    $.ajax({  
        type: "POST",  
        url: "Service/KhoroWebService.asmx/GetFriendsOnlineCount",  
        success: function(msg) {
            var result = $(msg).find('string').text();  
            if(result == "0"){            
                $("#showFriendsOnline").html(''); 
            }
            else
            {
                if(result == "1")
                {
                    $("#showFriendsOnline").html('Friend('+result+')'); 
                }
                else
                {
                    $("#showFriendsOnline").html('Friends('+result+')'); 
                }
            }
        }
    });
}