var friendId = "";
function fnSendFriendRequest(userId){
	var actionUrl='addToContact.php?friendId='+friendId+'&ajaxRequest=1';
	$.ajax({
			type:"POST",
			url:actionUrl,
			cache: false,
			success: function(data){
				alert(data);
			}
	
	});
	return false;
}
function fnFriendRequest(action){
	if(action == 'accept')
	{
		if(confirm("Hmmmm... weet je het wel zeker?")){
			return true;
		}else{
			return false;
		}
	}
	else
	{
		if(confirm("Aaaah... :( zeker weten?")){
			return true;
		}else{
			return false;
		}
	}
// if(confirm("Are you sure to perform this action?")){
//		return true;
//	}else{
//		return false;
//	}
	
}
function fnShowPopup(divId){
	document.getElementById(divId).style.display="block";
}
function fnClosePopup(divId){
	document.getElementById(divId).style.display="none";
}
