function rankProfile(id, guid, vote) {
url = '/ajax/profile_rank_vote.php';
new Ajax.Updater('profile-rank', url, { parameters: { name: 'User_Profile_Rank',process: 'true', id: guid,vote: vote
},
onCreate: function(transport) {
$('profile-rank-status').update('Submitting vote...');
},
onComplete: function(transport) {
$('profile-rank-status').update('Thank you for your vote!');
}
}
);
}