//<!--
var ie4=document.all;
var ns6=document.getElementById&&!document.all;
var Home="Accueil.asp";
var Panier="Panier/Panier2.asp";
var Commande="Pgs/Cde1.asp";
var URL=window.location.href;
var URI=window.location.protocol + "//" + window.location.host + "/"

function xObj(Ref){
	// Recherche un objet html en fonction du navigateur
	var obj;
	if(ns6) obj=document.getElementById(Ref);
	else if(ie4) obj=document.all[Ref];
	return obj;
}
function Supp(CodePrd){
	// Retrait d'un Produit du Panier
	location.replace(URI + Panier +  "?Supp=" + CodePrd);
	//Le panier charge et l'objet Pnr recalcule, chargement panier
	var aryURL = parent.location.href.split("?");
	if( aryURL[0]==URI+Commande ) parent.location.replace(URI + "Pgs/Cde1.asp");
}
function pmQt(CodePrd, Qt, CPrdChx){
	// Retrait d'un Produit du Panier
	location.replace(URI + Panier +  "?Prd=" + CodePrd + "&Qt=" + Qt + "&PrdChx=" + CPrdChx);
	// Mise à jour Commande suivant le contenu du Centre
	var aryURL = parent.location.href.split("?");
	if( aryURL[0]==URI+Commande ) parent.location.replace(URI + Commande);
}
function DtlPrd(Page){
	// Affiche le Detail Produit en page Centrale
	parent.location.replace(URI + "Pgs/" + Page);
}
function PanierVide(Etat){
	xObj("dPanier").EstVide = ( Etat ) ? "vide" : "plein" ;
}
//-->
