if( document.addEventListener ) document.addEventListener( 'DOMContentLoaded', contact_form, false);

function contact_form(){
  // Hide forms
  $( 'form.contact_form' ).hide().end();

  // Processing
  $( 'form.contact_form' ).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
  $( 'form.contact_form' ).show().end();
}

function PopupPic() {
 if (arguments[1] == null || arguments[1].length == 0 || arguments[2] == null || arguments[2].length == 0) {
  window.open( "popup.asp?" + arguments[0], "", "resizable=1,HEIGHT=480,WIDTH=555"); 
 }
 else {
  window.open( "popup.asp?" + arguments[0], "", "resizable=1,HEIGHT=" + arguments[2] + ",WIDTH=" + arguments[1] + ""); 
 }
} 