
/*

	fonctions diverses

*/


var fond = '#C86101';

var reprise01='#2F3A1C';
var reprise02='#556A30';
var reprise03='#668333';
var reprise04='#85A848';


function cOn01(td){
	if(document.getElementById||(document.all && !(document.getElementById))){
		td.style.backgroundColor=fond;
	}
}
function cOn02(td){
	if(document.getElementById||(document.all && !(document.getElementById))){
		td.style.backgroundColor=fond;
	}
}
	function cOn03(td){
	if(document.getElementById||(document.all && !(document.getElementById))){
		td.style.backgroundColor=fond;
	}
}
function cOn04(td){
	if(document.getElementById||(document.all && !(document.getElementById))){
		td.style.backgroundColor=fond;
	}
}
function cOut01(td){
	if(document.getElementById||(document.all && !(document.getElementById))){
		td.style.backgroundColor=reprise01;
	}
}

function cOut02(td){
	if(document.getElementById||(document.all && !(document.getElementById))){
		td.style.backgroundColor=reprise02;
	}
}
function cOut03(td){
	if(document.getElementById||(document.all && !(document.getElementById))){
		td.style.backgroundColor=reprise03;
	}
}
function cOut04(td){
	if(document.getElementById||(document.all && !(document.getElementById))){
		td.style.backgroundColor=reprise04;
	}	
}


function datation () {
           var time=new Date();
           var date=time.getDate();
           var year=time.getYear();
		   if ( year < 1900 ) {
				year += 1900;
		   }
           var mois = time.getMonth() + 1;
           if (mois < 10) {
           mois = "0" + mois;
           }
		   document.write("&nbsp;" + year + "-" + mois  + "-" + date);
}


function rediriger () {



}

var vu = new Object();

function voirsous (what) {
	if (vu[what] == 1) {
		document.getElementById('table' + what).style.display="none";
		vu[what] = 0;
	} else {
		document.getElementById('table' + what).style.display="block";
		vu[what] = 1;
	}

}

/**

function afficheur (datas,dom) {
	var adresse;
	var debut = datas.reverse().join('');
	if (dom && dom[0]) {
		adresse  = '<a class="lien02" href="mailto:'+ debut + "&#64;" + dom.reverse().join('')   +'">' + debut + "&#64;" + dom.reverse().join('')  + '</a>';
	} else {
		adresse = debut ;
	}
	
	document.write(adresse);

}
**/
