// logfrom //
if( document.addEventListener ) document.addEventListener( 'DOMContentLoaded', form, false );
function form(){
  // Hide forms
  $( 'form' ).hide().end();
  // Processing
  $( 'form' ).find( 'li/label' ).not( '.no' ).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
  $( 'form' ).show().end();
}


/*
//gmcndform //
if( document.addEventListener ) document.addEventListener( 'DOMContentLoaded', gmcndform, false );
function gmcndform(){
  // Hide forms
  $( 'form.gmcndform' ).hide().end();
  // Processing
  $( 'form.gmcndform' ).find( 'li/label' ).not( '.nogmcnd' ).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
  $( 'form.gmcndform' ).show().end();
}


// gmcndDtlform //
if( document.addEventListener ) document.addEventListener( 'DOMContentLoaded', gmcndDtlform, false );
function gmcndDtlform(){
  // Hide forms
  $( 'form.gmcndDtlform' ).hide().end();
  // Processing
  $( 'form.gmcndDtlform' ).find( 'li/label' ).not( '.nogmcndDtl' ).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
  $( 'form.gmcndDtlform' ).show().end();
}
*/


