//Fonctions Communes javascript function rtnDateSystem(langue){ //Gestion multilingue var tDays=null; var tMonth=null; if(langue=='D'){ tDays=new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"); tMonth=new Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"); }else if (langue=='E'){ tDays=new Array ("El domingo","El unes","El martes","El miércoles","El jueves","El viernes","El sábado"); tMonth=new Array ("Enero","Febrero", "Marzo","Abril","Mayo","Junio", "Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"); }else if (langue=='F'){ tDays= new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"); tMonth= new Array("Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"); }else if (langue=='I'){ tDays= new Array("Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"); tMonth= new Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"); }else if (langue=='P'){ tDays= new Array("Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"); tMonth= new Array("Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"); }else{ //Par d?faut on utilise l'anglais tDays= new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); tMonth= new Array("January","February","March","April","May","June","July","August","September","October","November","December"); } //Traitement de la date x = new Date(); //Traitement du jour de la semaine var j = x.getDay(); jour=tDays[j]; //Traitement du jour calendaire nb = x.getDate(); if (nb <= 9) nb = "0" + nb; //Traitement du mois m = x.getMonth(); mois= tMonth[m]; //Traitement de l'ann?e var date=""; annee = x.getFullYear(); //Creation de la chaine if (langue == 'A') date = jour + " " + mois +" " + nb + ", " + annee; else date = jour + " " + nb + " " + mois + " " + annee; //Traitement de l'heure hhmmss = "-"; hour = x.getHours(); if (hour < 10) hhmmss +="0"+hour; else hhmmss+=hour; min = x.getMinutes(); if (min <10) hhmmss +=":0" + min; else hhmmss += ":" + min; return date + hhmmss; } function toShortDate(today){ var month = today.getMonth()+1 var year = today.getYear() var day = today.getDate() if(day<10) day = "0" + day if(month<10) month= "0" + month if(year<1000) year+=1900 return(day + "/" + month + "/" + (year+"").substring(2,4)) } function MM_preloadImages() { //v2.0 if (document.images) { var imgFiles = MM_preloadImages.arguments; if (document.preloadArray==null) document.preloadArray = new Array(); var i = document.preloadArray.length; with (document) for (var j=0; j https://nominet.socgen.com // http://nominet.socgen.com => https://nominet.socgen.com function cleanHomeUrl (urlBaseHttps,currenturl,lang){ var searchterm = urlBaseHttps + "/" + lang + "/home.html" ; if(currenturl){ // SJY 26/05/2009 pour Aspisite if(currenturl.toLowerCase().indexOf("http")>=0){ if (searchterm.toLowerCase() != currenturl.toLowerCase()) { top.document.location.href = searchterm ; } } } } // SJY 09/06/2008 FAE 640 function home(lang){ window.top.document.location = "/"+lang+"/home.html"; } function disconnect_home(){ window.top.document.location = "/servlet/gateway/nominet/Disconnect"; } // SJY 04/11/2008 function nominetBlink(elementName){ // on utilise les m?thodes de jQuery $("#"+elementName).fadeOut(100).fadeIn(500).fadeOut(500).fadeIn(500); } // SJY 04/11/2008 function nominetFadeIn(elementName){ // on utilise les m?thodes de jQuery $("#"+elementName).fadeIn(800); //$("#"+elementName).show() ; } function checkBrowser() { this.ver=navigator.appVersion; this.dom=document.getElementById?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0; this.ie55=((this.ver.indexOf("MSIE 5.5")>-1 || this.ie6) && this.dom)?1:0; this.ie5=((this.ver.indexOf("MSIE 5")>-1 || this.ie5 || this.ie6) && this.dom)?1:0; this.ie4=(document.all && !this.dom)?1:0; this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.ie4plus=(this.ie6 || this.ie5 || this.ie4); this.ie5plus=(this.ie6 || this.ie5) this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5); return this; } function getObjectById(ID) { var obj; if (bw.dom) return document.getElementById(ID); else if (bw.ie4) return document.all(ID); else if (bw.ns4) return eval('document.' + ID); } // CVT 19/11/2008 function nextInputLength(curInput,nxtInput,length){ bw = new checkBrowser(); if (!document.getElementById) { document.getElementById = getElementById; } var str_curInput = document.getElementById(curInput); var str_nxtInput = document.getElementById(nxtInput); if(str_curInput != null && str_nxtInput != null){ if (str_curInput.value.length == length) str_nxtInput.focus(); } }