function replyCom()
{
	$(".com_reply").livequery(function(){
		$(this).click(function(){	
			if(!$("#commentForm").attr('action')){
				addComment();
			}
			var temp = $(this).parent().parent().attr("id");
			var id = temp.split("_");
			var name = $(this).parent().parent().find(".comment_author").text();
			setTimeout(function(){
				//var name = $(element" .comment_author").text();
				$('#userReplyId').val(id[1]);
				$('#author').focus();
				//var y = $('#author').pageY;
				//alert(y);
					//window.scrollBy(0,y+15);			
				showCommentsForm(true);
				$('.inform').html('');
				$('#commentForm').before('<div class="inform">Odpowiadasz Użytkownikowi <b>"'+name+'"</b><span> <a href="" id="cancelreply">Anuluj</a></span></div>');
			},100);
			return false;
		});
	});
	
	$("#cancelreply").livequery(function(){	
		$(this).click(function(){
			$('#userReplyId').val('');
			$('.inform').html('');
			$('.comments').focus();
			return false;
		});
	});
}
$(document).ready(replyCom);