function jqsendcomment(id,model)
{
	commenttext = $('#text').val();
	$('#comment-it').replaceWith('<div id="progress" style="text-align:center;"><img src="/images/spinner1.gif"/></div>');
	jQuery.post("/comment/add/", {
		comment: commenttext,
		nid: id,
		model: model
    },
	function(data){$('#comment-list').replaceWith(data); });
	$('#progress').replaceWith('<div id="message" class="news" style="display:none;text-align:center;"><strong>Comment is added successfully</strong></div>');
	$('#message').fadeIn('slow');
}

function setpage(url)
{
        
	jQuery.post(url, {}, function(data){
	$('#comment-list').replaceWith(data);    
	});
}

function sharecontent(treeid)
{	
	mails = $('#test').val();
	url="/tree/sendsharebelowtree/";
	jQuery.post(url, { mailaddresses: mails, treeid: treeid }, function(data){
	$('#sbutton').before('<h3>Thanks for sharing this!</h3>').fadeOut('slow');
	});
}
