function msc_ajax_form(idForm, idName)
{
	var log = $(idName).empty().addClass('ajax-loading');
	
	$(idForm).set('send', {onComplete: function(response) {
		log.removeClass('ajax-loading');
		log.set('html', response);
	}});
	
	$(idForm).send();
}

function show_step(sys_url, id)
{
	var log = $('step_'+id).empty().addClass('ajax-loading');
	
	for (var i=id; i<=4; i++)
	{
		$('step_'+i).set('html', '');
	}
	
	new Request.HTML({
		url: sys_url,
		update: 'step_'+id,
		evalScripts: true,
		onSuccess: function() {
			log.removeClass('ajax-loading');
		},
		onFailure: function() {
			$('step_'+id).set('text', 'The request failed.');
		}
	}).send();
}
