﻿function executeGroupSearch() {
    var obj1 = document.getElementById("SearchGroupsHolder");
    if (obj1) obj1.innerHTML = ""; // searching indicator
    obj1 = document.getElementById("txtKeyword");
    if (obj1) {
        var keyword = obj1.value;
        if (keyword.length > 0) {
            getSearchGroup(obj1.value);
        }
    }
}

function getSearchGroup(keyword) {
    var obj1 = document.getElementById("SearchAnimHolder");
    if (obj1) obj1.innerHTML = "executing search ...";
    gCallingFunction = "getSearchGroup";
    postData = "action=get&dataElement=SearchGroup&keyword=" + encodeURI(keyword);
    getData("servers/profileserver.aspx", postData);
}

function removeGroupIgnore(ignoreUserId) {
    postData = "action=delete&dataElement=removegroupignore&ignoreUserId=" + ignoreUserId + "&returnData=true&displayedGroups=" + gDisplayedGroups;
    gCallingFunction = "removeGroupIgnore";
    getData("/servers/groupserver.aspx", postData);
}