function isTime(){ist=new Date();heure=ist.getHours();minu=ist.getMinutes();sec=ist.getSeconds(); heure=((heure<10)?"0":"")+heure; minu=((minu<10)?":0":":")+minu; sec=((sec<10)?":0":":")+sec; TheT=heure+minu+sec; document.getElementById("Time").innerHTML=TheT; tempo=setTimeout('isTime()',1000);}
Modif=new Date(document.lastModified);
Now=new Date();
Jour=new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");
Mois=new Array("Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre");
DateModif=" "+Jour[Modif.getDay()]+" "+Modif.getDate()+" "+Mois[Modif.getMonth()]+" "+Modif.getFullYear();
min1=((Modif.getMinutes()<10)?"0":"")+Modif.getMinutes();
HeureModif=" "+((Modif.getHours()<10)?"0":"")+Modif.getHours()+"H"+min1;
min2=((Now.getMinutes()<10)?"0":"")+Now.getMinutes();
Today=" "+Jour[Now.getDay()]+" "+Now.getDate()+" "+Mois[Now.getMonth()]+" "+Now.getFullYear()+" à "+Now.getHours()+"H"+min2+" :";
function MajDate(){MajD=Jour[Now.getDay()]+" "+Now.getDate()+" "+Mois[Now.getMonth()]+" "+Now.getFullYear(); document.getElementById("majdate").innerHTML=MajD; tempoa=setTimeout('MajDate()',1000);}
function Maj(){document.write("<div align=center><span class=\"comment\">Derni&egrave;re mise &agrave; jour :</span></div><div align=center><span class=comment>le <strong>"+DateModif+"</strong> &agrave; <strong>"+HeureModif+"</strong>.</span></div>");}
Tm=Theme();

function GetVaria(loca,Va){varia=new Array("","","","",""); var ok=0; var car="";for(var pt=0; pt<loca.length; pt++){car=loca.charAt(pt); if(car=="%"){pt+=2; car=" "} if(ok<1 && car!="?" && car!="#"){varia[ok]+=car} if(ok>=1 && car!="?" && car!="#" && car!="&"){varia[ok]+=car} if(ok<4 && car=="&"){ok++} if(ok<=1 && car=="?"){ok++} if(ok<1 && car=="#"){ok++} } return(varia[Va]); }

function TTL(loca){document.write(GetVaria(loca,2));}
function Ex(loca){if(GetVaria(loca,1)!=""){document.write("<Iframe id='sample' src='Delphi/"+GetVaria(loca,1)+"' height=600 width=550 frameborder=0></Iframe><br />");}}
function Img(loca){if(GetVaria(loca,1)!=""){document.write("<img src=\""+GetVaria(loca,1)+"\">");}}
function loca(loca){varia=new Array; varia[0]=""; varia[1]=""; varia[2]=""; varia[3]=""; var ok=0; var car=""; for(var pt=0; pt<loca.length; pt++) {car=loca.charAt(pt); if(car=="%"){pt+=2; car=" "} if(ok<=1 && car!="?" && car!="#"){varia[ok]+=car} if(ok<1 && car=="?"){ok++} if(ok<1 && car=="#"){ok++} } if(varia[0]!=""){document.write(varia[0]);} if(top.frames.length!=0){extractpage(varia[0]);} }
function extractpage(loca){varia=new Array; varia[0]=""; varia[1]=""; varia[2]=""; varia[3]=""; var ok=0; var car=""; framepage=""; for(var pt=0; pt<loca.length; pt++) {car=loca.charAt(pt); if(car=="%"){pt+=2; car=" "} if(ok<=1 && car!="?" && car!="#"){varia[ok]+=car} if(varia[ok]=="bjb-site/" || varia[ok]=="www.bjb-site.fr/" || varia[ok]=="bjb-site.perso.neuf.fr/" || varia[ok]=="BJB_Site/" || varia[ok]=="127.0.0.1/" || varia[ok]=="brunet_joel/"){ok++} if(varia[ok]=="nothingarts.eremoyenne.fr"){parent.document.location.href="http://nothingarts.eremoyenne.fr/index.php"} if(varia[ok]=="index.html"){varia[ok]="Logo.html"} if(ok<1 && car=="/"){varia[ok]=""} if(ok<1 && car=="?"){ok++} if(ok<1 && car=="#"){ok++} if(varia[1]=="Formation/"){varia[1]="Formation/Formation.html"; ok++} if(varia[1]=="Wav_CD/"){varia[1]="Wav_CD/Wav_CD.html"; ok++} }
 if(varia[1]!=""){framepage+=(varia[1])+"&"; if(top.frames.length!=0 && top.document.title=="BJB SITE V2"){top.document.getElementById("hretour").href="indexV1.html?"+framepage+top.document.getElementById("hretour").name; top.document.getElementById("LPr").href="http://www.bjb-site.fr/index.html?"+framepage+top.document.getElementById("hretour").name;} // top.document.getElementById("LM1").href="http://perso.wanadoo.fr/bjb-site/index.html?"+framepage+top.document.getElementById("hretour").name; top.document.getElementById("LM2").href="http://www.geocities.com/brunet_joel/index.html?"+framepage+top.document.getElementById("hretour").name;}
  if(top.frames.length!=0 && top.document.title=="BJB SITE" && window.onload!=0){top.navigation.document.getElementById("hretour").href="index.html?"+framepage+top.navigation.document.getElementById("hretour").name;}}}
