function get_trad_champ(champ) 
{
		switch(champ)
		{
				case "nom_equipe" :
						return("name of team");
						break;
				case "fermer" :
						return("Close");
						break;				
				case "nom" :
						return("Name");
						break;
				case "prenom" :
						return("First name");
						break;
				case "email" :
						return("E-mail");
						break;
				case "adresse" :
						return("Address");
						break;
				case "codepostal" :
						return("Post code");
						break;
				case "ville" :
						return("City");
						break;
				case "pays" :
						return("Country");
						break;
				case "jour" :
						return("Day");
						break;
				case "mois" :
						return("Month");
						break;
				case "annee" :
						return("Year");
						break;
				case "plusoumoins" :
						return("More or less");
						break;
				case "lieu_depart" :
						return("Place of departure");
						break;
				case "lieu_arrivee" :
						return("Place of arrival");
						break;
				case "type_sortie" :
						return("Type of outing");
						break;
				case "type_vehicule" :
						return("Type of vehicle");
						break;
				case "nb_places_libres" :
						return("Number of places available");
						break;
				case "prix" :
						return("Financial contribution");
						break;
				case "annonce" :
						return("Advertisement");
						break;
				case "cgus" :
						return("General terms and conditions of use of the service");
						break;
				case "heure" :
						return("Time");
						break;
				case "min" :
						return("Minutes");
						break;
				case "niveau_ski" :
						return("Ski level");
						break;
				case "message" :
						return("Message");
						break;
				case "nom1":
						return("name of participant 1");
						break;
				case "prenom1":
						return("firstname of competitor 1");
						break;
				case "adresse1":
						return("adress of competitor 1");
						break;
				case "codepostal1":
						return("post code of competitor 1");
						break;
				case "ville1":
						return("city of competitor 1");
						break;
				case "pays1":
						return("country of competitor 1");
						break;
				case "telephone1":
						return("phone number of competitor 1");
						break;
				case "date_naissance1":
						return("date of birth of competitor 1");
						break;						
				case "nom2":
						return("name of competitor 2");
						break;
				case "prenom2":
						return("firstname of competitor 2");
						break;
				case "adresse2":
						return("adress of competitor 2");
						break;
				case "codepostal2":
						return("post code of competitor 2");
						break;
				case "ville2":
						return("city of competitor 2");
						break;
				case "pays2":
						return("country of competitor 2");
						break;
				case "telephone2":
						return("phone number of competitor 2");
						break;
				case "date_naissance2":
						return("date of birth of competitor 2");
						break;						
				case "nom3":
						return("name of competitor 3");
						break;
				case "prenom3":
						return("firstname of competitor 3");
						break;
				case "adresse3":
						return("adress of competitor 3");
						break;
				case "codepostal3":
						return("post code of competitor 3");
						break;
				case "ville3":
						return("city of competitor 3");
						break;
				case "pays3":
						return("country of competitor 3");
						break;
				case "telephone3":
						return("phone number of competitor 3");
						break;
				case "date_naissance3":
						return("date of birth of competitor 3");
						break;			
				case "reglement_xwing":
						return("You have to accept the disclaimer of the 3 Vallées X-Wing Rally");
						break;	
				case "reglement_xwing1":
						return("The competitor 1 is over 18, he has to accept 3 Vallées X-Wing Rally rules.");
						break;			
				case "reglement_xwing2":
						return("The competitor 2 is over 18, he has to accept 3 Vallées X-Wing Rally rules.");
						break;			
				case "reglement_xwing3":
						return("The competitor 3 is over 18, he has to accept 3 Vallées X-Wing Rally rules.");
						break;
				case "reglement_trop_xwing1":
						return("Please, choose the box that corresponds to the age of the competitor 1.");
						break;			
				case "reglement_trop_xwing2":
						return("Please, choose the box that corresponds to the age of the competitor 2.");
						break;
				case "reglement_trop_xwing3":
						return("Please, choose the box that corresponds to the age of the competitor 3.");
						break;							
				case "tovalidation" :
						return("All the fields must be filled in");
						break;						
				case "reglementaccept":
						return("You have to accept the rules.");
						break;
				case "datenaissance" :
						return("Your date of birth must be in dd/mm/yyyy format");
						break;					
				case "recherche" :
						return("Please complete the word to search");
						break;				
				case "modeacces" :
						return("Access Map");
						break;			
				case "mediacenter" :
						return("Images");
						break;
				default :
						return(champ);
		}
}

