function verif_seach(formulaire,lng){
	switch(lng){
		case '1':	
			txt_alert_mot					= "Veuillez saisir un mot clé";
		break;
		case '2':
			txt_alert_mot					= "Please type a key word";
		break;
	}
	oForm = document.forms[formulaire]
	if((!oForm.mot.value)||(oForm.mot.value == 'Mots-clés')){	
		alert(txt_alert_mot);
		oForm.mot.focus()
		return false
	}
}

function ouvrir_fenetre(page,nom,proprietes){
		window.open(page,nom,proprietes);
	}


/* *********************************************************************************
	update du panier
	********************************************************************************* */
	function upt_Qte(MID,FQTE,toto,lng){
		location.href="http://www.bamboula.com/index.php?page=panier&panier_action=upt_panier&MID="+MID+"&F_Qte="+FQTE+"&langue_id="+lng		
	}
	function upt_Dst(pays_id,lng){
		location.href="http://www.bamboula.com/index.php?page=panier&panier_action=view&pays_id="+pays_id+"&langue_id="+lng
	}
	function upt_Liv(livraison_id,lng){
		location.href="index.php?page=panier&panier_action=view&livraison_id="+livraison_id+"&langue_id="+lng
	}
	
	function dsp_val(element,valeur){
		document.forms[0].value = valeur
	}
	
	function dsp_sousMenu(TR_name, TR_root){	
	if(navigator.appName.indexOf("Internet Explorer") != -1){
		dsp_block = "block";
	}else{
		dsp_block = "table-row";
	}	
	all_tr = zone_produits.getElementsByTagName('TR')
	for(tr=0;tr<all_tr.length;tr++){
		if(all_tr[tr].className == 'sousMenu'){
			all_tr[tr].style.display = 'none';
		}
	}
	for(tr=0;tr<all_tr.length;tr++){
		if(all_tr[tr].className == 'sousMenu'){
			if(all_tr[tr].id == TR_name){
				all_tr[tr].style.display = dsp_block;
				all_tr[tr].style.background = 'url(img/bkgsommaireover.jpg)';
			}
		}
	}
}

