jQuery(document).ready(function(){
	if(jQuery('#comment_form').length) {
		jQuery.post('/site/get-comment-hash/' + jQuery('input[name=entry_id]').val(), null, function(data) {
			jQuery('input[name=hash]').val(data);
		});

		jQuery('#comment_form').attr('action', jQuery('input[name=postto]').val());
	}
});