function Attribut(nomattribut, chaineattribut, nouveautexte)
{
this.attribut = nomattribut;
this.chaine = chaineattribut;
this.texte = nouveautexte;
this.t = document.createTextNode(this.texte);
this.regex =/(-)([a-z])/;

this.chgeAttr = function(evt){





	if(!document.all) { //var evt = arguments[0];
 evt.target.setAttribute(this.attribut, this.chaine);
evt.target.insertBefore(this.t,evt.target.firstChild);

						}
 
 else
 { //var evt = event;
 evt.srcElement.insertBefore(this.t,evt.srcElement.firstChild);
/*evt.srcElement.setAttribute(this.attribut, this.chaine);setAttribute ne SEMBLE PAS MARCHE pour IE ??
**SOLUTION DE REMPLACEMENT EN ATTENDANT pour traiter une chaine du type :
**"color:#54d8d8;text-align:center;background-color:#ffff99" et obtenir: textAlign et backgroundColor*/

   //trouver -a dans text-align et -c dans background-color
      
 if(this.attribut == "style") {
 
 dec = this.chaine.split(";");//decoupage
 
 for(i = 0; i < dec.length ; i++)
 {
	dec[i] = dec[i].split(":");//2e decoupage
	
	if( dec[i][0].match(this.regex) ) 
	{
	dec[i][0]=dec[i][0].replace(this.regex, RegExp.$2.toUpperCase());
	}//enlever le - et capitaliser la lettre suivante
																//ex: textAlign	
	//evaluez la nouvelle chaine comme expr javascript
	//ex: evt.srcElement.style.textAlign  =  center
 D = "evt.srcElement.style." + dec[i][0] + " = '"+ dec[i][1] + "'" ;
		
	eval(D);
	
 }								}
 

  
 }
								}



}