function erreur() { return true; }
//window.onerror=erreur; 

// ajout de l'heure courante
function quelheure() {
	today = new Date(); 
	(d=today.getDate())<10 ? d='0'+d : d=d;
	(m=today.getMonth()+1)<10 ? m='0'+m : m=m;
	(y=today.getYear())<10 ? y='0'+y : y=y;
	(h=today.getHours())<10 ? h='0'+h : h=h;
	(i=today.getMinutes())<10 ? i='0'+i : i=i;
	document.write('<DIV Align="Center"><FONT Size="2">', d, '/', m, '/', y, ' - ');
	document.write(h, 'h', i, '</FONT></DIV>'); 
}

// Ajouter en haut de chaque page
function entetepage() {
	document.writeln ('<A NAME="haut"></A><TABLE WIDTH=100% CELLPADDING=0 BORDER=0 CELLSPACING=0 >');
	document.writeln ('<TR><TD  width=200><A HREF="index.htm" TARGET="_top"><IMG SRC="/images/home.gif" BORDER=0 alt="Accueil"></a>');
	document.writeln ('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="index.htm" TARGET="_top"><IMG SRC="images/icoeng.gif" BORDER=0 WIDTH=32 HEIGHT=16 alt="I don t speak french !"></A></TD>');
	document.writeln ('<td ALIGN=center><IMG SRC="images/back.png" BORDER=0 alt="Précédent" onClick="retour()">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
	document.writeln ('<IMG SRC="images/after.png" BORDER=0 alt="Suivante" onClick="avance()"></td>');
	document.writeln ('<TD ALIGN=right width=100><A HREF="#tele"><IMG SRC="images/telecharge.png" BORDER=0 alt="Télécharger"></A></TD>');
	document.writeln ('<TD ALIGN=right width=100><A HREF="#bas"><IMG SRC="images/bas.png" BORDER=0 alt="Bas de page"></A></TD></TR></TABLE><HR>');
	}

// Ajouter en bas de chaque page
function piedpage() 
{
	document.write ('<A NAME="bas"></A>');
	document.write ('<TABLE WIDTH=100% CELLPADDING=0 BORDER=0 CELLSPACING=0 >');
	document.write ('<TR><TD ALIGN="center"><A HREF="javascript:scroll(0,0)"><IMG SRC="images/monte.gif" BORDER=0 WIDTH=19 HEIGHT=19 alt="Haut de page"></A></TD>');
	document.write ('<TR><TD align="center"><HR></TD></TR><TR><TD align="center"><font color="black" size="1" face="Verdana">Copyright <A HREF="http://www.scs-informatique.com" TARGET="_blank">SCS Informatique</A>  © 2001-2007 Toutes reproductions interdites</font></TD></TR></TABLE>');
}

function piedpageBC() 
{
        with (parent.principale.document)
        {       	
	write ('<A NAME="bas"></A>');
	write ('<TABLE WIDTH=100% CELLPADDING=0 BORDER=0 CELLSPACING=0 >');
	write ('<TR><TD ALIGN="center"><A HREF="javascript:scroll(0,0)"><IMG SRC="images/monte.gif" BORDER=0 WIDTH=19 HEIGHT=19 alt="Haut de page"></A></TD>');
	write ('<TR><TD align="center"><HR></TD></TR><TR><TD align="center"><font color="black" size="1" face="Verdana">Copyright <A HREF="http://www.scs-informatique.com" TARGET="_blank">SCS Informatique</A>  © 2001-2007 Toutes reproductions interdites</font></TD></TR></TABLE>');
       }
}

function monbody(){
	document.write ('<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#000080" VLINK="#800080" ALINK="#FF0000">');
	}

function telecharge(){
	document.write ('<center><A NAME="tele"><IMG SRC="../../commun/images/zip48.png" BORDER=0 WIDTH=48 HEIGHT=48 ALIGN=middle>');
	document.write ('<IMG SRC="../../commun/images/espacement.png" BORDER=0 WIDTH=30 HEIGHT=1></A>');
	document.write ('<B>Zone de Téléchargement</B><IMG SRC="../../commun/images/espacement.png" BORDER=0 WIDTH=30 HEIGHT=1><IMG SRC="../../commun/images/zip48.png" BORDER=0 WIDTH=48 HEIGHT=48 ALIGN=middle></center>');
	}

function retour()
{
history.back();
}

function avance()
{
history.forward();
}

function arrondi(nb)
{
	q=nb*100;
    	q=Math.round(q);
    	return q/100;
}

function arrondiE(nb)
{
	q=nb*100/6.55957;
    	q=Math.round(q);
    	return q/100;
}
mois = new Array(12);
mois[0]="janvier", mois[1]="f&eacute;vrier", mois[2]="mars"
mois[3]="avril",   mois[4]="mai",            mois[5]="juin", 
mois[6]="juillet", mois[7]="ao&ucirc;t",     mois[8]="septembre",
mois[9]="octobre", mois[10]="novembre",      mois[11]="d&eacute;cembre" ;

function ecrire_date(objet)
{ 
	var ret
	ret="Le " + objet.getDate() + " " + mois[objet.getMonth()]
                 + " " + objet.getYear()  + "   à  " 
                 + objet.getHours() + "h " + objet.getMinutes() + "mn "
                 + objet.getSeconds() + "s.";
                 
   	return ret
}

aujourd_hui = new Date();
//ancien = new Date(1982, 5, 10);
//futur = new Date("Sat, 23 Nov 1996 2:34:9 GMT+1");

////ecrire_date(aujourd_hui);
//ecrire_date(ancien);
//ecrire_date(futur);

//-->