function verif_PanierForm(formulaire,lng){
		oForm = document.forms[formulaire];
		switch(lng){
			case '1':			
				txt_alert_email					= "Veuillez saisir E-mail";
				txt_alert_email_inc 			= "E-mail invalide\nvérifiez la syntaxe";			
				txt_alert_mdp					= "Veuillez saisir un mot de passe";
				txt_alert_mdp_confirm			= "Veuillez confirmer votre mot de passe";
				txt_alert_mdp_diff 				= "Mot de passe différents";
				txt_alert_societe				= "Veuillez saisir le nom de la société";
				txt_alert_siret					= "Veuillez saisir le numéro de siret";
				txt_alert_nom 					= "Veuillez saisir votre nom";
				txt_alert_societe 				= "Veuillez saisir le champ société";
				txt_alert_prenom 				= "Veuillez saisir votre prénom";
				txt_alert_adresse 				= "Veuillez saisir votre adresse";
				txt_alert_code_postal 			= "Veuillez saisir votre code postal";
				txt_alert_code_postal_err		= "Code postal invalide ou hors métropole";
				txt_alert_ville					= "Veuillez saisir votre ville";
				txt_alert_tel 					= "Veuillez saisir votre n° de téléphone";
				txt_alert_fax					= "Veuillez saisir votre n° de fax";
				txt_alert_mobile				= "Veuillez saisir votre n° de mobile";
				txt_cond_ventes					= "Vous devez accepter les conditions générales de ventes";
				txt_alert_statuts			 	= "Veuillez saisir un statuts";
				txt_alert_groupe				= "Veuillez précisez votre groupe";
				txt_alert_groupement			= "Veuillez précisez votre groupement";
				txt_alert_autre					= "Veuillez précisez votre choix";
				
				txt_alert_nom_liv 				= "Veuillez saisir votre nom";
				txt_alert_prenom_liv 			= "Veuillez saisir votre prénom";
				txt_alert_adresse_liv 			= "Veuillez saisir votre adresse";
				txt_alert_code_postal_liv 		= "Veuillez saisir votre code postal";
				txt_alert_code_ville_liv 		= "Veuillez saisir votre ville";
				txt_alert_code_tel_liv 			= "Veuillez saisir votre n° de téléphone";
				
				txt_alert_typeS					= "Veuillez sélection un critère de recherche";
				txt_alert_mot					= "Veuillez saisir un mot clé";
				txt_alert_cat					= "Veuillez sélectionner une catégorie";
				txt_alert_alpha					= "Veuillez sélectionner une lettre";
				txt_alert_incCat				= "Sélection incorrecte";
				// demande de devis
				txt_alert_demande				= "Veuillez saisir votre demande";	
				txt_alert_fonction				= "Veuillez saisir votre fonction"
				txt_alert_besoins				= "Veuillez préciser vos besoins";
				txt_alert_rdv					= "Veuillez précisez une date";
			break;
			case '2':
				txt_alert_email					= "Please type your E-mail";
				txt_alert_email_inc 			= "Incorrect E-mail ";			
				txt_alert_mdp					= "Please type a password";
				txt_alert_mdp_confirm			= "please confirm your password";
				txt_alert_societe				= "Please type the company name";
				txt_alert_siret					= "Please type the company siret number";
				txt_alert_nom 					= "Please type your last name";
				txt_alert_prenom 				= "Please type your first name";
				txt_alert_adresse 				= "Please type your adress";
				txt_alert_code_postal 			= "Please type your zip code";
				txt_alert_code_postal_err		= "Zip Code incorrect or out of France";
				txt_alert_code_ville			= "Please type your city";
				txt_alert_code_tel 				= "Please type your phine number";
				txt_cond_ventes					= "You must be agree with the generals conditions terms";
				
				txt_alert_nom_liv 				= "Please type your last name";
				txt_alert_prenom_liv 			= "Please type your first name";
				txt_alert_adresse_liv 			= "Please type your adress";
				txt_alert_code_postal_liv 		= "Please type your zip code";
				txt_alert_code_ville_liv 		= "Please type your city";
				txt_alert_code_tel_liv 			= "Please type your phine number";
				
				txt_alert_typeS					= "please sélect a search option";
				txt_alert_mot					= "please type a key word";
				txt_alert_cat					= "please select a category";
				txt_alert_alpha					= "please select a letter";
				txt_alert_incCat				= "Incorrect selection";
				// demande de devis
				txt_alert_demande				= "please type your request";	
				txt_alert_fonction				= "please type your function"
				txt_alert_besoins				= "please specify your needs";
				txt_alert_rdv					= "please specify a date";
			break;
		}
		
		
		
		switch(formulaire){		
			case 'mdp':
				if(!oForm.email.value){
					alert(txt_alert_email)
					oForm.email.focus();
					return false
				}
				
				if ((oForm.email.value.indexOf("@",1)>1)&&(oForm.email.value.indexOf(".",1)>0)){			
				}else{
					alert(txt_alert_email_inc);
					oForm.email.focus();
					return false
				}			
			break;
			case 'login':
				/*
				if(!oForm.nom.value){
					alert(txt_alert_email)
					oForm.nom.focus();
					return false
				}
				
				if(!oForm.prenom.value){
					alert(txt_alert_email)
					oForm.prenom.focus();
					return false
				}
				*/
				if(!oForm.email.value){
					alert(txt_alert_email)
					oForm.email.focus();
					return false
				}
				
				if ((oForm.email.value.indexOf("@",1)>1)&&(oForm.email.value.indexOf(".",1)>0)){			
				}else{
					alert(txt_alert_email_inc);
					oForm.email.focus();
					return false
				}			
				
				if(!oForm.mdp.value){
					alert(txt_alert_mdp)
					oForm.mdp.focus();
					return false
				}
				oForm.panier_action.value="login";
				oForm.submit();
			break;
			case 'mailing':
				if(!oForm.nom.value){
					alert(txt_alert_nom_liv)
					oForm.nom.focus();
					return false
				}
				
				if(!oForm.prenom.value){
					alert(txt_alert_prenom_liv)
					oForm.prenom.focus();
					return false
				}
				
				if(!oForm.email.value){
					alert(txt_alert_email)
					oForm.email.focus();
					return false
				}
				
				if ((oForm.email.value.indexOf("@",1)>1)&&(oForm.email.value.indexOf(".",1)>0)){			
				}else{
					alert(txt_alert_email_inc);
					oForm.email.focus();
					return false
				}			
				
			break;
			case 'inscription_pro':			
			case 'upt_inscription':
			case 'inscription':			
				if(!oForm.email.value){
				alert(txt_alert_email);
				oForm.email.focus();
				return false;
			}			
			if ((oForm.email.value.indexOf("@",1)>1)&&(oForm.email.value.indexOf(".",1)>0)){			
			}else{
				alert(txt_alert_email_inc);
				oForm.email.focus();
				return false;
			}
			if(!oForm.mdp.value){
				alert(txt_alert_mdp);
				oForm.mdp.focus();
				return false;
			}			
			if(!oForm.mdp_confirm.value){
				alert(txt_alert_mdp_confirm);
				oForm.mdp_confirm.focus();
				return false;
			}
			if(oForm.mdp.value!=oForm.mdp_confirm.value){
			   alert(txt_alert_mdp_diff);
				oForm.mdp_confirm.focus();
				return false;
			}	
			if(!oForm.civ.value){
				alert(txt_alert_civ);
				oForm.civ.focus();
				return false;
			}
			if(formulaire == 'inscription_pro'){
				if(!oForm.societe.value){
					alert(txt_alert_societe);
					oForm.societe.focus();
					return false;
				}
				if(!oForm.siret.value){
					alert(txt_alert_siret);
					oForm.siret.focus();
					return false;
				}
			}
			if(!oForm.nom.value){
				alert(txt_alert_nom);
				oForm.nom.focus();
				return false;
			}
			if(!oForm.prenom.value){
				alert(txt_alert_prenom);
				oForm.prenom.focus();
				return false;
			}
			
			if(!oForm.adresse.value){
				alert(txt_alert_adresse);
				oForm.adresse.focus();
				return false;
			}			
			if(!oForm.code_postal.value){
				alert(txt_alert_code_postal);
				oForm.code_postal.focus();
				return false;
			}			
			if(!oForm.ville.value){
				alert(txt_alert_ville);
				oForm.ville.focus();
				return false;
			}
			/*if(!oForm.pays_id.value){
				alert(txt_alert_pays);
				oForm.pays_id.focus();
				return false;
			}*/
			if(!oForm.tel.value){
				alert(txt_alert_tel);
				oForm.tel.focus();
				return false;
			}
			
			if(oForm.same_adr[1].checked == true){	
				if(!oForm.nom_liv.value){
					alert(txt_alert_nom_liv);
					oForm.nom_liv.focus();
					return false;
				}
				if(!oForm.prenom_liv.value){
					alert(txt_alert_prenom_liv);
					oForm.prenom_liv.focus();
					return false;
				}
				if(!oForm.adresse_liv.value){
					alert(txt_alert_adresse_liv);
					oForm.adresse_liv.focus();
					return false;
				}
				if(!oForm.code_postal_liv.value){
					alert(txt_alert_code_postal);
					oForm.code_postal_liv.focus();
					return false;
				}
				if(!oForm.ville_liv.value){
					alert(txt_alert_ville);
					oForm.ville_liv.focus();
					return false;
				}					
				if(!oForm.tel_liv.value){
					alert(txt_alert_tel);
					oForm.tel_liv.focus();
					return false;
				}					
				if(!oForm.email_liv.value){
					alert(txt_alert_email);
					oForm.email_liv.focus();
					return false;
				}
				if ((oForm.email_liv.value.indexOf("@",1)>1)&&(oForm.email_liv.value.indexOf(".",1)>0)){			
				}else{
					alert(txt_alert_email_inc);
					oForm.email_liv.focus();
					return false;
				}
			}

			if(!oForm.acc_cond.checked == true){
				alert(txt_cond_ventes);				
				return false;
			}				
			break;		
		}
	}
	
	function act_livraison(action){
		liv_zone = zone_livraison.getElementsByTagName('input');	
		liv_zone2 = zone_livraison.getElementsByTagName('select');	
		if(	(navigator.userAgent.indexOf("Firefox") != -1)||
			(navigator.userAgent.indexOf("Opera") != -1)){
			dsp_block = "table-row";		
		}else{
			dsp_block = "block";
		}	
		switch(action){
			case '1':
				document.getElementById('zone_livraison').style.display = "none";			
				for(i=0;i<liv_zone.length-1;i++){	
					document.forms[document.forms.length-1].elements[liv_zone[i].name].disabled=true;
				}	
				for(i=0;i<liv_zone2.length-1;i++){	
					document.forms[document.forms.length-1].elements[liv_zone2[i].name].disabled=true;
				}		
			break;
			case '0':
				document.getElementById('zone_livraison').style.display = dsp_block;			
				for(i=0;i<liv_zone.length-1;i++){	
					document.forms[document.forms.length-1].elements[liv_zone[i].name].disabled=false;	
				}		
				for(i=0;i<liv_zone2.length;i++){	
					document.forms[document.forms.length-1].elements[liv_zone2[i].name].disabled=false;
				}			
			break;
		}		
	}
	
	function act_liv(action){
		liv_zone = zone_livraison.getElementsByTagName('input');	
		liv_zone2 = zone_livraison.getElementsByTagName('select');	
		if(	(navigator.userAgent.indexOf("Firefox") != -1)||
			(navigator.userAgent.indexOf("Opera") != -1)){
			dsp_block = "table-row";		
		}else{
			dsp_block = "block";
		}	
		switch(action){
			case '1':
				document.getElementById('zone_livraison').style.display = "none";			
				for(i=0;i<liv_zone.length-1;i++){	
					document.forms['upt_inscription'].elements[liv_zone[i].name].disabled=true;
				}	
				for(i=0;i<liv_zone2.length-1;i++){	
					document.forms['upt_inscription'].elements[liv_zone2[i].name].disabled=true;
				}		
			break;
			case '0':
				document.getElementById('zone_livraison').style.display = dsp_block;			
				for(i=0;i<liv_zone.length-1;i++){	
					document.forms['upt_inscription'].elements[liv_zone[i].name].disabled=false;			
				}		
				for(i=0;i<liv_zone2.length-1;i++){	
					document.forms['upt_inscription'].elements[liv_zone2[i].name].disabled=false;
				}			
			break;
		}		
	}
	
	function act_radio(action){
		liv_zone = zone_livraison.getElementsByTagName('input');	
		liv_zone2 = zone_livraison.getElementsByTagName('select');	
		if(	(navigator.userAgent.indexOf("Firefox") != -1)||
			(navigator.userAgent.indexOf("Opera") != -1)){
			dsp_block = "table-row";		
		}else{
			dsp_block = "block";
		}	
		switch(action){
			case '1':
				document.getElementById('groupe').style.display = "none";
				document.getElementById('groupement').style.display = "none";
				document.getElementById('autre').style.display = "none";
			break;
			case '2':
				document.getElementById('groupe').style.display = "none";
				document.getElementById('groupement').style.display = "none";
				document.getElementById('autre').style.display = "none";
			break;
			case '3':
				document.getElementById('groupe').style.display = dsp_block;
				document.getElementById('groupement').style.display = "none";
				document.getElementById('autre').style.display = "none";
			break;
			case '4':
				document.getElementById('groupement').style.display = dsp_block;			
				document.getElementById('groupe').style.display = "none";
				document.getElementById('autre').style.display = "none";
			break;
			case '5':
				document.getElementById('autre').style.display = dsp_block;
				document.getElementById('groupe').style.display = "none";
				document.getElementById('groupement').style.display = "none";	
			break;
		}		
	}
	
	function act_radio_liv(action){
		liv_zone = zone_livraison.getElementsByTagName('input');	
		liv_zone2 = zone_livraison.getElementsByTagName('select');	
		if(	(navigator.userAgent.indexOf("Firefox") != -1)||
			(navigator.userAgent.indexOf("Opera") != -1)){
			dsp_block = "table-row";		
		}else{
			dsp_block = "block";
		}	
		switch(action){
			case '1':
				document.getElementById('groupe_liv').style.display = "none";
				document.getElementById('groupement_liv').style.display = "none";
				document.getElementById('autre_liv').style.display = "none";
			break;
			case '2':
				document.getElementById('groupe_liv').style.display = "none";
				document.getElementById('groupement_liv').style.display = "none";
				document.getElementById('autre_liv').style.display = "none";
			break;
			case '3':
				document.getElementById('groupe_liv').style.display = dsp_block;
				document.getElementById('groupement_liv').style.display = "none";
				document.getElementById('autre_liv').style.display = "none";
			break;
			case '4':
				document.getElementById('groupement_liv').style.display = dsp_block;			
				document.getElementById('groupe_liv').style.display = "none";
				document.getElementById('autre_liv').style.display = "none";
			break;
			case '5':
				document.getElementById('autre_liv').style.display = dsp_block;
				document.getElementById('groupe_liv').style.display = "none";
				document.getElementById('groupement_liv').style.display = "none";	
			break;
		}		
	}
	
	
	function goPanier(panier_action,Nvid,lng,MID,formulaire){
		switch(lng){
			case '1':
				txt_areUsure 		= "Etes vous sur ? ";
				txt_viderP 			= "Etes vous sur de vouloir vider votre panier ?";
			break;
			case '2':
				txt_areUsure 		= "Are your sure ?";
				txt_viderP	 		= "Are your sure to want to erase your basket ?";			
			break;
			case '3':
				txt_areUsure 	 	= "Are your sure ?";
				txt_viderP 		 	= "Are your sure to want to erase your basket ?";
			break;
		}
		switch(panier_action){
			case "view":
				location.href="http://www.bamboula.com/index.php?page=panier&panier_action="+panier_action+"&langue_id="+lng;		
			break;
			case "add":		
			QTE = document.forms[formulaire].FLD_Qte.value;		
				/*lst_ids = document.forms[F_art].lst_ids.value;
				MID = Nvid
				dec_lstids = lst_ids.split(',');
				for(i=1;i<dec_lstids.length;i++){
					N_idx = eval("document.forms[F_art].feat_"+dec_lstids[i]+".selectedIndex")
					N_idxVal = eval("document.forms[F_art].feat_"+dec_lstids[i]+".options[document.forms[F_art].feat_"+dec_lstids[i]+".selectedIndex].value")
					MID += ","+N_idxVal				
				}*/
				window.open('http://www.bamboula.com/pages/panier.php?page=panier&panier_action=add&MID='+Nvid+'&QTE='+QTE+"&VID="+MID+'&langue_id='+lng,'caddy','width=500, height=250, status=yes')
			break;	
			case "vider":
				if(confirm(txt_viderP)){				
					location.href="http://www.bamboula.com/index.php?page=panier&panier_action="+panier_action+"&langue_id="+lng;						
					return false
				}			
			break;
			case "remove_P":
				if(confirm(txt_areUsure)){	
					location.href="http://www.bamboula.com/index.php?page=panier&panier_action="+panier_action+"&MIDS="+Nvid+"&langue_id="+lng;		
					return false
				}				
			break;
			case 'inscription':
				location.href="inscription.html";		
			break;
			default:// inscription,mdp,unlogin,login
				location.href="http://www.bamboula.com/index.php?page=panier&panier_action="+panier_action+"&langue_id="+lng;		
			break;				
		}	
	}
	
	function consult_panier(lng){
		window.opener.location.href="http://www.bamboula.com/panier-view-"+lng+"-panier.html";
		window.close();
	}
		
	function springing_Menu(currMenu) {
	var pos = document.getElementById(currMenu).style.display;
	if (document.getElementById(currMenu).style.display=='none') { document.getElementById(currMenu).style.display='block'; }
	else if (document.getElementById(currMenu).style.display=='block') { document.getElementById(currMenu).style.display='none'; }
	}
	
	function send_friend(url_ami){
		window.open('send_friend.php?url_ami='+url_ami,'ami','width=500, height=400')
	}
	
	function verif_theForm(formulaire,lng){
	oForm = document.forms[formulaire];
	switch(lng){
		case '1':			
			txt_alert_civ					= "Veuillez saisir votre civilité";
			txt_alert_email					= "Veuillez saisir E-mail";
			txt_alert_email_inc 			= "E-mail invalide\nvérifiez la syntaxe";						
			txt_alert_nom 					= "Veuillez saisir votre nom";
			txt_alert_societe 				= "Veuillez saisir le champ société";
			txt_alert_prenom 				= "Veuillez saisir votre prénom";
			txt_alert_adresse 				= "Veuillez saisir votre adresse";
			txt_alert_code_postal 			= "Veuillez saisir votre code postal";			
			txt_alert_ville					= "Veuillez saisir votre ville";
			txt_alert_tel 					= "Veuillez saisir votre n° de téléphone";
			txt_alert_fax					= "Veuillez saisir votre n° de fax";			
			txt_alert_pays	 				= "Veuillez sélectionner le pays";			
			txt_alert_arr					= "Veuillez sélectionner votre date d'arrivée";
			txt_alert_dep					= "Veuillez sélectionner votre date de départ";
			txt_alert_sejour				= "Vérifiez vos dates de départ et d'arrivée";
			txt_alert_date					= "Vos dates de séjour sont incorrectes";
			txt_alert_type_chambre			= "Veuillez sélectionner le type de chambre";
			txt_alert_chambres				= "Veuillez sélectionner le nombre de chambres";
			txt_alert_personnes				= "Veuillez sélectionner le nombre de personnes";
			txt_alert_cb					= "Veuillez sélectionner le type de carte bancaire";
			txt_alert_num_cb				= "Veuillez sélectionner le numéro de carte bancaire";
			txt_alert_cryptogramme			= "Veuillez sélectionner le cryptogramme";
			txt_alert_cb_mois_exp			= "Veuillez sélectionner le mois d'expiration de votre carte bancaire";
			txt_alert_cb_annee_exp			= "Veuillez sélectionner l'année d'expiration de votre carte bancaire";
			txt_alert_exp_mois				= "Le mois d'expiration de votre carte bancaire est incorrect";
			txt_alert_exp_annee				= "L'année d'expiration de votre carte bancaire est incorrect";
		break;
		case '2':
			txt_alert_civ					= "Please type your civility";
			txt_alert_email					= "Please type your E-mail";
			txt_alert_email_inc 			= "Incorrect E-mail ";			
			txt_alert_nom 					= "Please type your last name";
			txt_alert_prenom 				= "Please type your first name";
			txt_alert_societe 				= "Please type the company";
			txt_alert_adresse 				= "Please type your adress";
			txt_alert_code_postal 			= "Please type your zip code";
			txt_alert_ville					= "Please type your city";
			txt_alert_tel 					= "Please type your phone number";
			txt_alert_fax					= "Please type your fax";
			txt_alert_pays	 				= "Please type your country";			
			txt_alert_arr					= "Veuillez sélectionner votre date d'arrivée";
			txt_alert_dep					= "Veuillez sélectionner votre date de départ";
			txt_alert_sejour				= "Vérifiez vos dates de départ et d'arrivée";
			txt_alert_date					= "Vos dates de séjour sont incorrectes";
			txt_alert_type_chambre			= "Please type of room";
			txt_alert_chambres				= "Please type the number of room";
			txt_alert_personnes				= "Please type the number of personnes";
			txt_alert_cb					= "Please select the type of CB";
			txt_alert_num_cb				= "Please select the number of CB";
			txt_alert_cryptogramme			= "Veuillez select the cryptogramme";
			txt_alert_cb_mois_exp			= "Please select the expiration month of your CB";
			txt_alert_cb_annee_exp			= "Please select the year of expiration of your CB";
			txt_alert_exp_mois				= "Le mois d'expiration de votre carte bancaire est incorrect";
			txt_alert_exp_annee				= "L'année d'expiration de votre carte bancaire est incorrect";
		break;
		case '3':
			txt_alert_civ					= "Höflichkeit";
			txt_alert_email					= "E-mail";
			txt_alert_email_inc 			= "E-mail nicht gültig";			
			txt_alert_nom 					= "Name des Kontaktes";
			txt_alert_prenom 				= "Please type your first name";
			txt_alert_societe 				= "Betrieb";
			txt_alert_adresse 				= "Adresse";
			txt_alert_code_postal 			= "Postleitzahl";
			txt_alert_ville					= "Stadt";
			txt_alert_tel 					= "Telefon";
			txt_alert_fax					= "Please type your fax";
			txt_alert_pays	 				= "Please type your country";		
			txt_alert_arr					= "Veuillez sélectionner votre date d'arrivée";
			txt_alert_dep					= "Veuillez sélectionner votre date de départ";
			txt_alert_sejour				= "Vérifiez vos dates de départ et d'arrivée";
			txt_alert_date					= "Vos dates de séjour sont incorrectes";	
			txt_alert_type_chambre			= "Please type of room";
			txt_alert_chambres				= "Please type the number of room";
			txt_alert_personnes				= "Please type the number of personnes";
			txt_alert_cb					= "Please select the type of CB";
			txt_alert_num_cb				= "Please select the number of CB";
			txt_alert_cryptogramme			= "Veuillez select the cryptogramme";
			txt_alert_cb_mois_exp			= "Please select the expiration month of your CB";
			txt_alert_cb_annee_exp			= "Please select the year of expiration of your CB";
			txt_alert_exp_mois				= "Le mois d'expiration de votre carte bancaire est incorrect";
			txt_alert_exp_annee				= "L'année d'expiration de votre carte bancaire est incorrect";
		break;
		case '4':
			txt_alert_civ					= "Please type your civility";
			txt_alert_email					= "Please type your E-mail";
			txt_alert_email_inc 			= "Incorrect E-mail ";			
			txt_alert_nom 					= "Please type your last name";
			txt_alert_prenom 				= "Please type your first name";
			txt_alert_societe 				= "Please type the company";
			txt_alert_adresse 				= "Please type your adress";
			txt_alert_code_postal 			= "Please type your zip code";
			txt_alert_ville					= "Please type your city";
			txt_alert_tel 					= "Please type your phone number";
			txt_alert_fax					= "Please type your fax";
			txt_alert_pays	 				= "Please type your country";		
			txt_alert_arr					= "Veuillez sélectionner votre date d'arrivée";
			txt_alert_dep					= "Veuillez sélectionner votre date de départ";
			txt_alert_sejour				= "Vérifiez vos dates de départ et d'arrivée";
			txt_alert_date					= "Vos dates de séjour sont incorrectes";	
			txt_alert_type_chambre			= "Please type of room";
			txt_alert_chambres				= "Please type the number of room";
			txt_alert_personnes				= "Please type the number of personnes";
			txt_alert_cb					= "Please select the type of CB";
			txt_alert_num_cb				= "Please select the number of CB";
			txt_alert_cryptogramme			= "Veuillez select the cryptogramme";
			txt_alert_cb_mois_exp			= "Please select the expiration month of your CB";
			txt_alert_cb_annee_exp			= "Please select the year of expiration of your CB";
			txt_alert_exp_mois				= "Le mois d'expiration de votre carte bancaire est incorrect";
			txt_alert_exp_annee				= "L'année d'expiration de votre carte bancaire est incorrect";
		break;
	}	
	switch(formulaire){		
		case 'location':
			if(!oForm.nom.value){
				alert(txt_alert_nom);
				oForm.nom.focus();
				return false;
			}
			if(!oForm.prenom.value){
				alert(txt_alert_prenom);
				oForm.prenom.focus();
				return false;
			}	
			if(!oForm.fonction.value){
						alert('Veuilez saisir votre fonction');
						oForm.fonction.focus();
						return false;
			}		
			if(!oForm.adresse.value){
						alert(txt_alert_adresse);
						oForm.adresse.focus();
						return false;
			}
			if(!oForm.code_postal.value){
						alert(txt_alert_code_postal);
						oForm.code_postal.focus();
						return false;
			}
			if(!oForm.ville.value){
						alert(txt_alert_ville);
						oForm.ville.focus();
						return false;
			}
			if(!oForm.tel.value){
				alert(txt_alert_tel);
				oForm.tel.focus();
				return false;
			}	
						if(!oForm.arr_dateAlld.value){
				alert('Début de la location');
				return false;
			}
			if(!oForm.dep_dateAlld.value){
				alert('Fin de la location');
				return false;
			}			
			if(oForm.arr_dateAlld.value == oForm.dep_dateAlld.value){
				alert('Les dates de la location sont identiques');
				return false;
			}	
			if(oForm.dep_dateAlld.value < oForm.arr_dateAlld.value){
				alert('Les dates de la location sont incorrectes');
				return false;
			}	
			if(!oForm.email.value){
				alert(txt_alert_email);
				oForm.email.focus();
				return false;
			}
			if ((oForm.email.value.indexOf("@",1)>1)&&(oForm.email.value.indexOf(".",1)>0)){			
			}else{
				alert(txt_alert_email_inc);
				oForm.email.focus();
				return false;
			}	
		break;
		case 'connexion':
			if(!oForm.email.value){
				alert(txt_alert_email);
				oForm.email.focus();
				return false;
			}
			if ((oForm.email.value.indexOf("@",1)>1)&&(oForm.email.value.indexOf(".",1)>0)){			
			}else{
				alert(txt_alert_email_inc);
				oForm.email.focus();
				return false;
			}
			if(!oForm.pwd.value){
				alert('Mot de passe');
				oForm.pwd.focus();
				return false;
			}			
		break;
		case 'resa':
			if(!oForm.nom.value){
				alert(txt_alert_nom);
				oForm.nom.focus();
				return false;
			}
			if(!oForm.prenom.value){
				alert(txt_alert_prenom);
				oForm.prenom.focus();
				return false;
			}	
			if(!oForm.fonction.value){
						alert('Veuilez saisir votre fonction');
						oForm.fonction.focus();
						return false;
			}		
			if(!oForm.adresse.value){
						alert(txt_alert_adresse);
						oForm.adresse.focus();
						return false;
			}
			if(!oForm.code_postal.value){
						alert(txt_alert_code_postal);
						oForm.code_postal.focus();
						return false;
			}
			if(!oForm.ville.value){
						alert(txt_alert_ville);
						oForm.ville.focus();
						return false;
			}
			if(!oForm.tel.value){
				alert(txt_alert_tel);
				oForm.tel.focus();
				return false;
			}			
	if(!oForm.email.value){
				alert(txt_alert_email);
				oForm.email.focus();
				return false;
			}
			if ((oForm.email.value.indexOf("@",1)>1)&&(oForm.email.value.indexOf(".",1)>0)){			
			}else{
				alert(txt_alert_email_inc);
				oForm.email.focus();
				return false;
			}									
		break;
	}
}



