function Toggle(idV,idB)
{
	if($(idV).className.indexOf("_toggle") > 0)
	{
		
		$(idV).className = $(idV).className.replace("_toggle","");
		$(idB).innerHTML = "<img src='/communaute/design/pictoRoseReduire.gif' width='17' height='17' />&nbsp;&nbsp;R&eacute;duire";
		
	}
	else
		{
			$(idV).className = $(idV).className + "_toggle";
			$(idB).innerHTML = "<img src='/communaute/design/pictoRoseDeplier.gif' width='17' height='17' />&nbsp;&nbsp;D&eacute;plier";
		}
}
function SwitchImage(idimg)
{
	
	if ($(idimg).src)
	{
	if($(idimg).src.indexOf("_selected") > 0)
	{
		
		$(idimg).src = $(idimg).src.replace("_selected","");
		
	}
	else
		{
			$(idimg).src = $(idimg).src.replace(".gif","_selected.gif");
		}
	}
	
}

/*Modal Popup*/

var singleton = 0;

function SetPanier(id)
{
	singleton++;
	//alert (id)	
	var nomform = "produit" + id;
	//alert (nomform)	
	var parametres = Form.serialize(nomform);
	//alert (parametres)	
	parametres = parametres + "&s=" + singleton;
	
	var url = "/ajax/UpdatePanier.asp"		

	/*var myAjax = new Ajax.Updater(
		'panier',
			url,
			{
			onComplete:function(){alert('');},
			method: 'get',
			asynchronous:true,
			parameters: parametres
			}
		);
	*/	

	
	ExecAJAXForm (url, parametres);	

	//$("body").className = "modalBackground";
	$("popupanier").style.height = document.body.scrollHeight + "px";
	scroll(0,0);
	//$("popupanier").height = document.body.scrollHeight + "px";
	//$("tdpopupanier").style.height = document.body.scrollHeight + "px";
	
	
	$("popupanier").show();
	
	//Effect.Shake('cpanier');
	//Effect.Pulsate('cpanier');
	//Effect.Shake('totalarticlesplanier');
	//Effect.Shake('nbarticlesplanier');
	//Effect.Shake('totalarticlesplanier');
}



function popupclose()
{
		$("popupanier").hide();
}

function modalpopup()
{

	Form.disable('produit');
	$("body").className = "modalBackground";

}


function showHide(idimage) {
    obj = document.getElementById('visuelprincipal5');
   
    if (obj.style.display == 'none') {
        document.getElementById('visuelprincipal1').style.display = 'none';
		//document.getElementById('visuelprincipal2').style.display = 'none';
		document.getElementById('visuelprincipal3').style.display = 'none';
		document.getElementById('visuelprincipal4').style.display = 'none';
		obj.style.display = 'block';  // pour afficher 
		
    //} else {
       // obj.style.display = 'none';  // pour cacher. 
    }
}

function AttacheZoomer(idVisuel)
{
	$$('a[id="LienImgVisuel'+idVisuel+'"]').each(function (a) {new Zoomer(a)});
	
}
function ChangeImage(idimage,colord)
{
	$("visuelprincipal1").hide();
	$("visuelprincipal3").hide();
	$("visuelprincipal4").hide();
	$("visuelprincipal5").hide();
		
	var visuelprincipal;
	visuelprincipal = "visuelprincipal" + idimage;
	var miniimage = "miniimage" + idimage; 
	//window.alert(visuelprincipal)
	$(visuelprincipal).show();
		
	if (idimage==1)
		//Effect.SlideDown  ("visuelprincipal1");
		$("visuelprincipal1").show();
	if (idimage==3)
		//Effect.SlideDown  ("visuelprincipal3");
		
		//$("visuelprincipal1").hide();
		$("visuelprincipal3").show();
		//$("visuelprincipal4").hide();
	if (idimage==4)
		//Effect.SlideDown  ("visuelprincipal4");
		$("visuelprincipal4").show();
		
	if (idimage==5) {
	
		 $("visuelprincipal5").show();
		 
		 }
}



