var agent = navigator.userAgent.toLowerCase(); function findTarget(e){ var target; if(window.event && window.event.srcElement) target=window.event.srcElement; else if(e && e.target) target=e.target; if(!target) return null; return target; } function initInput() { var inputSearch = document.getElementById('ctl00_searchText'); var inputLog = document.getElementById('logId'); var inputPass = document.getElementById('logPass'); var inputLog2 = document.getElementById('logId2'); var inputPass2 = document.getElementById('logPass2'); inputSearch.onclick = function() { if(this.value == 'Catégories, Marchands'){ this.value=''; } } inputSearch.onfocus = function() { if(this.value == 'Catégories, Marchands'){ this.value=''; } } inputSearch.onblur = function(){ if(this.value == ''){ this.value='Catégories, Marchands'; } } inputLog.onclick = function() { if(this.value == 'Login'){ this.value=''; } } inputLog.onfocus = function(){ if(this.value == 'Login'){ this.value=''; } } inputLog.onblur = function(){ if(this.value == ''){ this.value='Login'; } } inputPass.onclick = function(){ if(this.value == 'Mot de passe'){ this.value=''; } } inputPass.onfocus = function(){ if(this.value == 'Mot de passe'){ this.value=''; } } inputPass.onblur = function(){ if(this.value == ''){ this.value='Mot de passe'; } } if(inputLog2 !=undefined) { inputLog2.onclick = function(){ if(this.value == 'Login'){ this.value=''; } } inputLog2.onfocus = function(){ if(this.value == 'Login'){ this.value=''; } } inputLog2.onblur = function(){ if(this.value == ''){ this.value='Login'; } } } if(inputPass2 !=undefined){ inputPass2.onclick = function(){ if(this.value == 'Mot de passe'){ this.value=''; } } inputPass2.onfocus = function(){ if(this.value == 'Mot de passe'){ this.value=''; } } inputPass2.onblur = function(){ if(this.value == ''){ this.value='Mot de passe'; } } } } function setupCollapse(){ //InitCats(); //InitMerchants(); var LayerCat=document.getElementById("ongletCat"); addEvent(LayerCat, "mouseover", openCat, false); addEvent(LayerCat, "mouseout", closeCat, false); var LayerSel=document.getElementById("ongletSel"); addEvent(LayerSel, "mouseover", openSel, false); addEvent(LayerSel, "mouseout", closeSel, false); if(document.getElementById("lnkFpass")!=undefined || document.getElementById("lnkFpass")!=null) { var OpenFpass=document.getElementById("lnkFpass"); addEvent(OpenFpass, "click", openFpass, false); } if(document.getElementById("lnkFpass_sbuscribe")!=undefined || document.getElementById("lnkFpass_sbuscribe")!=null) { var OpenFpassSubscribe=document.getElementById("lnkFpass_sbuscribe"); addEvent(OpenFpassSubscribe, "click", openFpassSubscribe, false); } if(document.getElementById("lnkFpassIspace")!=undefined || document.getElementById("lnkFpassIspace")!=null) { var OpenFpassIspace=document.getElementById("lnkFpassIspace"); addEvent(OpenFpassIspace, "click", openFpassIspace, false); } if(document.getElementById("closeFpass")!=undefined || document.getElementById("closeFpass")!=null) { var CloseFpass=document.getElementById("closeFpass"); addEvent(CloseFpass, "click", closeFpass, false); } if(document.getElementById("closeFpass_sbuscribe")!=undefined || document.getElementById("closeFpass_sbuscribe")!=null) { var CloseFpassSubscribe=document.getElementById("closeFpass_sbuscribe"); addEvent(CloseFpassSubscribe, "click", closeFpassSubscribe, false); } if(document.getElementById("closeFpassIspace")!=undefined || document.getElementById("closeFpassIspace")!=null) { var CloseFpassIspace=document.getElementById("closeFpassIspace"); addEvent(CloseFpassIspace, "click", closeFpassIspace, false); } if(document.getElementsByTagName){ var mesA =document.getElementsByTagName("a"); for(var i=0; i 0){ el = document.getElementById(args[0]); el.innerHTML = ""; for(i = 1; i < args.length; i++) el.innerHTML += args[i]; } } function ShowMerchantInfo(id){ window.open('/MerchantInfoPage.aspx?id=' + id,'','top=10,left=10,width=500, height=600,status=0,addressbar=0,toolbar=0,menubar=0,scrollbars=1,title=0,resizable=0'); return false; } function suckerfish() { var sfEls = document.getElementsByTagName("span"); for (var i=0; i