// JavaScript Document

/* document Ready */
$( function () {
	addEvent(window, "load", tmt_validatorInit);	
});


//Affichage des erreurs, fonction appellée par TMTValidator
function displayErrorEventHomePage(formNode,invalidFields){
	$('#errorMessage').html('Vous devez cocher la case "J\'accepte le règlement"');
	$(formNode).children('.errorMessage').show();
}

function displayErrorEventParticipation(formNode,invalidFields){
	$('#errorMessage').html("Certaines informations sont incomplètes ou invalides, veuillez les compléter correctement.");
	$(formNode).children('.errorMessage').show();
}


function MM_openBrWindow(theURL,winName,features,position) { //v2.0	
   	pop = window.open(theURL,winName,features);
	var windowX = (screen.width - position)/2;
	pop.moveTo(windowX,180);
	pop.focus();
}