function buyandcare_init()
{
    //chgButton();
	chgCadre();
}
// Remplacement des Boutons
    function chgButton(){
        // On récupère la liste des balises INPUT présentes dans le DIV avec l'id 'azerty' 
        CHKB = document.getElementsByTagName('input');
        for(i=0; i < CHKB.length; i++){
            if(CHKB[i].className == 'form-submit-final' &&(CHKB[i].type == "submit" || CHKB[i].type == "button")){
				container=CHKB[i].parentNode
				DIVav = document.createElement('div');
				DIVav.setAttribute('class','form-submit-final-g');
				DIVav.setAttribute('className','form-submit-final-g');
				CHKB[i].setAttribute('class','form-submit-final-d');
				CHKB[i].setAttribute('className','form-submit-final-d');

				width=CHKB[i].value.length*10;
				if (width<100)
				{
					width=100
				}
				DIVav.style.width=width+'px'
				CHKB[i].style.width=width+'px'

				DIVav.appendChild (CHKB[i]);
				container.appendChild (DIVav);

			}
		}
	}
 function chgCadre(){

		blocccenter=document.getElementById('bloc-center')
        CHKB = blocccenter.getElementsByTagName('div');
        for(i=0; i < CHKB.length; i++){
			//alert(CHKB[i].className)
            if(CHKB[i].className == 'info' || CHKB[i].className == 'cadre'){
				parentdiv=CHKB[i].parentNode;
				container = document.createElement('div');
				container.setAttribute('class','bloc'+CHKB[i].className);
				container.setAttribute('className','bloc'+CHKB[i].className)
				DIVop = document.createElement('div');
				DIVop.setAttribute('class','opener');
				DIVop.setAttribute('className','opener');
				DIVop2 = document.createElement('div');
				DIVop.appendChild (DIVop2)

				DIVcl = document.createElement('div');
				DIVcl.setAttribute('class','closer');
				DIVcl.setAttribute('className','closer');
				DIVcl2 = document.createElement('div');
				DIVcl.appendChild (DIVcl2)


				CHKB[i].setAttribute('class','content');
				CHKB[i].setAttribute('className','content');
				
				parentdiv.insertBefore(container, CHKB[i].nextSibling);
				container.appendChild (DIVop)
				container.appendChild (CHKB[i])
				container.appendChild (DIVcl);
			}
		}
        
    }