
$(document).ready(fnCommLoaded);

var currentname;
var currentemail;
var currentdesc;

function fnCommentClick(e)
{
  currentname = $('#cmName').val();
  currentemail = $('#cmAdd').val();
  currentdesc = $('#cmComment').val();
  vchallenge = $("#recaptcha_challenge_field").val();
  vresponse = $("#recaptcha_response_field").val(); 
	$('#blogcommentform').load(document.getElementById('myform').action, {challenge: vchallenge, response: vresponse, RCAP: $('#cmEmail').val(), name: $('#cmName').val(), email: $('#cmAdd').val(), comment: $('#cmComment').val()});
	return;
}


function fnCommLoaded() {
  $('#cmName').val("");
  $('#cmAdd').val("");
  $('#cmComment').val("");
}
var AddCommentGo;
function fnLoadCurrentComment()
{
  var newDiv = $("<div class=\"blog_commentbox\" style=\"display:none\"><div class=\"box_bubble\">&nbsp;</div><div class=\"comm_date\">Just Posted</div><div class=\"comm_head\">"+currentname+"wrote:</div>"+currentdesc+"</div>").appendTo("#commentContainer");
  newDiv.fadeIn(1000);
}

function fnReloadComments(blogid)
{
	$('#commentContainer').load(base_url + "/news/loadcomments/" + blogid, null, function(){
		ResizeContent();
	});
}





