      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";		// 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 = 645;          sHeight = 450;          sWindowName = "displayShopping";        }        sFeatures = sFeatures + "width=" + sWidth + ",";        sFeatures = sFeatures + "height=" + sHeight;/*        sFeatures = sFeatures + "left=0,";        sFeatures = sFeatures + "top=0";*//*	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();            }          }        }      }