function Question() {
return confirm ('Etes-vous sûr de vouloir supprimer ces données?');
}

function Question_caddie_fra() {
return confirm ('Etes-vous sûr de vouloir vider le caddie?');
}
function Question_caddie_eng() {
return confirm ('Are-you sure you want to empty the basket?');
}

 function checkDate(select_jour, select_mois, select_annee) {
     //alert('checkDate :' + select_jour.value + "/" + select_mois.value + "/"+ select_annee.value);
    jour  = select_jour.value;
    mois  = select_mois.value;
    annee = select_annee.value;

    nb_jour_mois = 0;
    switch(mois){
    case '1' : case '3' : case '5' : case '7' : case '8' : case '10' : case
  '12' : nb_jour_mois = 31; break;
    case '4': case '6' : case '9' : case '11' : nb_jour_mois = 30; break;
    case '2' :
      if (annee % 4 == 0)
        nb_jour_mois = 29;
      else
        nb_jour_mois = 28;
      break;
    } // switch

     if ((mois!="")&&(nb_jour_mois < jour)) {
      alert('Ce jour du mois n\'existe pas !');
      select_jour.value=nb_jour_mois;
    }
}


function SubmitFormPresse(theform) {

var reInteger = /^[0-9]+$/
var reFloat = /^((\d+(\.\d*)?)|((\d*\.)?\d+))$/
var reFloatb = /^((\d+(\,\d*)?)|((\d*\,)?\d+))$/
var validemail=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;

if (theform.titre_fr.value == '') {
	theform.titre_fr.focus();
	alert("Veuillez entrer un titre !");
	return false;
}
return true;
}

function SubmitFormFormation(theform) {

	var reInteger = /^[0-9]+$/
	var reFloat = /^((\d+(\.\d*)?)|((\d*\.)?\d+))$/
	var reFloatb = /^((\d+(\,\d*)?)|((\d*\,)?\d+))$/
	var validemail=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;

	if (theform.libelle.value == '') {
		theform.libelle.focus();
		alert("Veuillez entrer un libellé !");
		return false;
	}
	return true;
}


function SubmitFormUpload(theform) {
	if (theform.rubrique.selectedIndex == 0) {
		alert("Veuillez choisir une rubrique");
		theform.rubrique.focus();
		return false;
	}

	if (theform.filename.value == '') {
		alert("Veuillez sélectionner un fichier");
		theform.filename.focus();
		return false;
	}		
return true;
}

function OpenWindowpopup(Url, Titre, Height, Width)
{
	strWindow = 'height='+Height+',width='+Width+',resizable=yes,scrollbars=yes';
	fen = window.open(Url,Titre,strWindow);
	setTimeout('fen.focus();',200);
}


