function makeCommentRequest(id,replyto){
	if(!replyto) replyto = false;
	$.getJSON('ajax.php?call=makeCommentRequest&id='+escape(id)+'',
	function(data){
		if(data.action == 'showCommentForm'){
			cms_writecomment('profile',id,replyto,'$(\'a[rel=prd_link]:eq(0)\').click();');
		}else if(data.action == 'showFriendRequest'){
			a_sendinvite(id);
		}else if(data.status == 'not_logged_in'){
			a_login();
		}
	});
}