if( document.addEventListener ) document.addEventListener( 'DOMContentLoaded', loginform, false);

function loginform(){
  // Hide forms
  $( 'form.loginform' ).hide().end();

  // Processing
  $( 'form.loginform' ).find( 'li/label' ).not( '.nologinform' ).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.loginform' ).show().end();
}

function checkemail(str){
  var filter=/^.+@.+\..{2,3}$/
  return (filter.test(str))
}	