function SubmitFormCoord_fra(theform) {

var reInteger = /^[0-9]+$/
var reFloat = /^((\d+(\.\d*)?)|((\d*\.)?\d+))$/
var reFloatb = /^((\d+(\,\d*)?)|((\d*\,)?\d+))$/
var validemail=/^([a-zA-Z0-9_\.\-\'])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;

		if (theform.nom.value == '') {
			theform.nom.focus();
			alert("Veuillez entrer un nom !");
			return;
		}
		if (theform.prenom.value == '') {
			theform.prenom.focus();
			alert("Veuillez entrer un prénom !");
			return;
		}
		if (theform.email.value == '') {
			theform.email.focus();
			alert("Veuillez entrer un email !");
			return;
		}
		if ((theform.email.value != '')&&(!validemail.test(theform.email.value))) {
			theform.email.focus();
			alert("Veuillez entrer un email valide !");
			return;
		}
		if (theform.adresse.value == '') {
			theform.adresse.focus();
			alert("Veuillez entrer une adresse !");
			return;
		}
		if (theform.code_postal.value == '') {
			theform.code_postal.focus();
			alert("Veuillez entrer un code postal !");
			return;
		}
		if (theform.ville.value == '') {
			theform.ville.focus();
			alert("Veuillez entrer une commune !");
			return;
		}
		if (theform.pays.value == '') {
			theform.pays.focus();
			alert("Veuillez entrer un pays !");
			return;
		}

	theform.submit();
}	


function SubmitFormCoord_eng(theform) {

var reInteger = /^[0-9]+$/
var reFloat = /^((\d+(\.\d*)?)|((\d*\.)?\d+))$/
var reFloatb = /^((\d+(\,\d*)?)|((\d*\,)?\d+))$/
var validemail=/^([a-zA-Z0-9_\.\-\'])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;

		if (theform.nom.value == '') {
			theform.nom.focus();
			alert("Please enter a name !");
			return;
		}
		if (theform.prenom.value == '') {
			theform.prenom.focus();
			alert("Please enter a firstname !");
			return;
		}
		if (theform.email.value == '') {
			theform.email.focus();
			alert("Please enter an email address !");
			return;
		}
		if ((theform.email.value != '')&&(!validemail.test(theform.email.value))) {
			theform.email.focus();
			alert("Please enter a valid email address !");
			return;
		}
		if (theform.adresse.value == '') {
			theform.adresse.focus();
			alert("Please enter an address !");
			return;
		}
		if (theform.code_postal.value == '') {
			theform.code_postal.focus();
			alert("Please enter a postal code !");
			return;
		}
		if (theform.ville.value == '') {
			theform.ville.focus();
			alert("Please enter a city !");
			return;
		}
		if (theform.pays.value == '') {
			theform.pays.focus();
			alert("Please enter a country !");
			return;
		}

	theform.submit();
}	


function SubmitFormContact_fra(theform) {

var reInteger = /^[0-9]+$/
var reFloat = /^((\d+(\.\d*)?)|((\d*\.)?\d+))$/
var reFloatb = /^((\d+(\,\d*)?)|((\d*\,)?\d+))$/
var validemail=/^([a-zA-Z0-9_\.\-\'])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;

		if (theform.nom.value == '') {
			theform.nom.focus();
			alert("Veuillez entrer un nom !");
			return;
		}
		if (theform.prenom.value == '') {
			theform.prenom.focus();
			alert("Veuillez entrer un prénom !");
			return;
		}
		if (theform.email.value == '') {
			theform.email.focus();
			alert("Veuillez entrer un email !");
			return;
		}
		if ((theform.email.value != '')&&(!validemail.test(theform.email.value))) {
			theform.email.focus();
			alert("Veuillez entrer un email valide !");
			return;
		}
		

	theform.submit();
}	


function SubmitFormContact_eng(theform) {

var reInteger = /^[0-9]+$/
var reFloat = /^((\d+(\.\d*)?)|((\d*\.)?\d+))$/
var reFloatb = /^((\d+(\,\d*)?)|((\d*\,)?\d+))$/
var validemail=/^([a-zA-Z0-9_\.\-\'])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;

		if (theform.nom.value == '') {
			theform.nom.focus();
			alert("Please enter a name !");
			return;
		}
		if (theform.prenom.value == '') {
			theform.prenom.focus();
			alert("Please enter a firstname !");
			return;
		}
		if (theform.email.value == '') {
			theform.email.focus();
			alert("Please enter an email address !");
			return;
		}
		if ((theform.email.value != '')&&(!validemail.test(theform.email.value))) {
			theform.email.focus();
			alert("Please enter a valid email address !");
			return;
		}

	theform.submit();
}	



function SubmitFormContact_ita(theform) {

var reInteger = /^[0-9]+$/
var reFloat = /^((\d+(\.\d*)?)|((\d*\.)?\d+))$/
var reFloatb = /^((\d+(\,\d*)?)|((\d*\,)?\d+))$/
var validemail=/^([a-zA-Z0-9_\.\-\'])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;

		if (theform.nom.value == '') {
			theform.nom.focus();
			alert("Inserire un valor per il campo nome !");
			return;
		}
		if (theform.prenom.value == '') {
			theform.prenom.focus();
			alert("Inserire un valor per il campo cognome !");
			return;
		}
		if (theform.email.value == '') {
			theform.email.focus();
			alert("Inserire un valor per il campo email !");
			return;
		}
		if ((theform.email.value != '')&&(!validemail.test(theform.email.value))) {
			theform.email.focus();
			alert("Il email di indirizzo sembra errato !");
			return;
		}

	theform.submit();
}	




