//<![CDATA[ 
<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function remetAZero(){
	
}

function lanceTimer(){
	timeoutIDD = window.setTimeout("miseAZero()",1000);	
}

function blocTimer(){
	clearTimeout(timeoutIDD);
}

function changevignette(cpdt,ipdt,vign){
	eval('document.frm_bout.coul_cc'+ipdt+'.value = '+cpdt);
	switch (cpdt){
		case '6' : changeImages('vign_prod'+ipdt, 'images/b_illustr_'+vign+'bc.jpg');
		break;
		
		case '4' : changeImages('vign_prod'+ipdt, 'images/b_illustr_'+vign+'.jpg');
		break;
	
		case '3' : changeImages('vign_prod'+ipdt, 'images/b_illustr_'+vign+'ip.jpg');
		break;
		
		case '2' : changeImages('vign_prod'+ipdt, 'images/b_illustr_'+vign+'.jpg');
		break;
		
		default : test = 1;
	}
}
function lezoom(ref,ipdt) {
	cpdt = eval('document.frm_bout.coul_cc'+ipdt+'.value');
	switch (cpdt){
		case '6' : lacoul = 'bc';
		break;
		
		case '3' : lacoul = 'ip';
		break;
		
		default : lacoul = '';
	}
	MM_openBrWindow('zoom.php?pic=b_illustr_'+ref+lacoul+'_z','Agrandissement','height=500,width=525,left=50,top=50,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes');
}
function simplezoom(ref){
	MM_openBrWindow('zoom.php?pic='+ref,'Agrandissement','height=500,width=525,left=50,top=50,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes');	
}

function panierUpdater (ref,tail,coul,qt,libel){
	//var d1 = document.getElementById("hidden_top_panier");
	//qt_panier = d1.value;
	
	//var qt_panier = document.top_panier.elements['hidden_top_panier'].value;
	var qt_panier = document.getElementById("hidden_top_panier").value;
	
	qt_panier = parseInt(qt_panier) + parseInt(qt);
	
	//document.top_panier.elements['hidden_top_panier'].value = qt_panier;
	document.getElementById("hidden_top_panier").value = qt_panier;
	
	var d = document.getElementById("libel_top_panier");
	var chaine = qt_panier + " " + libel;
	if(qt_panier>=2){chaine = qt_panier + " " + libel +"s";}
	d.innerHTML  = chaine;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function affichZoomProd (lediv,nouv){
	var d = document.getElementById(lediv);
	d.innerHTML  = "<img src='images/"+nouv+"' alt=''/>";
}

function derniereVerifTailles(page){
	MM_openBrWindow('derniere_verif_tailles.php?page='+page,'valid_panier','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=350,height=165, top='+((screen.height/2)-(166/2))+',left='+((screen.width/2)-(350/2)));
}

function cacheLivraison(lecheck){
	if(lecheck==false){
		if (document.getElementById){document.getElementById("adr_livraison").style.display='inline';}
		else if (document.all){document.all["adr_livraison"].style.display='inline';}	
	}
	else
	{
		if (document.getElementById){document.getElementById("adr_livraison").style.display='none';}
		else if (document.all){document.all["adr_livraison"].style.display='none';}	
	}
}

// -->
//]]> 