function ShowInscription(CoursId, lng, CoursDate, CoursDesc, CoursLieu) {
	Effect.SlideDown('fullscreen');
	Effect.Appear('loading');
	setTimeout('GetInscription(\'/register.php?id=' + CoursId + '&lng=' + lng + '&CoursDate=' + CoursDate + '&CoursDesc=' + CoursDesc + '&CoursLieu=' + CoursLieu + '\')', 2000);
}

function HideInscription() {
	Effect.BlindUp('fullscreen');
	Effect.Fade('window');
	setTimeout('window.location.reload()', 1000);
}

function GetInscription(url) {
	new Ajax.Request(url, {
		method: 'get',
		onComplete: function(transport) {
			var winRegister = $('winregister');
			Effect.Fade('loading');
			Effect.Appear('window');
			winRegister.update(transport.responseText);
			jQuery('div.wpcf7 > form').ajaxForm({
            beforeSubmit: wpcf7BeforeSubmit,
            dataType: 'json',
            success: wpcf7ProcessJson
			});

			jQuery('div.wpcf7 > form').each(function(i, n) {
            wpcf7ToggleSubmit(jQuery(n));
			});
		}
	});
}