/*
*************************************************************************************
Fenêtre pop-up
*************************************************************************************
*/
function opn_window(page,nom,proprietes){	
	window.open(page,nom,proprietes)
}

function dsp_sousMenu(TR_name, TR_root, rollover){	
	if(navigator.appName.indexOf("Internet Explorer") != -1){
		dsp_block = "block";
	}else{
		dsp_block = "table-row";
	}	
	all_tr = zone_produits.getElementsByTagName('TR')
	for(tr=0;tr<all_tr.length;tr++){
		if(all_tr[tr].className == 'sousMenu'){
			all_tr[tr].style.display = 'none';
		}
		if(all_tr[tr].className == 'root_rub'){
			all_tr[tr].style.backgroundColor = '#FFFFFF';
			TD_child = all_tr[tr].getElementsByTagName('TD')
			TD_child[0].style.color = "#000000";
			link_child = TD_child[1].getElementsByTagName('A');
			link_child[0].style.color = "#000000";
		}
	}
	for(tr=0;tr<all_tr.length;tr++){
		if(all_tr[tr].className == 'sousMenu'){
			if(all_tr[tr].id == TR_name){
				all_tr[tr].style.display = dsp_block;
			}
		}
		if(all_tr[tr].className == 'root_rub'){
			if(all_tr[tr].id == TR_root){
				all_tr[tr].style.backgroundColor = rollover;
				TD_child = all_tr[tr].getElementsByTagName('TD')
				TD_child[0].style.color = "#FFFFFF";
				link_child = TD_child[1].getElementsByTagName('A');
				link_child[0].style.color = "#FFFFFF";
			}
		}
	}
}

function go_search(url_to){
		location.href = url_to
	}
	
	function goSearch(pageR){
		document.forms['search'].action = "recherche-1-"+pageR+"-r-p.html";
		document.forms['search'].submit()
	}
	
function opn_order(order_id){
	window.open('order.php?order_id='+order_id);
}