if(typeof KAJONA.portal.postacomment=="undefined"){KAJONA.portal.postacomment={}}KAJONA.portal.postacomment=(function(){function b(f){var c=KAJONA_WEBPATH+"/xml.php?module=postacomment&action=savepost";var g={};var d=document.getElementById("formComment_"+f).elements;for(var e=0;e<d.length;e++){g[d[e].name]=d[e].value}$("#postacommentFormWrapper_"+f).html('<div align="center" class="loading"><img src="'+KAJONA_WEBPATH+'/templates/default/pics/default/loading.gif" /></div>');$("#postaCommentButton_"+f).css("display","none");$.post(c,g,function(h,i){a(h,f)},"text")}function a(d,c){$("#postacommentFormWrapper_"+c).html(d);if(document.getElementById("postaCommentForm_"+c)!=undefined){KAJONA.portal.loadCaptcha(c);document.getElementById("postaCommentForm_"+c).style.display="block"}}return{submit:b}}());