// JavaScript Document

function concatene(name, domain)
 { 
  document.write('<a href=\"mailto:' + name + '@' + domain + '\" class=\"email\">') ;
  document.write(name + '@' + domain + '</a>') ;
 }

function concatenetext(name, domain, text)
 { 
  document.write('<a href=\"mailto:' + name + '@' + domain + '\" class=\"email\">') ;
  document.write(text + '</a>') ;
 }

 
function popup(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function ecritCalque (idCalque, texte){
	if (document.all) document.all[idCalque].innerHTML = texte;
	if (document.layers)
	{
		document.layers[idCalque].document.open();
		document.layers[idCalque].document.write(texte);
		document.layers[idCalque].document.close();
	}
	if (document.getElementById)
	document.getElementById(idCalque).innerHTML = texte;
}		

function horloge(classe){
	dateAct = new Date();
	jour = dateAct.getDay();
	if (jour==1) jour = "Lundi";
	if (jour==2) jour = "Mardi";
	if (jour==3) jour = "Mercredi";
	if (jour==4) jour = "Jeudi";
	if (jour==5) jour = "Vendredi";
	if (jour==6) jour = "Samedi";
	if (jour==0) jour = "Dimanche";
	numero = dateAct.getDate();
	mois = dateAct.getMonth();
	if (mois==0) mois = "janvier";
	if (mois==1) mois = "février";
	if (mois==2) mois = "mars";
	if (mois==3) mois = "avril";
	if (mois==4) mois = "mai";
	if (mois==5) mois = "juin";
	if (mois==6) mois = "juillet";
	if (mois==7) mois = "août";
	if (mois==8) mois = "septembre";
	if (mois==9) mois = "octobre";
	if (mois==10) mois = "novembre";
	if (mois==11) mois = "décembre";
	an = dateAct.getYear();
	texte = "<div class='"+classe+"'>" + jour + " " + numero + " " + mois + " " + an + "</DIV>";
	ecritCalque("clqDate", texte);
}

