function sendMail2User(id){
	window.location="/modules/membership/index.php?op=messagesend&sendto=1&to_userid="+id;
}

function addUser2Contacts(id){
	 alert("Link not implemented yet. This button will add this user to your contacts");
}

function chatWithUser(name){
    alert("Inviting "+ name);
    FC_invite_1to1_chat(name);


    //alert("Link not implemented yet. This button start a chat with this user");
}

function writeRecommendation(id){
    alert("Link not implemented yet.\nThis button will allow you to write a recommendation about this user.");

}

function visitProfile(id){
    self.location="/p/"+id;
    //alert("I must visit " +id);
}

function replyIframeClose(status){
	
	window.parent.document.getElementById('iframe_reply').style.display = "none";
	var divMessageStatus = window.parent.document.getElementById('message_status');
	
	if(status == "SENT"){
		divMessageStatus.innerHTML = "<br/><b>"+" Message sent"+"</b>";
		divMessageStatus.style.display = "block";
	}
	if(status == "FAILED"){
		divMessageStatus.innerHTML = "<br/><b>"+"AN ERROR OCCURED WHILE SENDING YOUR MESSAGE"+"</b>";
		divMessageStatus.style.display = "block";
	}	
}


function processContact(id,param){
	if(confirm(getPO("_MD_MS_ARE_YOU_SURE"))){
		window.location="/modules/membership/index.php?op=contacts&param="+ param +"&targetuser_id="+id;
	}
}
