function date() { var now = new Date(); var year = now.getYear(); if (year<1000) year+=1900; var month = now.getMonth() + 1; var day = now.getDay() + 1; var date = ((now.getDate()<10) ? "0" : "")+ now.getDate(); if(month == 1) Month="janvier"; if(month == 2) Month="février"; if(month == 3) Month="mars"; if(month == 4) Month="avril"; if(month == 5) Month="mai"; if(month == 6) Month="juin"; if(month == 7) Month="juillet"; if(month == 8) Month="août"; if(month == 9) Month="septembre"; if(month == 10) Month="octobre"; if(month == 11) Month="novembre"; if(month == 12) Month="décembre"; var todaysDate =(date +" "+ Month +" "+year); document.writeln(todaysDate); } function limiter() { if (document.forms['ecrire'].elements['comment'].value.length > 2000) { alert("Le champ description de l'offre doit contenir au maximum "+2000+" caractères ! "); document.forms['ecrire'].elements['comment'].value = document.forms['ecrire'].elements['comment'].value.substring(0,2000-1); } } function verifMail() { var a,i,j,k,arobase; // recherche des espaces dans l'adresse if(document.forms['ecrire'].elements['mdp'].value.search(/ /) != '-1') { alert('Une adresse e-mail ne peut contenir un espace !'); return(false); } // Vérification du format. // Pour cela, nous fractionnons l'adresse en deux. // (avant et après le caractère"@" s = document.forms['ecrire'].elements['mdp'].value.split(/@/); size1 = s[1].length-1; size0 = s[0].length-1; for(j=0; j -1) {Navigateur="Opera";} if (Nav.indexOf("Opera") == -1 && Nav.indexOf("MSIE 4")> -1) {Navigateur="Internet Explorer 4";} if (Nav.indexOf("Opera") == -1 && Nav.indexOf("MSIE 5")> -1) {Navigateur="Internet Explorer 5";} if (Nav.indexOf("Opera") == - 1 && Nav.indexOf("MSIE 6")> -1) {Navigateur="Internet Explorer 6";} if (Nav.indexOf("Netscape6") > -1) {Navigateur ="Netscape 6";} if (Nav.indexOf("Opera") == -1 && Nav.indexOf("MSIE") == -1 && Nav.indexOf("Netscape6") == -1) {Navigateur= "Netscape 4";} PlateF=navigator.platform; if (PlateF == "Win32") {Navigateur=Navigateur+" sur Windows";} if (PlateF.indexOf("Mac") > -1) {Navigateur=Navigateur+" sur Mac";} alert(Navigateur); } // déclaration des codes anlytiques var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-12799006-2"); pageTracker._trackPageview(); } catch(err) {}