// Included in this LIB in order to have access from all pages !! function ShowMyShoppingCart() { // Used in the link (e.g. shortcut) to the shopping cart page ! // Remember current page WSsetCookie("ShoppingCartCallingURL", top.location, 0); // Get session ID from cookie var mySessionID = getCookie( "ShoppingCartSessionID" ); if (mySessionID == null) mySessionID=""; // open the cart page. dbPath set by LIKE // swap to new path using secure socket layer // make function adaptable for generic sites: var fullUrl = window.location.href; var urlArr = fullUrl.split("/"); var sslUrlStart = "https://" + urlArr[2]; // TEST turn on/off SSL // if (mySessionID == "") alert("Votre panier est vide!"); else window.location.href = sslUrlStart + dbPath + "docbyalias/mycart?OpenDocument&"+mySessionID; // if (mySessionID == "") alert("Votre panier est vide!"); else window.location.href = dbPath + "docbyalias/mycart?OpenDocument&"+mySessionID; // Change by Anirban Start if (mySessionID == "") shwDialog("Alert","Votre panier est vide!"); else window.location.href = dbPath + "docbyalias/mycart?OpenDocument&"+mySessionID; // Change by Anirban End } function WebShopFrance_TitleHeader (SubTitleLeft, SubTitlePos, SubTitleSize) { // old : width: 456px; if (SubTitlePos=="" | SubTitlePos==null) SubTitlePos="left"; if (SubTitleSize=="" | SubTitleSize==null) SubTitleSize="16px"; // SubTitlePadding = "padding-left: 5px; padding-right: 5px;"; SubTitlePadding = ""; if (SubTitlePos=="left") SubTitlePadding = "padding-left: 15px"; if (SubTitlePos=="right") SubTitlePadding = "padding-right: 15px"; document.writeln("
"+SubTitleLeft+"
"); } function CreateBookmarkLink(title, url) { // Cross browser solution if (window.sidebar) { // Mozilla Firefox Bookmark window.sidebar.addPanel(title, url,""); } else if( window.external ) { // IE Favorite window.external.AddFavorite( url, title); } else if(window.opera && window.print) { // Opera Hotlist return true; } } function WebShopLogout() { myRedir = window.location.href; myHome = "/international/web/lg/fr/prodcatfr.nsf/docbyalias/prodcatfr"; // make sure protected pages will not be reloaded if ( page.substr(10,8) == "/myLinde") myRedir = myHome; if ( page.substr(10,7) == "/myCart") myRedir = myHome; if ( 0 == 1) myRedir = myHome; // check Form window.location.href = dbPath+"?Logout&redirectto="+myRedir; } function WSsetCookie(name,value,expires) { // own cookie, because like standard allow no expire "after browser close". var s=name+"="+escape(value)+";"; if(expires!=null && expires!=0) { var later=new Date(); later.setTime(later.getTime()+(expires*1000)); s+=" expires="+later.toGMTString()+";"; } document.cookie=s+"path=/;"; }