function afficheActu(resume,titre,id,date,heure,cleantitre)
{
document.getElementById('image').innerHTML = '<a href="'+id+'_'+cleantitre+'"><img src="images/imgActu/'+id+'.jpg" alt="images/imgActu/'+id+'.jpg"/></a>';



monMSG = '<a href="'+id+'_'+cleantitre+'"><div id="titreA">'+titre+'</div><div id="texteA">'+debutchaine(resume,20)+'</div></a><div id="dateA">'+date;
						
if( heure != '00h00' && heure != '' ){
	monMSG	+= ' | '+heure;
						}
	monMSG	+= '</div>';	
document.getElementById('uneActu').innerHTML = monMSG;

}

function debutchaine(chaine, nbmots) { // 1er argument : chaîne - 2e argument : nombre de mots
				chaine = chaine.replace('<br>',''); // remplacement des BR par des espaces
				tab = chaine.split(" ");
				if (tab.length <= nbmots) {
					affiche = chaine;
				} else {
					affiche = tab[0];
					for (i=1; i<nbmots; i++) {
						affiche += " "+tab[i];
					}
				}
				affiche += ' ...';
				return affiche;
			} 
			
			
function popup(page, fenetre)
{
window.open (page, fenetre, config='height=450, width=700, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no')
}