function get_trad_lib(lib) 
{
		switch(lib)
		{
				case "vide" :
						return("The XX of the competitor is mandatory, please complete all required fields");
						break;
				case "numerique" :
						return("This field can only contain numbers. No other characters are accepted.");
						break;
				case "email" :
						return("The e-mail address you have entered is not valid, \nplease enter a valid address.");
						break;
				case "station" :
						return("Please select a resort.");
						break;
				case "date" :
						return("The date you have selected has already passed. Please enter a valid date.");
						break;
				case "cgus" :
						return("You must agree to the general terms and conditions of the service.");
						break;
				case "macintosh_3d" :
						return("<br>application non disponible for Macintosh platforms</a>");
						break;
				case "IE_3d" :
						return("the application only work with Internet Explorer.<br>but you can also  <a href='http://www.fabrikmen.com/InOut/3Vallees/Itineraire/Download/Itineraires3Vallees.exe'>download an executable version</a>");
						break;
				case "lien_3d" :
						return("<br>Click here to <a href=\'#\' onclick=\'WinOpen();return false;\'>visualize the 3D chart.</a><br>You can also <a href='"+Link_Exe+"'>download the application</a>");
						break;			
				case "email1":
						return("The e-mail address you have entered for the participant 1 is not valid .\nPlease enter a valid address.");
						break;
				case "email2":
						return("The e-mail address you have entered for the participant 2 is not valid .\nPlease enter a valid address.");
						break;
				case "email3":
						return("The e-mail address you have entered for the participant 3 is not valid .\nPlease enter a valid address.");
						break;
				case "date1_invalide":
						return("The date of birth you have entered for the participant 1 is not valid .\nPlease enter a valid date.");
						break;
				case "date2_invalide":
						return("The date of birth you have entered for the participant 2 is not valid .\nPlease enter a valid date.");
						break;
				case "date3_invalide":
						return("The date of birth you have entered for the participant 3 is not valid .\nPlease enter a valid date.");
						break;
				case "au_moins_un_tel":
						return("One telephone mobile number is required");
						break;
				case "date1_trop_jeune" :
						return("Competitor 1 must be over 18, if not, you can register by filling in the downloadable file.");
						break;						
				case "reglement1_jeune" :
						return("The competitor 1 is not over 18, in order to validate your registration, please send us back the disclaimer form.");
						break;						
				case "date2_trop_jeune" :
						return("Competitor 2 must be over 18, if not, you can register by filling in the downloadable file.");
						break;						
				case "reglement2_jeune" :
						return("The competitor 2 is not over 18, in order to validate your registration, please send us back the disclaimer form.");
						break;					
				case "date3_trop_jeune" :
						return("Competitor 3 must be over 18, if not, you can register by filling in the downloadable file.");
						break;						
				case "reglement3_jeune" :
						return("The competitor 3 is not over 18, in order to validate your registration, please send us back the disclaimer form.");
						break;
										
				default : 
						return(lib)
		}
}

function replace_lib(expr,a,b) {
   var i=0
   while (i!=-1) {
      i=expr.indexOf(a,i);
      if (i>=0) {
         expr=expr.substring(0,i)+b+expr.substring(i+a.length);
         i+=b.length;
      }
   }
   return expr
}

function ouvreMeteo()
{
	var str_close = '';
	var t = '';
	var a = 'live_meteo.php?lang=2&Rub=192&height=450&amp;width=851&keepThis=true&TB_iframe=true&';
	var g = false;
	tb_show(t,a,g,"Close");
}


function ouvreLiveCam()
{
	var str_close = '';
	var t = '';
	var a = 'live_webcams.php?lang=2&Rub=192&height=450&amp;width=851&keepThis=true&TB_iframe=true&';
	var g = false;
	tb_show(t,a,g,"Close");
}
