if(typeof jQuery == 'function')
{
	jQuery(function($){
		$('form.cm').live('submit', function(){
			var form = this;
			var form_id = '#' + $(this).attr('id');
			$.post($(this).attr('action'), $(this).serialize(), function(response){
				$(form).replaceWith($(form_id, response).html());
			});
			return false;
		});
	});
}
