function saveInfo() {
    //$("info_edit_div").hide();
    //$("info_box").innerHTML += "<center><img src='/img/s.gif' style='vertical-align:middle;' width='1' height='41' alt='' /><img src='/img/load.gif' style='vertical-align:middle;' /> Saving..</center>";
	
	new Ajax.Request("/?ajaxReq=saveInfo",
	{
        parameters: {
      		city: $F("city"),
 			state: $F("state"),
			country: $F("country"),
			month: $F("month"),
			day: $F("day"),
			year: $F("year"),
			birthday_share: $F("birthday_share"),
			gender: $F("gender"),
			gender_share: $F("gender_share"),
			interests: $F("interests"),
			activities: $F("activities"),
			favorites: $F("favorites"),
			about: $F("about"),
			position: $F("position"),
			organization: $F("organization")
 		},
		method: "get",
		onSuccess: function(t){
			var r = t.responseText || "";
			$("info_box").innerHTML = r;
			$("info_edit_div").hide();
			$("info_div").show();
		}
	});
}

function sendFriendRequest(id) {
    new Ajax.Request("/?ajaxReq=sendFriendRequest&id=" + id, { method: "get" });
    $("sendFriendRequest").className = "";
    $("sendFriendRequest").style.color = "#A7A9AC";
    $("sendFriendRequest").innerHTML = "<img src='/img/icon_friend_request.png' style='border:0px;vertical-align:text-bottom;' alt='' /> Sent";
}