//---- Cookiefunction Bibliothek ----- function writeBasketLink(linkid,source) { var strAltText; if(language == "CL") strAltText = "Ett klikk, og filen er plassert i din pdf kurv"; else if(language == "DE") strAltText = "Mit einem Klick, wird das Dokument in Ihren PDF-Basket gelegt!"; else if(language == "FR") strAltText = "Un simple clic vous permet de placer le document dans votre panier PDF!"; else if(language == "IT") strAltText = "Con un solo click, il file verrà inserito nel vostro basket pdf!"; else if(language == "EN") strAltText = "One click, and the file is placed in your pdf basket!"; else if(language == "ES") strAltText = "Haciendo clic, el archivo se colocará en su cesta PDF!"; document.write(' ' + strAltText + ''); } // add the file to the basket cookie function addToBasket(linkid) { var app=navigator.appName; var cookie; if((cookie = Get_Cookie('basket')) == null) cookie = ''; var found = cookie.indexOf(linkid + ";"); if(found==-1) { cookie += linkid + ";"; Set_Cookie('basket', cookie); window.location.reload(); if(app.indexOf('Netscape')!=0) { cms_msgbox(lang_basket_added,64); } else { alert(lang_basket_added); } } else { if(app.indexOf('Netscape')!=0) { cms_msgbox(lang_basket_exists,16); } else { alert(lang_basket_exists); } } } // remove the file to the basket cookie function removeFromBasket(linkid) { var cookie; if((cookie = Get_Cookie('basket')) == null) cookie = ''; var found = cookie.indexOf(linkid + ";"); if(found>-1) { pattern = linkid.replace(/\//g, '\\\/').replace(/\$/g, '\\$'); cookie_new = cookie.replace(pattern + ";", ""); if(cookie_new == cookie) // regexp is not necessary for Internet Explorer cookie_new = cookie.replace(linkid + ";", ""); Set_Cookie('basket', cookie_new); window.location.reload(); } } // Get_Cookie function Get_Cookie(name) { var start = document.cookie.indexOf(name + "="); var len = start + name.length + 1; if ((!start) && (name != document.cookie.substring(0,name.length))) return null; if (start == -1) return null; var end = document.cookie.indexOf(";",len); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(len,end)); } // Set_Cookie function Set_Cookie(name,value) { document.cookie = name + "=" + escape(value) + ";path=/;"; } // Set_Cookie_Reload function Set_Cookie_Reload(name,value,url) { document.cookie = name + "=" + escape(value) + ";path=/;"; window.location.href = url } // Set_Cookie_LG function Set_Cookie_LG(name,value) { var ablauf = new Date(); var ati = ablauf.getTime() + (3000 * 24 * 60 * 60 * 1000); ablauf.setTime(ati); document.cookie = name + "=" + escape(value) + ";path=/; expires=" + ablauf.toGMTString(); } // Set_Cookie_NOKIA function Set_Cookie_NOKIA(name) { var value = eval("document.campaings['number'].value"); document.cookie = name + "=" + escape(value) + ";path=/;"; } // Set_Cookie_AdrDetail function Set_Cookie_AdrDetail(key1,key2,key3) { var cookie_value = key1+ "#" + key2 + "#" + key3; Set_Cookie("ADRDETAIL", cookie_value) }