var aidcom;
var demugf;


function panier(p)
{


ff = eval("document.entredeux"+ p +".fille.value;")
gg = eval("document.entredeux"+ p +".garcon.value;")

ff = Math.round(ff);
gg = Math.round(gg);

some = ff + gg;

eval("document.toto"+ p +".fill.value = ff;")
eval("document.toto"+ p +".garc.value = gg;")


if (some == 0)
	{alert("Veuillez sélectionner le nombre de filles et/ou de garçons participants");return}

else
	{eval("document.toto"+ p +".submit();")}
}

function panier_garcon(p)
{


ff = document.entredeux.fille.value;
gg = document.entredeux.garcon.value;

ff = Math.round(ff);
gg = Math.round(gg);

some = ff + gg;

document.toto.fill.value = ff;
document.toto.garc.value = gg;


if (some == 0)
	{alert("Veuillez sélectionner le nombre de filles et/ou de garçons participants");return}

else
	{document.toto.submit();}
}


function panierac()
{

acx = document.toto.qtte.value;
acx = Math.round(acx);
if (acx == 0)
	{alert("Veuillez sélectionner la quantité souhaitée");return}

else
	{document.toto.submit();}
}


function vfoto(zx,tx,px)
{
if (demugf)
	{window.demugf.close();}

tx = tx.replace("&#39;", " ")

demugf = window.open('voirphoto.asp?numprod='+ zx +'&prod='+ px +'&titre='+ tx +'','photog','scrollbars=yes,width=480,height=500,left=200,top=10,screenX=200,screenY=10,innerWidth=480,innerHeight=500');

}

function vgfoto(zx,tx,px)
{
if (demugf)
	{window.demugf.close();}

tx = tx.replace("&#39;", " ")

demugf = window.open('voirphotog.asp?numprod='+ zx +'&prod='+ px +'&titre='+ tx +'','photog','scrollbars=yes,width=480,height=500,left=200,top=10,screenX=200,screenY=10,innerWidth=480,innerHeight=500');

}

function vgdetail(zx,px)
{
if (demugf)
	{window.demugf.close();}

demugf = window.open('voirdetail.asp?numprod='+ zx +'&prod='+ px +'','details','scrollbars=yes,width=400,height=400,left=200,top=10,screenX=200,screenY=10,innerWidth=400,innerHeight=400');

}

function aid()
{
if (aidcom)
	{window.aidcom.close();}

aidcom = window.open('aidecommande.asp','facture','scrollbars=yes,width=650,height=500,left=200,top=10,screenX=200,screenY=10,innerWidth=650,innerHeight=500');
}