if( document.addEventListener )
    document.addEventListener( 'DOMContentLoaded', fixform, false);

function fixform(){
  if (jQuery.browser.opera)
       return;
  // Hide forms
  $( 'form#aspnetForm' ).hide().end();
 
  $( 'form#aspnetForm' ).find( 'li label' ).not('.nofix').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();

  $( 'form#aspnetForm' ).show().end();
}

function checkgiftaid(item, item2) {
    if ((item.value != null && item.value.length > 0) || (item2.value != null && item2.value.length > 0))
        $('#giftAidArea').hide();
    else $('#giftAidArea').show();
}
