// common.js.inc function lancerWOSizedFlash (chemin,couleur){ if (chemin != undefined){ if (chemin.lastIndexOf(".swf") != -1){ var codeflash = '
' + '' + '' + '' + '' + '' + '' + '' + ''+ '
'; document.write(codeflash); // Ecrire l'animation flash } } } function lancerflash (chemin,largeur,hauteur,couleur) { if (chemin != undefined){ if (chemin.lastIndexOf(".swf") != -1){ var codeflash = '
' + '' + '' + '' + '' + '' + '' + '' + '' + ''+ '
'; document.write(codeflash); // Ecrire l'animation flash } } } // places footer below the longest section function placeFooter(){ /* //alert("placeFooter"); // Get height of the Header Element var headHeight = GetElementHeight(document.getElementById("header")); var addHeight = 0; // Determine largest height value of all possible content elements addHeight = CheckAddHeight("navigator", addHeight); addHeight = CheckAddHeight("workarea", addHeight); addHeight = CheckAddHeight("workareaNoRightNav", addHeight); addHeight = CheckAddHeight("miniBasket", addHeight); addHeight = CheckAddHeight("leaflet", addHeight); addHeight = CheckAddHeight("basketEntry", addHeight); addHeight = CheckAddHeight("checkout", addHeight); addHeight = CheckAddHeight("login", addHeight); // add content height to header height to determine complete shop height var topSpace = headHeight + addHeight; // move page footer element at the bottom of the page document.getElementById("pagefooter").style.top = topSpace + "px"; */ } // Function to determine height of an element function GetElementHeight (elm) { if (!elm) return 0; if (document.layers) { if (!elm.height) elm.height = elm.clip.height; return elm.height; } else if (typeof(elm.style && elm.style.height) == 'number') { return elm.style.height; } else if (typeof(elm.style && elm.style.height) == 'string' && !isNaN(parseInt(elm.style.height))) { return parseInt(elm.style.height); } else if (elm.offsetHeight) { return elm.offsetHeight; } else if (typeof(elm.style && elm.style.pixelHeight) == 'number') { return elm.style.pixelHeight; } else if (elm.clientHeight) { return elm.clientHeight; } return 0; } // return divIds height if larger than addHeight function CheckAddHeight (divId, addHeight) { var theDiv = document.getElementById(divId); if (theDiv) { var divHeight = GetElementHeight(theDiv); if ( divHeight > addHeight ) return divHeight; } return addHeight; } function setIFrameHeight() { var iFrame = document.getElementById("contentIFrame"); var iFrameLoc = iFrame.src; var windowLoc = window.location; // If the page is on an external domain, we can't retrieve the height of the page. // Therefor, we have to set it to a static value. var iFrameHeight = "800"; if (iFrameLoc.indexOf('http://') == -1 || iFrameLoc.indexOf(windowLoc.host) != -1){ iFrameHeight = iFrame.contentWindow.document.body.scrollHeight; } //alert("ifrheight:"+iFrameHeight); iFrame.height = iFrameHeight + "px;"; } function popup_zoom_open(img, name, param) { monImage = new Image; monImage.src = img; //params = 'width=' + monImage.width + ',height=' + monImage.height + ',' + param; params = 'width=312,height=312,' + param; var win = window.open(img, name, params); win.focus(); return true; } // CategoriesB2C.js.inc // ProductDetailB2C.js.inc function displayPackageComponentDetails(Itemkey, TopItemID) { document.productform.target = ''; document.productform.itemkey.value = Itemkey; document.productform.topItemkey.value = TopItemID; document.productform.next.value = 'seeSubItemDet'; document.productform.submit(); } function createLead(Itemkey) { getMoreFunctions(Itemkey, 'createLead',''); } function setUnitForDetails(Itemkey) { getMoreFunctions(Itemkey, 'seeItem',''); } function backToBasket() { document.productform.target = ''; document.productform.action = '/b2cgsf/b2c/maintainBasket.do?display=true'; document.productform.submit(); } function setContractDuration(itemKey) { document.productform.target = ''; document.productform.itemkey.value = itemKey; document.productform.next.value = 'seeItem'; document.productform.submit(); } function backToMainProduct(parentId) { document.productform.target = ''; document.productform.itemkey.value = parentId; document.productform.topItemkey.value = ""; document.productform.action = '/b2cgsf/catalog/showLastVisited.do?itemDetails=true'; document.productform.submit(); } // productlist.js.inc // ProductsB2C.js.inc function setPageSize(Zahl) { document.productform.target = ''; document.productform.itemPageSize.value = Zahl; document.productform.next.value = "setPageSize"; document.productform.submit(); } function doQueryAlt(queryStr) { document.NavForm.query.value = queryStr; location.href = '/b2cgsf/catalog/query.do' + '?query=' + escape(queryStr); } function seeSingleItem(Itemkey) { document.productform.target = ''; document.productform.next.value = 'seeItem'; document.productform.itemkey.value = Itemkey; document.productform.submit(); } // accesskey.js.inc function openAcccessKeysWindow() { var accessKeysWindow = window.open('/b2cgsf/appbase/accesskeys.jsp', 'accessKeysWindow', 'width=500,height=400,screenX=200,screenY=300,titlebar=yes,resizable=yes,scrollbars=yes'); accessKeysWindow.focus(); return accessKeysWindow; }