window.addEvent('domready', function () {
	$$('form.mnSubscriptionForm').each(function(element,index) {
		element.addEvent('submit', function(e){
			new Event(e).stop();
			var log2 = $(this.getProperty('id')+'-log').empty().addClass('formLogLoading').removeClass('notice');
			this.send({
				update: log2,
				onComplete: function(res){
					log2.removeClass('formLogLoading');
          
					if (res.substr(13, 7) == 'success') {
						window.location.reload();
					} else {
						log2.addClass('notice');
					}
				}
			});
		});
	});
		
	if($('comment-form')) {
		$('comment-form').view.value = 'mncomment';
	}
	
});
