In the following function only the ajax call works, but it gets as parameter comment an empty string even when I type in the input text.
function addComment(pid,t,m,mid,pmid){
$('#commentbuttongif').html('<img id="ajaxcommentgif" src="ajax-loader.gif" />')...