function relatif(loca,text){variabase=new Array; variabase=""; varindex=new Array; varindex="index.html?"; varia=new Array;varia[1]="";varia[2]=""; var ok=0; var car=""; framepage="";for(var pt=0; pt<loca.length; pt++) {car=loca.charAt(pt); if(car=="%"){pt+=2; car=" "} if(ok<=1 && car!="?" && car!="#"){varia[ok]+=car} if(ok<1){variabase+=car;} if(varia[ok]=="bjb-site/" || varia[ok]=="www.bjb-site.fr/" || varia[ok]=="bjb-site.perso.neuf.fr/" || varia[ok]=="bjb-site.no-ip.org/" || varia[ok]=="bjb-site.role-expert.com/" || varia[ok]=="BJB_Site/" || varia[ok]=="brunet_joel/" || varia[ok]=="127.0.0.1/" || varia[ok]=="192.168.0.1/"){ok++} if(ok<1 && car=="/"){varia[ok]=""} if(ok<1 && car=="?"){ok++} if(ok<1 && car=="#"){ok++} varia[ok]=((varia[ok]=="Menu.html")?"Logo.html":varia[ok]=((varia[ok]=="Passe.html")?"Logo.html":varia[ok]=((varia[ok]=="Nosound.html")?"Logo.html":varia[ok]=((varia[ok]=="Sound.html")?"Logo.html":varia[ok])))); if(varia[ok]=="Radios.html"){if(variabase=="file:///D:/WWW/BJB-Site/"){varindex=""; return("");}else{varia[ok]="Logo.html";}} } if(top.frames.length==0 && top.document.title!="BJB SITE V2"){((text=="")?self.location.href=variabase+varindex+varia[1]:document.write("<a href=\""+variabase+varindex+varia[1]+"\" class='normal'>"+text+"</a>"))} }
function frame(loca){page=((GetVaria(loca,1)!="")?GetVaria(loca,1):"Intro.html"); document.write("<FRAMESET COLS='*,151' BORDER='0' BORDERCOLOR='#585858' FRAMEBORDER='0'>\n  <FRAME SRC=\"../"+page+"\" NORESIZE NAME='presentation' FRAMEBORDER='0' SCROLLING='auto' BORDERCOLOR='#585858'>");}
function frame2(loca,S){page=((GetVaria(loca,1)!="")?GetVaria(loca,1):"Intro.html"); page+=((GetVaria(loca,3)!="")?"?"+GetVaria(loca,3):""); document.write("<Iframe SRC=\"../"+page+"\" align='top' frameborder='0' width='100%' height='1895' scrolling='Auto' name='presentation'></Iframe>"); if(GetVaria(loca,2)!="" && document.title=="BJB SITE V2"){Pub(GetVaria(loca,2),S);} }
function popup(url,h,w){stt=new Date; Sv=stt.getTime(); window.location.href=url; window.resizeTo(w,h);}
var WinNum=0; function WindowOpen(Url,h,w){var top=(screen.availHeight-h)/2; var left=(screen.availWidth-w)/2; var String="top="+top+",left="+left+",height="+h+",width="+w+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,"; WinPic=window.open(Url,WinNum++,String);}
function WindowOpen2(Url,h,w){var top=(screen.availHeight-h)/2; var left=(screen.availWidth-w)/2; var String="top="+top+",left="+left+",height="+h+",width="+w+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,"; WinPic=window.open(Url,WinNum++,String);}

clchover=new Array("#0066FF","#FFEBBB");
function chover(a){cl=((Tm=="bleu")?clchover[0]:clchover[1]); a.style.background=cl}
clchout=new Array("#0033CC","#FFD280");
function chout(a){cl=((Tm=="bleu")?clchout[0]:clchout[1]); a.style.background=cl}
clchout2=new Array("#0002DD","#F5DEB3");
function chout2(a){cl=((Tm=="bleu")?clchout2[0]:clchout2[1]); a.style.background=cl}
function chadd(val){document.getElementById("choutext").value+=val}
function verch(formulaire){alertext=""; if(formulaire.chounom.value==""){alertext+="Veuillez entrer votre nom !\n";} if(formulaire.choutext.value==""){alertext+="Choisissez la chouette que vous pr&eacute;f&eacute;rez avant d\'envoyer ce formulaire !"}; if(alertext!=""){alert(alertext);}else{formulaire.submit();}}
clic=false; var n=new Array(0,0,0,0,0,0,0,0,0,0,0,0);
function visites(){text=""; document.getElementById("visitext").value=""; Pages=new Array; Pages[0]="indexV1.html 	"; Pages[1]="Index2.html 	"; Pages[2]="Plan.html   	"; Pages[3]="Album.html  	"; Pages[4]="Delphi.html 	"; Pages[5]="Chouettes.html 	"; Pages[6]="Labyrinthe.php	"; Pages[7]="index.html   	"; if (text==""){text+="Le"+Today+"\n--------------------------------------\n";} 
for(var pt=0; pt<8; pt++){text+=pt+" : "+Pages[pt]+" : \n"/*<img src=\"bin/compteur.cgi?df=C"+pt+"&dd=C&md=5&ft=2&tr=y&incr=n\">\n"*/} document.getElementById("visitext").value=document.getElementById("visitext").value+text}
/* VARIABLES GENERALES */
euro_larg = 290; euro_haut = 350; euro_bord = '#040732'; euro_fond = '#0033CC'; euro_font_size = '13'; euro_font_color = '#FFFFFF'; euro_font_face = 'Verdana';
/* VARIABLES PROGRAMME */euro_coef = new Array; euro_coef[0] = 6.55957; euro_coef[1] = 40.3399; 
/* A METTRE A JOUR : DOLLARS AMERICAINS */euro_coef[4] = 1.2223;
/* A METTRE A JOUR : LIVRE STERLING */euro_coef[5] = 0.6765;
/* A METTRE A JOUR : FRANCS SUISSES */euro_coef[2] = 1.5469;
/* A METTRE A JOUR : YENS JAPONAIS */euro_coef[6] = 134.8900; 
/* A METTRE A JOUR : DOLLARS CANADIENS */euro_coef[3] = 1.4483; 

euro_texte=new Array("Francs Fran&ccedil;ais","Francs Belges","Francs Suisses","Dollars Canadiens","Dollars Am&eacute;ricains","Livres Sterling","Yens Japonais");
euro_ab=new Array("FF","FB","CHF","CAD","USD $","GBP&pound;","JPY");
euro_euro="&euro;&nbsp;&nbsp;"; euro_html1="<TABLE HEIGHT="+(euro_haut-10)+" ALIGN=center>"; euro_html2="<TR><TD align='center'><span id='euro_table'></span><span class='commentj'>Valeurs du "+DateModif+" &agrave; "+HeureModif+".</span></TD></TR></TABLE>";
function calcdeveur(somme,euro_coef){document.euro_form.euro_somme.value=KeepLetters(document.euro_form.euro_somme.value,"1234567890."); var i; i=(Math.round((somme/euro_coef)*100000)/100000); document.euro_form.euro_result1.value=i; compar=((document.euro_form.euro_compar1.value!="NaN")?Math.round(0-(100-((somme*100)/document.euro_form.euro_compar1.value))):0); compar2=((document.euro_form.euro_compar1.value!="")?Math.round((((somme/euro_coef)*100000)/100000)-(((document.euro_form.euro_compar1.value/euro_coef)*100000)/100000)):0); document.getElementById("pourcent1").innerHTML=compar; document.getElementById("diff1").innerHTML=compar2;}
function calceurdev(somme,euro_coef){document.euro_form.euro_somme2.value=KeepLetters(document.euro_form.euro_somme2.value,"1234567890."); var i; i=(Math.round((somme*euro_coef)*100000)/100000); document.euro_form.euro_result2.value=i; compar=((document.euro_form.euro_compar2.value!="NaN")?Math.round(0-(100-((somme*100)/document.euro_form.euro_compar2.value))):0); compar2=((document.euro_form.euro_compar2.value!="")?Math.round((((somme/euro_coef)*100000)/100000)-(((document.euro_form.euro_compar2.value/euro_coef)*100000)/100000)):0); document.getElementById("pourcent2").innerHTML=compar; document.getElementById("diff2").innerHTML=compar2;}
function KeepLetters(field,keep){str=field; Letterstokeep=keep; retStr=''; for(x=0; x<str.length; x++){if(Letterstokeep.indexOf(str.substring(x,x+1))>-1){retStr=retStr+str.substring(x,x+1);}}return retStr;}
function mdp(lien){moncode=((prompt('Mot de passe','')!="lock")?"Logo.html":lien); location.href=moncode;}
var copytoclip=1; function HighlightAll(theField){var tempval=eval("document."+theField); tempval.focus(); tempval.select(); if (document.all&&copytoclip==1){therange=tempval.createTextRange(); therange.execCommand("Copy"); window.status="Enregistrement du contenu dans le presse-papiers !!!"; setTimeout("window.status=''",1500) }	}
TPo=new Array("1188917","15","100","113","130","140","155","185","275","290","325","358","245","170","215","230");
function SetIndex(TPos){if(TPos>0){if(top.frames.length!=0 && top.document.title=="BJB SITE V2"){window.parent.document.getElementById("TabH").height=TPo[TPos]; window.parent.document.getElementById("TabH2").height=Math.round(532-TPo[TPos]);}}}
VersionSite="Interface<br />Version 2.4"; 
function SiteVersion(loca){if(top.frames.length!=0 && top.document.title!="BJB SITE V2"){document.getElementById("version").innerHTML=
"<table align=center cellspacing=0 cellpadding=0 border=0><tr><td height=8></td><td class='r' width=1></td><td></td><td class='r' width=1></td><td></td></tr>"+
"<tr><td height='9px' width='9px' style='background-image: url("+path+"Images/"+Tm+"/Ohd.gif); background-attachment: fixed; background-position: right; background-repeat: no-repeat;'></td>"+
"<td colspan=3 style='background-image: url("+path+"Images/"+Tm+"/BH.gif); background-attachment: fixed; background-position: center; background-repeat: repeat;'></td><td width='9px' style='background-image: url("+path+"Images/"+Tm+"/Ohg.gif); background-attachment: fixed; background-position: left; background-repeat: no-repeat;'></td></tr>"+
"<tr><td rowspan=3 style='background-image: url("+path+"Images/"+Tm+"/BG.gif); background-attachment: fixed; background-position: right; background-repeat: repeat;'></td><td class='g' colspan=3 height='1px'></td><td rowspan=3 style='background-image: url("+path+"Images/"+Tm+"/BD.gif); background-attachment: fixed; background-position: right; background-repeat: repeat;'></td></tr>"+
"<tr><td class='g'></td><td align=center style='background-image: url("+path+"Images/"+Tm+"/Fond.gif);' valign=top width=118><a class='normalj' href='index.html' id='hretour' name="+GetVaria(loca,2)+" target='_parent'>Passer &agrave; l'"+VersionSite+"</a></td><td class='g'></td></tr>"+
"<tr><td class='g' colspan=3 height=1></td></tr><tr><td height='9px' style='background-image: url("+path+"Images/"+Tm+"/Obg.gif); background-attachment: fixed; background-position: right; background-repeat: no-repeat;'></td>"+
"<td colspan=3 style='background-image: url("+path+"Images/"+Tm+"/BB.gif); background-attachment: fixed; background-position: center; background-repeat: repeat;'></td><td style='background-image: url("+path+"Images/"+Tm+"/Obd.gif); background-attachment: fixed; background-position: left; background-repeat: no-repeat;'></td></tr></table>";}}
function SiteVersion2(){if(top.frames.length!=0){document.getElementById("version").innerHTML="<span class='commentj'>"+VersionSite+"</span>";}}
function CheckWidth(){if(document.body.clientWidth<768){document.write("<table align='center' class='fond'>");}else{document.write("<table align='left' class='fond'>");}}
function CheckWidth2(){if(document.body.clientWidth<800){document.write("</tr><tr>");}}
function CheckWidth3(){result=((document.body.clientWidth<1015)?"</td></tr><tr>":"</td>"); document.write(result);}
var cwidth=0;
function verifwidth(){cwidth=document.body.clientWidth; tempo2=setTimeout('verifcwidth()',1000);}
function verifcwidth(){if(document.body.clientWidth!=cwidth){window.location.reload(true);} tempo2=setTimeout('verifcwidth()',1000);}
function AfficheHomePage(){if(document.all && document.getElementById){document.write('<div align=center><a href="#" onClick="HomePage(this);return(false)"; class="spec" title="Faites de ce site votre page de démarrage"><img src="Gifs/Icon_Home.gif" width="14" height="14" alt="" border="0" align="middle"> Ce site au D&eacute;marrage</a></div>');}}
function HomePage(obj){obj.style.behavior="url(#default#homepage)";	obj.setHomePage("http://www.bjb-site.fr/");}
CatType=new Array("height='500' width='500'","height='446' width='670'","height='500' width='500'","height='500' width='545'","height='555' width='400'");
function Cat(loca){if(GetVaria(loca,1)!=""){document.title=GetVaria(loca,2); document.write("<img src=\""+GetVaria(loca,2)+"\""+CatType[GetVaria(loca,1)]+">");} }
function CatOld(loca){if(GetVaria(loca,1)!=""){document.title=GetVaria(loca,2); document.write("<img src=\"http://bjb-site.perso.neuf.fr/Cat/"+GetVaria(loca,2)+"\""+CatType[GetVaria(loca,1)]+">");} }
function DownCat(){document.write("(2 061 Ko)");}
function Retour(affiche){if(affiche!=0){document.getElementById("retour").innerHTML="<<== Revenir &agrave; la Version<br />1.0 du site.";}else{document.getElementById("retour").innerHTML="<<== Revenir &agrave; la Version 1.0 du site.";} document.getElementById("hretour").name=affiche; if(top.document.getElementById("hretour").href.charAt(document.getElementById("hretour").href.length-1)!="/"){document.getElementById("hretour").href=document.getElementById("hretour").href.substr(0,document.getElementById("hretour").href.length-1)+affiche; document.getElementById("LPr").href=document.getElementById("LPr").href.substr(0,document.getElementById("LPr").href.length-1)+affiche; document.getElementById("LM1").href=document.getElementById("LM1").href.substr(0,document.getElementById("LM1").href.length-1)+affiche;}}
S1=new Array("1037-25582503","1045-9168752","1045-9168752"); S2=new Array("3","2","2");
function Pub(affiche,S){if(document.title=="BJB SITE V2"){Retour(affiche);} if(affiche!=0){document.getElementById("pub").innerHTML=
"<IFRAME NAME=iclickfr SRC=http://www"+S2[S]+".click-fr.com/printk.cgi?a="+S1[S]+"&b=20 width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no>"+
"<SCRIPT LANGUAGE=JavaScript> var nbre=Math.round(Math.random()*100000);var chaine=\"<a href='http://www"+S2[S]+".click-fr.com/clickj.cgi?a="+S1[S]+"&b=\"+nbre+\"' target='clickfr'><img class='normal' border=0 height=60 width=468 SRC='http://www"+S2[S]+".click-fr.com/printj.cgi?a="+S1[S]+"&b=\"+nbre+\"' alt='*** Visitez notre Sponsor ! ***'></a>\";"+
"document.write(chaine);</SCRIPT></IFRAME><font size=1><br /><a href=http://www.click-fr.com target=\"_TOP\">Membre de ClickFR, R&eacute;seau francophone Paie-Par-Click</a></font>"; 
if(document.title=="BJB SITE V2" || document.title=="Pub (BJB SITE V2)"){document.getElementById("imgpub").innerHTML="<img src=\"Images/"+Tm+"/Moin.gif\" alt=\"Cacher la pub\" width=9 height=9 border=0 align=top onClick=\"Pub(0,"+S+")\" style=\"Cursor:Pointer;\">";}}
else{document.getElementById("pub").innerHTML="La banni&egrave;re se trouvant ici n'a pas &eacute;t&eacute; charg&eacute;e !"; if(document.title=="BJB SITE V2" || document.title=="Pub (BJB SITE V2)"){document.getElementById("imgpub").innerHTML="<img src=\"Images/"+Tm+"/Plus.gif\" alt=\"Montrer la pub\" width=9 height=9 border=0 align=top onClick=\"Pub(1,"+S+")\" style=\"Cursor:Pointer;\">";}}
if(document.title=="BJB SITE V2"){document.getElementById("imgpub2").innerHTML="<img src=\"Images/"+Tm+"/Fenetre.gif\" alt=\"La pub dans une fen&ecirc;tre\" width=9 height=9 border=0 align=top onClick=\"javascript:WindowOpen('Pub.html?"+S+"','145','524'); Pub(0,"+S+");\" style=\"Cursor:Pointer;\">";} }
S1A=new Array("3259","2668","2668"); S2A=new Array("3357","2749","18545");
function Pub2(affiche,S){if(document.title=="BJB SITE V2"){Retour(affiche);} if(affiche!=0){document.getElementById("pub").innerHTML=
"<a href=\"http://adserver.click-fr.com/click.htm?l="+S1A[S]+"&s="+S2A[S]+"&b=auto&nbre=123\" target=\"_blank\"><img border=0 width=468 height=60 SRC=\"http://adserver.click-fr.com/print.js?l="+S1A[S]+"&s="+S2A[S]+"&w=468&h=60&nbre=123&t=4\" alt=\"*** Visitez notre Sponsor ! ***\"></a>"+
"<font size=1><br /><a href=\"http://www.click-fr.com/\" target=\"_TOP\">Membre de ClickFR, R&eacute;seau francophone Paie-Par-Click</a></font>"; 
if(document.title=="BJB SITE V2" || document.title=="Pub (BJB SITE V2)"){document.getElementById("imgpub").innerHTML="<img src=\"Images/"+Tm+"/Moin.gif\" alt=\"Cacher la pub\" width=9 height=9 border=0 align=top onClick=\"Pub2(0,"+S+")\" style=\"Cursor:Pointer;\">";}}
else{document.getElementById("pub").innerHTML="La banni&egrave;re ce trouvant ici n'est pas encore charg&eacute;e !"; if(document.title=="BJB SITE V2" || document.title=="Pub (BJB SITE V2)"){document.getElementById("imgpub").innerHTML="<img src=\"Images/"+Tm+"/Plus.gif\" alt=\"Montrer la pub\" width=9 height=9 border=0 align=top onClick=\"Pub2(1,"+S+")\" style=\"Cursor:Pointer;\">";}}
if(document.title=="BJB SITE V2"){document.getElementById("imgpub2").innerHTML="<img src=\"Images/"+Tm+"/Fenetre.gif\" alt=\"La pub dans une fen&ecirc;tre\" width=9 height=9 border=0 align=top onClick=\"javascript:WindowOpen('Pub.html?"+S+"','145','524'); Pub2(0,"+S+");\" style=\"Cursor:Pointer;\">";} }
function Oui(vari){R=((vari==0)?"&thorn;":"&uuml;"); document.write("<span class=commentbs>"+R+"</span>");}
function Non(vari){R=((vari==0)?"&yacute;":"&ucirc;"); document.write("<span class=commentbs>"+R+"</span>");}
function passadd(val){ma=((document.getElementById("passtext").value.length==document.getElementById("passtext").maxLength)?"":val); mdpass(ma); if(ma==10){ma="*";} if(ma==11){ma="#";} document.getElementById("passtext").value+=ma;}
function mdpass(N){if(N==7 && n[9]!=0 && document.getElementById("passtext").value.length>=6){n[7]=1; clic=true;} if(N==9 && n[8]!=0){n[9]=1;} if(N==8 && n[1]!=0){n[8]=1;} if(N==1 && n[1]==0){n[1]=1;} };
function raz(N){if(N!=1 && N!=7 && N!=8 && N!=9){for(var i=0; i<12; i++){n[i]=0;}}}
function get(val){list=new Array; list_valeur=new Array; place=document.location.href.indexOf("?",0); if(place>=0){query_string=document.location.href.substring(place+1,document.location.href.length); place_and=query_string.indexOf("&",0); if(place_and>=0){list=query_string.split("&");}else{list[0]=query_string;} for(i=0;i<list.length;i++){temp=list[i].split("="); variable=temp[0]; valeur=temp[1]; plus_place=valeur.indexOf("+",0);
while(plus_place>-1){temp2=valeur.substring(0,plus_place)+' '+valeur.substring(plus_place+1,valeur.length); valeur=temp2; plus_place=valeur.indexOf("+",plus_place+2); }list_valeur[variable]=valeur; }} if(list_valeur[val]){return(unescape(list_valeur[val]));}else{return("");}}

function Themes(path){Tm=((Theme()!="")?Theme():"bois"); document.write("<link rel='STYLESHEET' href='"+path+"BJB_Site_"+Tm+".css' type='text/css'>");}
Cadre=new Array("BH","BB","BG","BD","Ohd","Ohg","Obd","Obg");
function ThemeImages(Tm){for(var i=0; i<8; i++){if(i==0){document.write("<style type='text/css'>");} document.write("td."+Cadre[i]+" {background: url(Images/"+Tm+"/"+Cadre[i]+".gif) "+((i<2)?"repeat-x":((i<4)?"repeat-y":"no-repeat"))+"; layer-background-image: url(Images/"+Tm+"/"+Cadre[i]+".gif) "+((i<2)?"repeat-x":((i<4)?"repeat-y":"no-repeat"))+";}\n");} if(i==8){document.write("</style>");}}
Cadre2=new Array("OngletG","OngletB1","OngletD","OngletB","Menu_Onglet_Actif","Menu_Onglet_Passif","Menu_Droit_Actif","Menu_Droit_Passif","Menu_Gauche_Actif","Menu_Gauche_Passif","Menu_Onglet_Actif_Gauche","Menu_Onglet_Actif_Droit","Menu_Onglet_Passif_Passif"); Cadre21=new Array("","#0000CC","","","","","","","#FFD280","","","#F5DEB3","");
function ThemeImages2(path,Tm){var fond21=""; document.write("<style type='text/css'>"); for(var i=0; i<13; i++){if(Tm=="bleu"){fond21=Cadre21[i];} document.write("td."+Cadre2[i]+" {background-image: "+fond21+" url("+path+"Images/"+Tm+"/"+Cadre2[i]+".gif); layer-background-image: "+fond21+" url("+path+"Images/"+Tm+"/"+Cadre2[i]+".gif); background-position: bottom;"+((i==2 || i>6)?" background-repeat: no-repeat;":((i==4 || i==5)?" background-repeat: repeat-x;":""))+"}\n");} document.write("</style>");}
Cadre3=new Array("spec","norm"); Cadre31=new Array("#4169F1;","#4169C1;"); Cadre32=new Array("#FFD181;","#EFBD5D;");
function ThemeImages3(path,Tm){for(var i=0; i<2; i++){if(i==0){document.write("<style type='text/css'>");} if(Tm=="bleu"){document.write("img."+Cadre3[i]+" {background-color:"+Cadre31[i]+"}; layer-background-color:"+Cadre31[i]+"};");} if(Tm=="bois"){document.write("img."+Cadre3[i]+" {background-color:"+Cadre32[i]+"} layer-background-color:"+Cadre32[i]+"};");}} if(i==2){document.write("</style>");}}

function SortArray(aText,aHtml,Index,Order)
{ var Test = "aText["+Index+"][b]"+(Order>0?">":"<")+"aText["+Index+"][a]" //Choix de la comparaison
  for(a=0;a<aText[Index].length;a++)    //Liste de tous les éléments du tableau
    for(b=0;b<aText[Index].length;b++)    //Re-liste tous les éléments pour les comparer à Numbers[a]
      if(eval(Test))
        for(i=0;i<aText.length;i++)    //Mise a jour des tableaux
        { Copy=aText[i][b]; aText[i][b]=aText[i][a]; aText[i][a]=Copy
          Copy=aHtml[i][b]; aHtml[i][b]=aHtml[i][a]; aHtml[i][a]=Copy
        }
}
function TableOrder(e,Dir)  //1:Croissant, -1:Décroissant
{ if(!e) e=window.event
  for(oCell=e.srcElement?e.srcElement:e.target;oCell.tagName!="TD";oCell=oCell.parentNode);  //determine la cellule sélectionnée
  for(oTable=oCell.parentNode;oTable.tagName!="TABLE";oTable=oTable.parentNode);    //determine l'objet table parent
  var index = -1
  for(c=0;c<oTable.rows[0].cells.length;c++) if(oTable.rows[0].cells[c]==oCell) index=c  //determine l'index de la cellule
  var RowNb = 0
  var aHtmlTable = new Array()      //Tableau de contenu HTML
  var aTextTable = new Array()      //Tableau de valeur
  for(c=0;c<oTable.rows[0].cells.length;c++)  //sur toutes les cellules
  { var ColonneHtml = new Array()
    var ColonneText = new Array()
    var RowNb = 0
    for(r=1;r<oTable.rows.length;r++)    //de toutes les rangées nommées "TableDatas"
    { ColonneHtml[RowNb]=oTable.rows[r].cells[c].innerHTML  //met a jour le tableau de colonne correspondant
      sDate=oTable.rows[r].cells[c].innerHTML.replace(/<\/?[^>]+>/gi,"")
      if(sDate.length<8) ColonneText[RowNb++]=sDate; else
      { var rDate  = new Date(sDate.substring(6)*1,sDate.substring(3,5)*1-1,sDate.substring(0,2)*1,0,0)
        ColonneText[RowNb++] = (rDate.toString()!="NaN") ? rDate : sDate
      }      
    }
    aHtmlTable[c] = ColonneHtml
    aTextTable[c] = ColonneText
    for(a=0;a<ColonneHtml.length;a++) aHtmlTable[c][a]=ColonneHtml[a]
    for(a=0;a<ColonneText.length;a++) aTextTable[c][a]=ColonneText[a]
  }
  RowNb=0
  SortArray(aTextTable,aHtmlTable,index,Dir)  //Tri des données
  for(x=0;x<oTable.rows[0].cells.length;x++)  //Remplacement des données dans le tableau HTML
  { RowNb=0
    for(y=1;y<oTable.rows.length;y++) oTable.rows[y].cells[x].innerHTML=aHtmlTable[x][RowNb++]
  } 
}
var isMac=(navigator.userAgent.indexOf("Mac")!=-1),olOp=(navigator.userAgent.toLowerCase().indexOf('opera')>-1&&document.createTextNode),olNs4=(navigator.appName=='Netscape'&&parseInt(navigator.appVersion)==4),olNs6=(document.getElementById)?true:false,olKq=(olNs6&&/konqueror/i.test(navigator.userAgent)),olIe4=(document.all)?true:false,olIe5=false,olIe55=false,docRoot='document.body';
if(olIe4){var agent=navigator.userAgent;if(/MSIE/.test(agent)){var versNum=parseFloat(agent.match(/MSIE[ ](\d\.\d+)\.*/i)[1]);if(versNum>=5){olIe5=true;olIe55=(versNum>=5.5&&!olOp)?true:false;if(olNs6)olNs6=false;}}
if(olNs6)olIe4=false;}

// getElementById tous navigateurs
if(!document.getElementById){ if(document.all){ document.getElementById=function(){ if(typeof document.all[arguments[0]]!="undefined"){return document.all[arguments[0]]}else{return null} } }else if(document.layers){ document.getElementById=function(){ if(typeof document[arguments[0]]!="undefined"){return document[arguments[0]]}else{return null} } } }


