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

