/* * Affichage d'un contenu suivant *  * @copyright	egzakt.com * * @version 	2007/06/05 * @package		EDU-083 * @author 		Emilie */function bloc_deroulant(objet) {	objet.next().slideToggle("normal");	objet.toggleClass("selected");	objet.parent().toggleClass("bloc_deroulant_selected");	return false;}$(function() {	$(".zone_deroulante").hide();		$("a.lien_deroulant").click(		function(){			return bloc_deroulant($(this));		}	);			$(".tmpl_caract tr:even").addClass("paire");});/* * Autoriser seulement des chiffres *  * @copyright	egzakt.com * @version 	2008/10/28 * @author 		Emilie */function champ_numerique(e) {	// 48 à 58 = 0 à 9	// 96 à 105 = 0 à 9 du numpad	// 8 = backspace	// 9 = tab	// 37 = fleche gauche	// 39 = fleche droite	// 46 = delete		key = e.which ? e.which : e.keyCode			if (!(((key >= 48) && (key <= 58)) || ((key >= 96) && (key <= 105)) || (key == 8) || (key == 9) || (key == 37) || (key == 39) || (key == 46))) {		return false;	}}/* Ajouter les paramètres de la recherche dans l'url * * @version 	2007/12/11 * @package		JBM-001 * @author 		Emilie */function calendrier_recherche(formulaire) {	action_originale = formulaire.attr("action");			action = "/" + $("#date").val() + "/" + $("#categorie_code").val();		formulaire.attr("action",action_originale + action);		return true;}function ouvrir_carte_sur_url(url) {	var win_carte = window.open(url, 'carte','width=780,height=657,toolbar=no,directories=no,status=no,menubar=no,line scrollbars=no,resizable=no');	return false;}/* Vieilles fonction du microsite Moto */function StringGrandeur (width, height)   {   var string = 'width=' + width + ',height=' + height + ',left=' + ((screen.width - width) / 2) + ',top=' + ((screen.height - height) / 2) + ',screenX=' + ((screen.width - width) / 2) + ',screenY=' + ((screen.height - height) / 2);   return string;   }function OuvrirFenetre(page, largeur, hauteur, scrollBars)   {   if (typeof(scrollBars) == 'undefined')      scrollBars = true;   if (scrollBars)      WindowFenetre = open(page, 'WindowFenetre', 'resizable=no,scrollbars=yes,status=yes,menubar=no,' + StringGrandeur(largeur,hauteur));   else      WindowFenetre = open(page, 'WindowFenetre', 'resizable=no,scrollbars=no,status=yes,menubar=no,' + StringGrandeur(largeur,hauteur));   WindowFenetre.focus();   }