function openClose(id,mode) { if(document.getElementById) { element = document.getElementById(id); img = document.getElementById('img_' + id); } else if(document.all) { element = document.all[id]; img = document.all['img_' + id]; } else return; if(element.style) { if(mode == 0) { if(element.style.display == 'block' ) { element.style.display = 'none'; if (img) img.src = '/images/plus.png'; } else { element.style.display = 'block'; if (img) img.src = '/images/moins.png'; } } else if(mode == 1) { element.style.display = 'block'; if (img) img.src = '/images/moins.png'; } else if(mode == -1) { element.style.display = 'none'; if (img) img.src = '/images/plus.png'; } } } function mOpenClose(idArray,mode) { for(var i=0;i limit) { e.value = e.value.substring(0,limit); } } var d=document; function CSGetCookie(name) { if (window.ipsclass){ var dc = 'blabla;'+window.ipsclass.cookies[name]+';blabla'; }else{ var dc = d.cookie; } if (dc==null){ // cookies disabled return null; } var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else begin += 2; var end = dc.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin + prefix.length, end)); } function CSSetCookie(name, value) { var argv = CSSetCookie.arguments; var argc = CSSetCookie.arguments.length; var days = (argc >= 3) ? argv[2] : 31; var now = new Date(); var then = new Date(now.getTime() + (24 * 60 * 60 * 1000 * days)); var curCookie = name + "=" + escape(value) + "; expires=" + then.toGMTString() + "; path=/"; d.cookie = curCookie; } // Ajoute une fonction à window.onload function addToWindowOnload(func){ // DOM2 if ( typeof window.addEventListener != "undefined" ) window.addEventListener( "load", func, false ); // IE else if ( typeof window.attachEvent != "undefined" ) { window.attachEvent( "onload", func ); } else { if ( window.onload != null ) { var oldOnload = window.onload; window.onload = function ( e ) { oldOnload( e ); func(); }; } else window.onload = func; } } //##### Gestion Cart cartitems=0; optionsheight=4; function buildCart(market){ if(document.getElementById) { thecart = document.getElementById(market); } else if(document.all) { thecart = document.all[market]; } else return; if (!thecart) return; var content='L_SELBOX_TITLE L_SELBOX_TITLE     
'; var idlist=""; var thecookie=""; var i=0; thecookie=decodeCart(market); if (thecookie!=null){ var thecookiearray=thecookie.split(";"); var thenewcookie=""; for (i=0;i'+thebrokerarray[1]+'
'; idlist+='-'+thebrokerarray[0]; } } } cartitems=i; content+='
'; content+='L_SELBOX_WITHBROKERS
'; // content+='» L_SELBOX_CALLBACK
'; content+='» L_SELBOX_QUICKCOMPARE
'; content+='» L_SELBOX_COMPARE
'; thecart.innerHTML=content; } function decodeCart(market){ return CSGetCookie(market); } function addToCart(market,bid, bname, burl){ var oldCart=""; oldCart=decodeCart(market) if (oldCart==null) {oldCart="";} thecookiearray=oldCart.split(";"); var thenewcookie=""; var flag=true; for (i=0;i6) {flag=false;} if (flag==true) { thecookie=oldCart+bid+"|"+bname+"|"+burl+";"; CSSetCookie(market, thecookie); buildCart(market); } } function deleteFromCart(market,idbroker){ thecookie=decodeCart(market); if (thecookie==null) {thecookie="";} thecookiearray=thecookie.split(";"); var thenewcookie=""; for (i=0;iLoading...'; var d = top.getWindowWH(); var dw = d[0]; var dh = d[1]; var sc = getPageScroll(); var pleft = Math.round(sc[0]+(dw/2)-((w+100)/2)); var ptop = Math.round(sc[1]+(dh/2)-((h+100)/2)); document.getElementById('ifr_box').style.left = pleft+'px'; document.getElementById('ifr_box').style.top = ptop+'px'; document.getElementById('ifr_box').style.visibility='visible'; document.getElementById('ifr_box').style.display='block'; } } function hidePopup(){ if (document.getElementById('ifr_box')){ document.getElementById('ifr_box').style.visibility='hidden'; document.getElementById('ifr_box').style.display='none'; } }