

function show_edit_description(url){
	url += "?action=ajax&show_edit_description=true";
	makeRequest(url);	
}

function show_edit_location(url){
	url += "?action=ajax&show_edit_location=true";
	makeRequest(url);	
}

function save_description(url, new_description){
	url += "?action=ajax&save_description=true&description=" + new_description;
	makeRequest(url);
}

function save_location(url, new_location){
	url += "?action=ajax&save_location=true&location=" + new_location;
	makeRequest(url);
}

function active_filter(url, interval, link){
	url += "action=ajax";
	
	makeRequest(url);
	link.href = "javascript:void(0)";
}

function showAvatarLink () {
	document.getElementById('rollover_avatar').style.display='inline';
}
function hideAvatarLink () {
	document.getElementById('rollover_avatar').style.display='none';
}

function showEditable (id) {
	document.getElementById(id).style.backgroundImage="url('/images/hukd-pencil-on.png')";
}
function hideEditable (id) {
	document.getElementById(id).style.backgroundImage="url('/images/hukd-pencil-off.png')";
}

function suggest_profile_user(user){
	escape(user);
	if(trim(user).length >= 2){
		var url = "/search/?action=ajax&user_search=" + user;
		show_loading = "2";
		makeRequest(url);
	}
}

function select_user(user, user_id){
	clicking  = false;
	hide('user_suggest');
	document.location.href = "/profile/" + user;
}