function modifiercouleur(couleur) 
{
//document.getElementById("divpng").style.backgroundColor=couleur;
setFrontColor(couleur);
}


function concatchaineimg(indexperso,imgperso,url)

{
		//alert(indexperso)
		//alert(imgperso)
		//alert(url)
		var lienimg="<a href="+url+"upload/imgclient/warhol/"+imgperso+" target=top>"+imgperso+"</a>"
		//alert(lienimg)
		eval("document.forms[1].perso"+indexperso+".value=lienimg");
		//alert(eval("document.forms[1].perso"+indexperso+".value"))
		
}
function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("Mandellia","http://www.mandellia.fr/",""); }
else { window.external.AddFavorite("http://www.mandellia.fr/","Mandellia"); } }



function calculeprixoptions (allInputs)
			 
	{
		
		prixoptions=0;
		for (i=0;i<allInputs.length;i++)
			{
			//var form = $(formname);
			var input = allInputs[i];
				
			var calprix = input.getAttribute("calprix");
			if (calprix=="1" && Form.Element.getValue(input)!="")
				{
				prixoptions= prixoptions + parseInt(Form.Element.getValue(input))
				//alert(prixoptions);
				document.formulaire.prixdesoptions.value=prixoptions;
				}
				
	}	 
	
}


function Event1(mavalue,indexperso,fkoption,prixoption,Valform)
	{
			//alert(mavalue);
			//alert(indexperso);
			//alert(fkoption);
			//alert(prixoption);
			
			if (mavalue==0) {prixoption=0}
			//alert(prixoption);
			eval("document.formulaire.fkoption"+indexperso+".value='"+fkoption+"';document.formulaire.prixoption"+indexperso+".value='"+parseInt(prixoption)+"'")
			calculeprixoptions(Valform);
			eval("ExecAJAX ('/ajax/AddoptionPrix.asp', document.formulaire.dimensions.value,document.formulaire.prixdesoptions.value);")
			
	}		
	
function compte(lg,ssref)
	{
     var pave=lg;
	//alert(lg)
	//alert (ssref)
	if (ssref==1) {prixtxt=pave.length*0.35;eval("document.formulaire.lgtexte.value='"+pave.length*3.3+"'")}
	if (ssref==2) {prixtxt=pave.length*0.45;eval("document.formulaire.lgtexte.value='"+pave.length*4.5+"'") }
	if (ssref==3) {prixtxt=pave.length*0.55; eval("document.formulaire.lgtexte.value='"+pave.length*6.1+"'")  }
	//alert(prixtxt)
		//if  (prixtxt !=0) {
	 eval("document.formulaire.prixoption1.value='"+parseInt(prixtxt)+"'") 
	  document.formulaire.prixdesoptions.value=prixtxt; 
	//	}
	}
		


