﻿var dq = String.fromCharCode(34);
var sq = String.fromCharCode(39);

function Approve(String1, String2)
{
    if (confirm('Agree the friend request from ' + String2 + '?'))
    {
        document.getElementById('div' + String1).style.display = 'none';
        Syrupie.WWW.Services.Friend.ApproveFriendRequest(String1);
    }
    document.getElementById('divAdded').style.display = 'block';
}

function Deny(String1, String2)
{
    if (confirm('Ignore the friend request from ' + String2 + '?\n\nRelation hint:\nDon\' worry, we\'ll keep this a secret.'))
    {
        document.getElementById('div' + String1).style.display = 'none';
        Syrupie.WWW.Services.Friend.DenyFriendRequest(String1);
    }
    document.getElementById('divAdded').style.display = 'block';
}

function RemoveFriend(String1, String2, String3)
{
    if (confirm('Remove ' + String2 + ' from your friends list?\n\nRelation hint:\nBecause you\'ll also be removed from ' + String2 + '\'s friends list, ' + String3 + ' might noticed that.'))
    {
        document.getElementById('div' + String1).style.display = 'none';
        Syrupie.WWW.Services.Friend.RemoveFriend(String1);
    }
}
