<!--
// Gestion des boutons MOUSEOVER
francais1= new Image();
francais1.src = "/images/top/btn_francais_noir.gif";
francais2 = new Image();
francais2.src = "/images/top/btn_francais_vert.gif";

english1= new Image();
english1.src = "/images/top/btn_english_noir.gif";
english2 = new Image();
english2.src = "/images/top/btn_english_vert.gif";

espanol1= new Image();
espanol1.src = "/images/top/btn_espanol_noir.gif";
espanol2 = new Image();
espanol2.src = "/images/top/btn_espanol_vert.gif";

accueil1= new Image();
accueil1.src = "/images/top/btn_accueil_noir.gif";
accueil2 = new Image();
accueil2.src = "/images/top/btn_accueil_vert.gif";

contact1= new Image();
contact1.src = "/images/top/btn_contact_noir.gif";
contact2= new Image();
contact2.src = "/images/top/btn_contact_vert.gif";

qui_sommes_nous1= new Image();
qui_sommes_nous1.src = "/images/top/btn_qui_sommes_nous_noir.gif";
qui_sommes_nous2 = new Image();
qui_sommes_nous2.src = "/images/top/btn_qui_sommes_nous_vert.gif";

shopping1= new Image();
shopping1.src = "/images/top/btn_shopping_noir.gif";
shopping2 = new Image();
shopping2.src = "/images/top/btn_shopping_vert.gif";

confidentialite1= new Image();
confidentialite1.src = "/images/top/btn_confidentialite_noir.gif";
confidentialite2 = new Image();
confidentialite2.src = "/images/top/btn_confidentialite_vert.gif";

securite1= new Image();
securite1.src = "/images/top/btn_securite_noir.gif";
securite2 = new Image();
securite2.src = "/images/top/btn_securite_vert.gif";

function flip(image,nouvelle) {
	document.images[image].src = eval(nouvelle + ".src");
}
// Fin de la gestion des boutons MOUSEOVER

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function smlWin(linkitem, url) { smallWin = window.open(url, "newWindow", "toolbar=no,location=no,status=no,scrollbars=yes,width=600,height=500"); }

function popImage(url,largeur,hauteur) {
	var top = (screen.availHeight/2) - (hauteur/2);
	var left = (screen.availWidth/2) - (largeur/2);
	popVid=open(url,"PolycorVideo","width="+largeur+",height="+hauteur+",resize=no,menubar=no,toolbar=no,status=no,scrollbars=no,top="+top+",left="+left);
	popVid.focus();
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}


// Gestion des formulaires de courriel

function email() {
	var validation = validate(swtForm);
	if (validation==false)
		return false;
	else
		var add = document.swtForm.To.value;
		var msg = document.swtForm.Message.value;
		var from = document.swtForm.Name.value;
		document.swtForm.action="mailto:"+add+"?subject=Check out this site"+"&body="+msg+" %0A%0A- "+from;
		alert("Envoi d'un courriel");
		return true;
}

function ValidGen(formulaire){
	formulaire.To.value=formulaire.email.value;
}

function validate(formulaire){
	if (formulaire.To.value.length < 1) {
		alert('S.V.P., veuillez entrer votre adresse courriel.');
		return false;
	}
	if (formulaire.To.value.length < 1) {
		alert('S.V.P., veuillez entrer votre adresse courriel.');
		return false;
	}
//	if (formulaire.To.value.indexOf('.',0) == -1){
//		alert('Please enter a valid email address.');
//		return false;
//	}
//	if (formulaire.To.value.indexOf('@',0) == -1){
//		alert('Please enter a valid email address.');
//		return false;
//	}
	if(emailCheck(formulaire.To.value)==false)
	return false;
	else
return true;
}

function checkFormv()
{
	if(emailCheck(formulaire.To.value)==false)
		return false;
	else
		return true;
}


// validation des email
function emailCheck (emailStr) {
	var emailPat=/^(.+)@(.+)$/
	var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
	var validChars="\[^\\s" + specialChars + "\]"
	var quotedUser="(\"[^\"]*\")"
	var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
	var atom=validChars + '+'
	var word="(" + atom + "|" + quotedUser + ")"
	var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
	var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")

	var matchArray=emailStr.match(emailPat)
	if (matchArray==null) {
//		alert("The email address is incomplete. It must contain an at-sign (@) and a dot (.)")
		alert("L'adresse de courriel est incomplète. Elle doit contenir un arobas (@) et un point (.)")
		return false
	}
	var user=matchArray[1]
	var domain=matchArray[2]


	if (user.match(userPat)==null) {
//		alert("The user name is incorrect")
		alert("Le nom d'usager est incorrect")
		return false
	}

	var IPArray=domain.match(ipDomainPat)
	if (IPArray!=null) {
		  for (var i=1;i<=4;i++) {
			if (IPArray[i]>255) {
//				alert("The IP address is invalid")
				alert("L'adresse IP est invalide")
			return false
			}
		}
		return true
	}

	var domainArray=domain.match(domainPat)
	if (domainArray==null) {
//		alert("The domain name is invalid")
		alert("Le nom de domaine est invalide")
		return false
	}

	var atomPat=new RegExp(atom,"g")
	var domArr=domain.match(atomPat)
	var len=domArr.length
	if (domArr[domArr.length-1].length<2 || 
		domArr[domArr.length-1].length>4) {
//	   alert("The domain suffix must contain 2 to 4 letters")
	   alert("Le suffixe de votre adresse doit avoir entre 2 et 4 lettres")
	   return false
	}


	if (len<2) {
//	   var errStr="The suffix of your address is invalid"
	   var errStr="Le suffixe de votre adresse est invalide"
	   alert(errStr)
	   return false
	}

	return true;
}


// Fin de la validation des formulaires


/*
 * Popup code generated by PopUpMaster Pro from PopUpMaster.com
 */
/*
var cookie="popupmaster";
setTimeout("popup('http://www.aliv-e.com/fr/newsletter/SubscribeCSpop.asp');",15000);
function popup(filename){
if (getcookie(cookie)==""){
var centerWidth=(screen.width/2)-(440/2);
var centerHeight=(screen.height/2)-(470/2);
window.open(filename, "","height=470,width=440,top="+centerHeight+",left="+centerWidth+",location=no,menubar=no,resizable=yes,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no");
setcookie();
}
}
function getcookie(cookieName) {
var id = cookieName + "=";
var cookievalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(id);
if (offset != -1) {
cookievalue = "x";
}
}
return cookievalue;
}

function setcookie () {
document.cookie = cookie
+ "="
+ escape ("done")
+ ";path=/";
}
*/

// -->