if( document.addEventListener ) document.addEventListener( 'DOMContentLoaded', process_forms, false );
 //$(document).ready(function(){
   //     process_forms();
     //});
function process_forms()
{
	process_form('.form_adresses');	
	process_form('.form_admin');

}

function process_form(classe)
{
  // Hide forms
  $(classe).hide().end();
  
  // Processing
  $(classe).find('li/label').not('.nocmx').each( function( i ){
    var labelContent = this.innerHTML;
    var labelWidth = document.defaultView.getComputedStyle( this, '' ).getPropertyValue( 'width' );
    var labelSpan = document.createElement( 'span' );
        labelSpan.style.display = 'block';
        labelSpan.style.width = labelWidth;
        labelSpan.innerHTML = labelContent;
    this.style.display = '-moz-inline-box';
    this.innerHTML = null;
    this.appendChild( labelSpan );
  } ).end();
  
  // Show forms
  $(classe).show().end();
}