function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('block'+i)) {document.getElementById('block'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}


//-->
//**********Notation*********//

function getElementDiv(id) {
	if (!document.getElementById) { 
		return;
	}

	if (document.all) {
		return eval("document.all." + id);
	} else {
		return document.getElementById(id);
	}
}


function aff_etoiles(id, typeliste, note) {
	//getElementDiv('e_' + typeliste + '_0_' + id).src = '/communaute/design/vote1c.gif';
	for (i=1; i<=5; i++) {
		//alert('i='+i + 'note='+note )
		if (i==note)
			{
			getElementDiv('e_' + typeliste + '_' + i + '_' + id).src = '/communaute/design/concours/voter'+i+'.gif';
			getElementDiv('noteetoile'+id).value=i;
			}
			else
			{
			getElementDiv('e_' + typeliste + '_' + i + '_' + id).src = '/communaute/design/concours/voter'+i+'c.gif';
			}
	}
	//for (i=note+1; i<=4; i++) {
		//getElementDiv('e_' + typeliste + '_' + i + '_' + id).src = '/communaute/design/vote'+j+'c.gif';
	//}
	
	//if (getElementDiv('e_' + typeliste + '_txt_' + id)) getElementDiv('e_' + typeliste + '_txt_' + id).innerHTML = '<h5 style="color: #888888;">(' + note + ')</h5>';
}

function raz_etoiles(id, typeliste, note) {
	//alert(note);
	if (note<0) {
		
		
	} else {
		
		for (i=1; i<=5; i++) {
			if (i==note) {
				getElementDiv('e_' + typeliste + '_' + i + '_' + id).src = '/communaute/design/concours/voter'+i+'.gif';
			} else {
				getElementDiv('e_' + typeliste + '_' + i + '_' + id).src = '/communaute/design/concours/voter'+i+'c.gif';
			}
		}
		//if (getElementDiv('e_' + typeliste + '_txt_' + id)) getElementDiv('e_' + typeliste + '_txt_' + id).innerHTML = '<h5 style="color: #888888;">(' + note + ')</h5>';
		
		
	}
}
function fermevote(id,typeliste,note,fkclient){

	if (note>0){
					for (i=1; i<=5; i++) 
					{
						getElementDiv('e_' + typeliste + '_' + note + '_' + id).src = '/communaute/design/concours/voter'+note+'.gif';
						document.getElementById('e_' + typeliste + '_' + i + '_' + id).onmouseover = function(){javascript:void(0);};
						document.getElementById('e_' + typeliste + '_' + i + '_' + id).onclick = function(){javascript:void(0);};
					}
				}
	if (fkclient=='') 
	{
			for (i=1; i<=5; i++) 
			{
			document.getElementById('e_' + typeliste + '_' + i + '_' + id).onclick = function(){javascript:login();};
			}
	}
		
}



function noter2(id)
	{
	
	singleton++;
	var nomform = "noter"+id;
	//alert (nomform)	
	var parametres = Form.serialize(nomform);
	//alert (parametres)	
	parametres = parametres + "&s=" + singleton;
	var url = "/ajax/Addnote.asp"		
	ExecAJAXForm (url, parametres);	
	
	}	

function Validecommenter()
{
var erreur=0
if (document.formcommentaire.nom.value==''){alert("Merci de renseigner votre nom ou pseudo ");erreur=1;}
if (document.formcommentaire.commentaire.value==''){alert("Merci de remplir votre commentaire");erreur=1;}

if (erreur==0){commenter();}
}

	
function commenter()
	{
	
	
	singleton++;
	var nomform = "formcommentaire"
	//alert (nomform)	
	var parametres = Form.serialize(nomform);
	//alert (parametres)	
	parametres = parametres + "&s=" + singleton;
	var url = "/ajax/Addcommentaire.asp"		
	ExecAJAXForm (url, parametres);	
	}	
	
	
	
function affrec(rec,nbrresult)
	{	
		
		if (rec=='') {
			document.getElementById("result").style.display='none';
		} else {
			document.getElementById("result").innerHTML = ''+nbrresult+' r&eacute;ponses pour votre recherche:';
	 	}
	}	
	
function cacheblockcadre(val)
	{	
		
		if (val==1) {
			document.getElementById("blockcadre").style.display='block';
			//document.getElementById("block1").style.display='block';
		} else {
			document.getElementById("blockcadre").style.display='none';
			//document.getElementById("block1").style.display='none';
		}	
	}	
function dimHL(H,L)
{	
			document.formulaire.H.value=H;
			document.formulaire.L.value=L;
}	
	
function caluleprixcadre(nommodele,fkoption,H,L,prixposterseul)
	{

			eval("ExecAJAX('/ajax/caluleprixcadre.asp',nommodele,fkoption,H,L,prixposterseul,document.formulaire.dimensions.value);")
		
	}	
	
function caluleprixcadreoptionaffiche(nommodele,fkoption,H,L,promovalueprct,prixttchorspromo)
	{
			//alert(promovalueprct)
			eval("ExecAJAX('/ajax/caluleprixcadreoptionaffiche.asp',nommodele,fkoption,H,L,promovalueprct,prixttchorspromo);")
		
	}	
	
		
//**********Fin Notation*********//
			
function videallcadre()
{

document.formulaire.prixdesoptions.value='';
if(document.formulaire.prixoption12)
	document.formulaire.prixoption12.value='';
if(document.formulaire.perso12)
	document.formulaire.perso12.value='';
if(document.formulaire.lib12)
	document.formulaire.lib12.value='';
if(document.formulaire.modele)
	document.formulaire.modele.value='';
if(document.getElementById("dimtab"))
	document.getElementById("dimtab").innerHTML = '&nbsp;';
if(document.getElementById("prixtab"))
document.getElementById("prixtab").innerHTML  = '&nbsp;';
if(document.getElementById("prixposterseul"))
document.getElementById("prixposterseul").innerHTML  = '&nbsp;';
var e=document.getElementsByName("cadre");
for(var j=0;j<e.length;j++){document.getElementsByName("cadre")[j].checked = false;}
}

function switchimg(idimg)
{
	if (idimg==2){
		document.getElementById("img2").src='/design/puce2.gif'
		document.getElementById("img1").src='/design/c.gif'
	}
	if (idimg==1){
		document.getElementById("img1").src='/design/puce2.gif'
		document.getElementById("img2").src='/design/c.gif'
	}
}


//**** fonction module  recherhe***///
function checkcase(namecase){
if (namecase=='pr')
{
	document.formtt.nv.value='0';
 	//if ((formtt.pr.checked) == true ) 
		//{document.formtt.pr.checked=false}
	//else 
		//{document.formtt.pr.checked=true} 
}

if (namecase=='nv') {
	document.formtt.pr.value='0'
 	//if ((formtt.nv.checked) == true ) 
		//{document.formtt.nv.checked=false}
	//else 
		//{document.formtt.nv.checked=true} 
}
} 

function gott (ttvalue,querystringvalue){

window.location.href="/fr/produits.asp?tt="+ttvalue+"&"+querystringvalue
}


//**** Fin fonction module  recherhe***///


//**calcul papier peint m2 x prix**//
function calculeprixm2(Hperso,Lperso,prixm2,H,L,Lmax)
{
	//alert ('lperso='+Lperso + '/' + 'Hperso='+Hperso + '/' + 'Lmax='+Lmax +' / '+ 'L='+L+' / '+ 'H='+H )
	
	if (Hperso==""){Hperso=0}
	if (Lperso==""){Lperso=0}
	L=60
if (isNaN(Hperso)==false && isNaN(Lperso)==false)
	{
	if (parseFloat(Lperso)<60) {alert("Largeur trop petite - mini 60 cm");document.formulaire.Lperso.value=60;}
	if (parseFloat(Lperso)>parseFloat(Lmax)) { alert("Largeur trop importante - maxi "+ Lmax +" cm");}
	//alert (Hperso!=0 && Lperso!=0  && parseFloat(Lperso)<parseFloat(Lmax) && parseFloat(Lperso)>60)
  	if (Hperso!=0 && Lperso!=0  && parseFloat(Lperso)<=parseFloat(Lmax) && parseFloat(Lperso)>60) 
	{ 
	//alert ('on passe')
		
		HLm2=H/100*L/100
		HpersoLpersom2=Hperso/100*Lperso/100
		diffm2=HpersoLpersom2-HLm2
		prixtotalm2=prixm2*diffm2;
		
		document.formulaire.perso1.value=" Largeur " + Lperso + " cm"
		document.formulaire.prixdesoptions.value=parseInt(prixtotalm2);
		document.formulaire.prixoption1.value=parseInt(prixtotalm2); 
		eval("ExecAJAX ('/ajax/AddoptionPrix.asp', document.formulaire.dimensions.value,document.formulaire.prixdesoptions.value);")
		document.formulaire.H.value=Hperso;
		document.formulaire.L.value=Lperso;
		nbrle=Math.ceil(Lperso/60)
		//dimlepx=parseInt(179/nbrle)-2
		//alert(dimlepx)
		document.getElementById("txtnbrele").style.display = "block";
		document.getElementById("nbrele").innerHTML= nbrle;
		//document.getElementById("visunbrele").style.display = "block";
		//for(var k=0;k<nbrle;k++)
			//{
				//namediv="dimle"+(k+1)
				//eval("document.getElementById('"+namediv+"').style.display = 'block'");
				//eval("document.getElementById('"+namediv+"').style.width = '"+dimlepx+"px'");
			//}
	
	}else{
	document.formulaire.perso1.value=""
	document.formulaire.prixdesoptions.value=0; 
	document.formulaire.prixoption1.value=0;
	document.getElementById("nbrele").innerHTML= '1';
	eval("ExecAJAX ('/ajax/AddoptionPrix.asp', document.formulaire.dimensions.value,document.formulaire.prixdesoptions.value);")
	}
	}
}

function ajoutesetpanier(idp,idptapissouris){

if ((document.formulaire.tapissouris.checked) == true ) 
		{
		eval("ExecAJAX ('/ajax/UpdatePanierBis.asp',"+idptapissouris+");")
		document.getElementById("btpanier").href="javascript:SetPanier('"+idp+"');";
		Alert('Le tapis de souris &agrave; bien &eacute;t&eacute; ajout&eacute; &agrave; votre panier');
		//document.formulaire.tapissouris.checked='false';
		}
	else 
		{document.getElementById("btpanier").href="javascript:SetPanier('"+idp+"');"
		//document.formulaire.tapissouris.checked='true';
		} 

}

function CalculeCHQKDO (qte1,qte2,afficheKdo,stotalpaniersansport,KdoDejaAffiche){

	
	if (parseInt(stotalpaniersansport)>parseInt(KdoDejaAffiche) && afficheKdo==1) 
	{ 
	document.getElementById("ligneplusque").style.display="none";
	document.getElementById("btpanierKdo").style.display="block"
	}else{
	document.getElementById("ligneplusque").style.display="block"
	document.getElementById("btpanierKdo").style.display="none"
	}
	
	if (afficheKdo==1) { 

	document.getElementById("Kdo").style.display="block";
	KdoDejaAffichenew=KdoDejaAffiche

	if (parseInt(KdoDejaAffichenew)>=10 && parseInt(KdoDejaAffichenew)<20 ) {document.getElementById("pk_SproduitKDO").value="28554";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-6.png";document.getElementById("plusque").innerHTML=20-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="6 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=20 && parseInt(KdoDejaAffichenew)<30 ) {document.getElementById("pk_SproduitKDO").value="28555";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-8.png";document.getElementById("plusque").innerHTML=30-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="8 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=30 && parseInt(KdoDejaAffichenew)<40 ) {document.getElementById("pk_SproduitKDO").value="28556";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-10.png";document.getElementById("plusque").innerHTML=40-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="10 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=40 && parseInt(KdoDejaAffichenew)<50 ) {document.getElementById("pk_SproduitKDO").value="28557";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-12.png";document.getElementById("plusque").innerHTML=50-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="12 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=50 && parseInt(KdoDejaAffichenew)<60 ) {document.getElementById("pk_SproduitKDO").value="28558";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-14.png";document.getElementById("plusque").innerHTML=60-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="14 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=60 && parseInt(KdoDejaAffichenew)<70 ) {document.getElementById("pk_SproduitKDO").value="28559";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-16.png";document.getElementById("plusque").innerHTML=70-parseInt(KdoDejaAffiche)+" &euro; ";document.getElementById("plusque1").innerHTML="16 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=70 && parseInt(KdoDejaAffichenew)<80 ) {document.getElementById("pk_SproduitKDO").value="28560";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-18.png";document.getElementById("plusque").innerHTML=80-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="18 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=80 && parseInt(KdoDejaAffichenew)<90 ) {document.getElementById("pk_SproduitKDO").value="28561";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-20.png";document.getElementById("plusque").innerHTML=90-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="20 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=90 && parseInt(KdoDejaAffichenew)<100 ) {document.getElementById("pk_SproduitKDO").value="28562";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-22.png";document.getElementById("plusque").innerHTML=100-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="22 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=100 && parseInt(KdoDejaAffichenew)<110 ) {document.getElementById("pk_SproduitKDO").value="28563";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-25.png";document.getElementById("plusque").innerHTML=110-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="25 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=110 && parseInt(KdoDejaAffichenew)<120 ) {document.getElementById("pk_SproduitKDO").value="28563";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-25.png";document.getElementById("plusque").innerHTML=120-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="25 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=120 && parseInt(KdoDejaAffichenew)<130 ) {document.getElementById("pk_SproduitKDO").value="28563";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-25.png";document.getElementById("plusque").innerHTML=130-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="25 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=130 && parseInt(KdoDejaAffichenew)<140 ) {document.getElementById("pk_SproduitKDO").value="28563";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-25.png";document.getElementById("plusque").innerHTML=140-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="25 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=140 && parseInt(KdoDejaAffichenew)<150 ) {document.getElementById("pk_SproduitKDO").value="28563";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-25.png";document.getElementById("plusque").innerHTML=150-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="25 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=150 && parseInt(KdoDejaAffichenew)<160 ) {document.getElementById("pk_SproduitKDO").value="28563";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-25.png";document.getElementById("plusque").innerHTML=160-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="25 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=160 && parseInt(KdoDejaAffichenew)<170 ) {document.getElementById("pk_SproduitKDO").value="28563";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-25.png";document.getElementById("plusque").innerHTML=170-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="25 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=170 && parseInt(KdoDejaAffichenew)<180 ) {document.getElementById("pk_SproduitKDO").value="28563";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-25.png";document.getElementById("plusque").innerHTML=180-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="25 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=180 && parseInt(KdoDejaAffichenew)<190 ) {document.getElementById("pk_SproduitKDO").value="28563";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-25.png";document.getElementById("plusque").innerHTML=190-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="25 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=190 && parseInt(KdoDejaAffichenew)<200 ) {document.getElementById("pk_SproduitKDO").value="28563";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-25.png";document.getElementById("plusque").innerHTML=210-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="25 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=200 && parseInt(KdoDejaAffichenew)<210 ) {document.getElementById("pk_SproduitKDO").value="28563";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-25.png";document.getElementById("plusque").innerHTML=210-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="25 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=210 && parseInt(KdoDejaAffichenew)<220 ) {document.getElementById("pk_SproduitKDO").value="28563";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-25.png";document.getElementById("plusque").innerHTML=220-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="25 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=220 && parseInt(KdoDejaAffichenew)<230 ) {document.getElementById("pk_SproduitKDO").value="28564";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-30.png";document.getElementById("plusque").innerHTML=230-parseInt(KdoDejaAffiche) +" &euro; ";document.getElementById("plusque1").innerHTML="30 &euro;";}
	if (parseInt(KdoDejaAffichenew)>=230 && parseInt(KdoDejaAffichenew)<880 ) {document.getElementById("pk_SproduitKDO").value="28564";document.getElementById("prixKdo").src="/design/chequePNG/Cheque-30.png";document.getElementById("ligneplusque").style.display="none";document.getElementById("btpanierKdo").style.display="block";}
	}
}
		




