<!--
   function getXmlHttpRequest(){
		if (window.XMLHttpRequest) { // Mozilla, Safari, ...
		    return new XMLHttpRequest();
		} else if (window.ActiveXObject) { // IE
		    return new ActiveXObject("Microsoft.XMLHTTP");
		}
		throw new Error("XMLHttpRequest");
	}
   function playScripts(target){
      var allscript = target.getElementsByTagName("script");
      var dj_global = this;
      for(var i=0;i< allscript.length;i++){
         var code = allscript[i].text;
         if (window.execScript) {
            window.execScript(code);
         }
         else {
            if( dj_global.eval ){
               dj_global.eval(code);
            }
            else {
               eval(code);
            }
         }
      }
   }

   function getPrice(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "Prices", false);
   }

   function getName(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "Name", false, false);
   }

   function getCategory1(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "Category1", false, false);
   }

   function getCategory2(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "Category2", false, false);
   }

   function getCategory3(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "Category3", false, false);
   }

   function getBrandName(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "Brand", false, false);
   }

   function getDescription(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "Description", false, false);
   }

   function getPageURL(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "DeepLink", false, false);
   }

   function linkToPageURL(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "DeepLink", false, true);
   }

   function getImageURL(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "ImageUrl", false, false);
   }

   function showImageURL(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "ImageUrl", true, false);
   }

   function getPicture1(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "PICTURE1", false, false);
   }

   function showPicture1(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "PICTURE1", true, false);
   }

   function getColorChart(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "COLORCHART", false, false);
   }

   function getPromotionPercentage(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "PourcentagePromotion", false, false);
   }

   function getArticles(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "Articles", false, false);
   }

   function getShippingCost(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "ShippingCost", false, false);
   }

   function getDelivery(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "Delivery", false, false);
   }

   function getCurrency(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "Currency", false, false);
   }

   function getOfferId(showgroup, divId) {
	   getShowgroupName(showgroup, divId, "OfferID", false, false);
   }

	function getShowgroupName(showgroup, divId, champ, image, href) {

	   	   var request = getXmlHttpRequest();

	   	   request.open("GET",
	   			   "AfficheInfoArticle.do?method=afficheDesignationArticle&champ=" + champ + "&showgroup=" + showgroup, true
	   	      , true);

	   	   request.onreadystatechange = function(){
	   	      if( request.readyState == 4 ){
	   	         if( request.status == 200 ){
	   	        	if (image) {
	   	        		if(request.responseText.indexOf('croix_rouge.gif')>-1)
	   	        		{
	   	        			document.getElementById(divId).src = "images/interface/croix_rouge.gif";
	   	        		}else
	   	        		{
	   	        			document.getElementById(divId).src = request.responseText;
	   	        		}
	   	        	} else {
	   	        		if (href) {
	   	        			if(request.responseText.indexOf('croix_rouge.gif')>-1)
		   	        		{
	   	        				document.getElementById(divId).href = "javascript:void(1)";
		   	        		}else
		   	        		{
		   	        			document.getElementById(divId).href = request.responseText;
		   	        		}

	   	        		} else {
	   	        			document.getElementById(divId).innerHTML = request.responseText;
	   	        		}
	   	        	}
	   	         }
	   	         else {
	   	        	document.getElementById(divId).innerHTML = request.statusText;
	   	         }
	   	      }
	   	   }
	   	   request.send(null);
	   	}



//-->

