      function csHyperlink(sType,sHref,sTarget,sWidth,sHeight,sToolBar,sParam) {
        // Ex :  sType = "image";
        //       sHref = "/images/image1.jpg";
        
	var sTopic = "";
	var sClick = "";
	var sLang = gsCurrentLang;
	var sScrollBar = "";
	var sFeatures = "";
	var lPos = 0;
	var lPosSeparator = 0;
	var sToolBarParam = sToolBar;
        var sWindowName = "displayDialog";
        var sVAlign="";
        var sHAlign="";
	
	// sToolBar	
	//   Ex : yes / no / toolbar=no&scrollbar=yes
	if (sToolBarParam.indexOf("=") > 0) {
	  lPos = sToolBarParam.indexOf("toolbar=");
	  if (lPos > -1) {
	    if (sToolBarParam.length > lPos) {
	      lPosSeparator = sToolBarParam.indexOf("&", lPos + 1);
	      if (lPosSeparator > -1) {
	        sToolBar = sToolBarParam.substring(lPos + 8, lPosSeparator);	
	      } else {
	      	sToolBar = sToolBarParam.substring(lPos + 8, sToolBarParam.length);
	      }
	    }
	  }
	  
	  lPos = sToolBarParam.indexOf("scrollbar=");
	  if (lPos > -1) {
	    if (sToolBarParam.length > lPos) {
	      lPosSeparator = sToolBarParam.indexOf("&", lPos + 1);
	      if (lPosSeparator > -1) {
	        sScrollBar = sToolBarParam.substring(lPos + 10, lPosSeparator);	
	      } else {
	      	sScrollBar = sToolBarParam.substring(lPos + 10, sToolBarParam.length);
	      }
	    }	
	  }
	}

        if (((sType == "shopping_add") || (sType == "shopping_order") || (sType == "shopping_add_all")) && (sTarget != "popup")) {
          sFeatures = sFeatures + "toolbar=yes,";        
	  sFeatures = sFeatures + "status=yes,";
        } else {
          sFeatures = sFeatures + "toolbar=" + sToolBar + ",";        
	  sFeatures = sFeatures + "status=" + sToolBar + ",";

        }
        
        sFeatures = sFeatures + "location=" + sToolBar + ",";
        sFeatures = sFeatures + "menubar=" + sToolBar + ",";

        if (sToolBar == "no") {
          sFeatures = sFeatures + "directories=" + sToolBar + ",";
        } else {
         
        }
        
        if (sScrollBar == "") {
          if ((sType == "image")||(sTarget == "popup")||(sType == "topicnewwindow")) {
            sFeatures = sFeatures + "scrollbars=" + "no" + ",";
          } else {
            sFeatures = sFeatures + "scrollbars=" + "yes" + ",";
          }
        } else {
          sFeatures = sFeatures + "scrollbars=" + sScrollBar + ",";
        }
        sFeatures = sFeatures + "resizable=" + "yes" + ",";


        if (((sType == "shopping_add") || (sType == "shopping_add_all") || (sType == "shopping_order")) && (sTarget != "popup")) {
          sWidth = 835;
          sHeight = 550;
          sWindowName = "displayShopping";
        }


        sFeatures = sFeatures + "width=" + sWidth + ",";

        sFeatures = sFeatures + "height=" + sHeight;

/*        sFeatures = sFeatures + "left=0,";
        sFeatures = sFeatures + "top=0";
*/


        // Position de la fenêtre
        //ex: align=right&valign=top
        //    left=50&top=100
        if (sParam.indexOf("=") > 0) {
	  lPos = sParam.indexOf("align=");
	  if (lPos > -1) {
	    if (sParam.length > lPos) {
	      lPosSeparator = sParam.indexOf("&", lPos + 1);
	      if (lPosSeparator > -1) {
	        sHAlign = sParam.substring(lPos + 6, lPosSeparator);	
	      } else {
	      	sHAlign = sParam.substring(lPos + 6, sParam.length);
	      }
	    }
	  }	

          lPos = sParam.indexOf("valign=");
	  if (lPos > -1) {
	    if (sParam.length > lPos) {
	      lPosSeparator = sParam.indexOf("&", lPos + 1);
	      if (lPosSeparator > -1) {
	        sVAlign = sParam.substring(lPos + 7, lPosSeparator);	
	      } else {
	      	sVAlign = sParam.substring(lPos + 7, sParam.length);
	      }
	    }
	  }

          lPos = sParam.indexOf("left=");
	  if (lPos > -1) {
	    if (sParam.length > lPos) {
	      lPosSeparator = sParam.indexOf("&", lPos + 1);
	      if (lPosSeparator > -1) {
	        sLeft = sParam.substring(lPos + 5, lPosSeparator);	
	      } else {
	      	sLeft = sParam.substring(lPos + 5, sParam.length);
	      }
	    }
	  }	

          lPos = sParam.indexOf("top=");
	  if (lPos > -1) {
	    if (sParam.length > lPos) {
	      lPosSeparator = sParam.indexOf("&", lPos + 1);
	      if (lPosSeparator > -1) {
	        sTop = sParam.substring(lPos + 5, lPosSeparator);	
	      } else {
	      	sTop = sParam.substring(lPos + 5, sParam.length);
	      }
	    }
	  }		
        }

	if ((sHAlign!="")||(sVAlign!="")){
		sFeatures+=",";
	}

	if (sHAlign == "custom") {
          sFeatures = sFeatures + "left=" + sLeft + ",";
        } else if (sHAlign == "left") {
          sFeatures = sFeatures + "left=0,";
        } else if (sHAlign == "right") {
          sFeatures = sFeatures + "left=" + (screen.width - 12 - sWidth) + ",";
        } else if (sHAlign == "center") {
          sFeatures = sFeatures + "left=" + ((screen.width - 12 - sWidth)/2) + ",";
        }

	if (sVAlign == "custom") {
          sFeatures = sFeatures + "top=" + sTop;
        } else if (sVAlign == "top") {
          sFeatures = sFeatures + "top=0";
        } else if (sVAlign == "bottom") {
          sFeatures = sFeatures + "top=" + (screen.height - 55 - sHeight);
        } else if (sVAlign == "center") {
          sFeatures = sFeatures + "top=" + ((screen.height - 55 - sHeight)/2);
        }



        if (sType == "topic") {

          document.frmCSHyperlink.topic.value = sTopic;
          document.frmCSHyperlink.lang.value = sLang;

        } else if (sType == "detail") {
          document.frmCSHyperlink.lang.value = sLang;
          document.frmCSHyperlink.click.value = sClick;
        }


	if (sType == "email") {

          document.location = sHref;



        } else {

          if (sType == "back") {
            history.back();
          } else {
	
            if ((sTarget == "_blank")||(sTarget == "popup")) {
              if ((sType == "topic")&&(sTarget!="popup")) {
                sHref = sHref + "?topic=" + sTopic + "&lang=" + sLang;
              } else if (sType == "detail") {
                sHref = sHref + "?click=" + sClick + "&lang=" + sLang;
              } else if ((sType == "image")) {
                sHref = "/cgi-cs/cs.waimage.displayimage?image_name=" + sHref
              } else if (sType == "shopping_add") {
                sHref = "/cgi-cs/cs.washopping.chooseoption?lang=" + sLang + "&id_add=" + sParam + "&qte_1=1&item_count=0&sAction=add";
              } else if (sType == "shopping_add_all") {
              	var sList = "";
              	var iCptItemCount = 0;
              	if (document.frmData) {
		  var frmForm = document.frmData;
		  for (i = 0; i < frmForm.length; i++) {
		    if ((frmForm.elements[i].name.substring(0,4) == "qty_") && (document.frmData.elements[i].value.length > 0)) {
			sList += "&" + document.frmData.elements[i].name + "=" + document.frmData.elements[i].value ;
			iCptItemCount += 1;
         	    }
      		  }
      		  
   	        }
              	
              	if (iCptItemCount > 0) {
                  sHref = "/cgi-cs/cs.washopping.addall?lang=" + sLang + sList + "&qte_1=1&item_count=" + iCptItemCount + "&sAction=add";
                } else {
                  alert("Vous devez mettre une quantité dans les éléments que vous désirez ajouter à votre panier")
                  return;	
                }
                
                
              } else if (sType == "shopping_order") {
                sHref = "/cgi-cs/cs.washopping.update?lang=" + sLang;
              }

              

              if ((gsSinglePagePopupLinkParam != "")&&(sType != "image_blank")) {
                if (sHref.indexOf("?")==-1) {
                  sHref += "?"
                } else {
                  sHref += "&"
                }
                sHref += "singlepagepopup=true"; 
              }


              dlg = window.open (sHref,sWindowName,sFeatures) 
              dlg.focus();


            } else {
              if (sType == "image") {
                document.frmCSHyperlink.action = "/cgi-cs/cs.waimage.displayimage"
                document.frmCSHyperlink.image_name.value = sHref; 
              } else {
                document.frmCSHyperlink.action = sHref; 
              }
              document.frmCSHyperlink.target = sTarget;
              document.frmCSHyperlink.submit();
            }
          }
        }
      }
