var Comments={init:function(){var commentForm=$('PostCommentForm');var action=commentForm.action;commentForm.set('zend',{url:action,method:'put',onRequest:function(){ActionTracker.prompt('comment','Posting comment.','loading');},onSuccess:function(responseText,responseXML){var resp=Response.test(responseText,true);if(resp[0]==true){ActionTracker.prompt('comment','Comment submitted for moderation.','success',null,3000);CakeForm.clearErrors('PostCommentForm');}else{CakeForm.errors('PostCommentForm',resp[1]);this.fireEvent('onFailure');}},onFailure:function(){ActionTracker.prompt('comment','Comment was not submitted.','error');}});$('SubmitComment').addEvent('click',function(e){e.stop();commentForm.zend();});}}
window.addEvent('domready',Comments.init);
/* Thu, 19 Mar 2009 02:23:38 GMT js/blog.js */
