more_tissueOff = new Image();
more_tissueOff.src = "donnees/images/btn_tissue.gif";
more_tissueOn = new Image();
more_tissueOn.src = "donnees/images/btn_tissue_on.gif";

function rollImage(img,prop) {
     imgRoll = eval(img+prop+".src");
     document[img].src = imgRoll;
}

function valideEmail(Mail) {
if (Mail!="")
   {
    if ((Mail.indexOf("@")>=0)&&(Mail.indexOf(".")>=0))
	   { return true;}
	else {	window.alert("your email is not correct, please fill it again");}
	}
else {return true;}
}

function valideQuantite(Qt) {

Nb=Qt.length;
for (var i=0; i <Nb; i++)
	{
	s = Qt.charAt(i);
	if ( !((s>=0) && (s<=9)) )
   		{
		window.alert("votre code postal ne doit comporter que des chiffres, recommencez svp");
		return false;
		}
	}
return true;
}


function ComeBackHome()
	{
		window.location="index.php";
	}


function OuvFen(num_page,largeur_fenetre,hauteur_fenetre) {
	mafen = window.open(num_page,"mafenetre","width="+largeur_fenetre+",height="+hauteur_fenetre+",scrollbars=no,statusbar=no,toolbar=no,status=no");
	//mafen.resizeTo(largeur_fenetre+20,hauteur_fenetre+20);
	mafen.focus();
}

function OuvFenScroll(url){
      //gauche = (screen.width/2)-(largeur/2);
      //haut = (screen.height/2)-(hauteur/2);
	  largeur=600;
	  hauteur=300;
	  haut=0;
	  gauche=0;
      mafen = window.open(url,"popup","height="+hauteur+",width="+largeur+",status = no,toolbar = no,menubar = no,location = no,resizable = yes,titlebar = no,scrollbars = yes,fullscreen = no,top ="+haut+",left ="+gauche);
		mafen.focus();
   }

  function ChangeBottom(llink) {
	//alert(link);
	var iid;
	var chk;
	chk = llink.indexOf("?");
	if(chk>-1)
	{
		iid=llink.split("?");
		window.location="index.php?"+iid[1];
	}
	else
	{
		window.location=""+llink;
	}
}