var currentValue;
var searchUrl;

function lookupFriend(friendName) {
    if (currentValue != friendName ) {
        userList			= document.getElementById(['userlist']);
        userList.innerHTML 	= '<img src="/c/i/loading-mac.gif" style="margin: 30px 0 0 150px; width: 18px; height 18px;" />';
        currentValue		= friendName;
        ajaxReplace(searchUrl + '?action=findFriends&UserName=' + friendName);
    }
}
